From: Luke Kenneth Casson Leighton Date: Sat, 12 Sep 2020 23:07:02 +0000 (+0100) Subject: more dcache debugging X-Git-Tag: semi_working_ecp5~83 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=791c64d3550966a11474f84c38b654abf939ef07;p=soc.git more dcache debugging --- diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 5e797f41..22cfb49d 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -69,6 +69,9 @@ ROW_PER_LINE = LINE_SIZE // ROW_SIZE # to represent the full dcache BRAM_ROWS = NUM_LINES * ROW_PER_LINE +print ("ROW_SIZE", ROW_SIZE) +print ("ROW_PER_LINE", ROW_PER_LINE) +print ("BRAM_ROWS", BRAM_ROWS) # Bit fields counts in the address @@ -149,10 +152,13 @@ TLB_TAG_WAY_BITS = TLB_NUM_WAYS * TLB_EA_TAG_BITS TLB_PTE_BITS = 64 TLB_PTE_WAY_BITS = TLB_NUM_WAYS * TLB_PTE_BITS; +def ispow2(x): + return (1<