[Libre-soc-dev] daily kan-ban update 02jun2021

Tobias Platen libre-soc at platen-software.de
Wed Jun 2 19:36:25 BST 2021


today: having a look on LoadStore1 and gtkwave for test_ldst_pi.py

reading and writing to the cache works as expected if there is a TLB
hit. On miss a TLB entry should be installed, then the data should be
stored in the cache. But this does not work in this case.

# failed ramdom data
addr = 65888
data = 0x8c5a3e460d71f0b4

#tlb miss, takes long time to load page tables
yield from pi_st(pi, addr, data, 8, msr_pr=1)
yield

#fast store of data in cache
yield from pi_st(pi, addr, data, 8, msr_pr=1)
yield

#reading data from cache (fast)
ld_data = yield from pi_ld(pi, addr, 8, msr_pr=1)
assert(ld_data==data)

commenting out the second store will cause the
assertion to fail




More information about the Libre-soc-dev mailing list