From 01cfbfe46125e3495063566a1ca97d42130fd4c6 Mon Sep 17 00:00:00 2001 From: yuqisun Date: Sat, 11 Jan 2025 23:22:07 +0800 Subject: [PATCH] [P2] Installation and Data Preloading Issue #11 - add yuqi understanding --- mem/const/ConstQueueDynamicRTL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem/const/ConstQueueDynamicRTL.py b/mem/const/ConstQueueDynamicRTL.py index 368e3f6..65e1f4b 100644 --- a/mem/const/ConstQueueDynamicRTL.py +++ b/mem/const/ConstQueueDynamicRTL.py @@ -56,7 +56,7 @@ def load_const(): # so will avoid receiving new data when regs full # can NOT do this by comparing cur > AddrType(const_mem_size - 1) # for example: mem size=8, cur will be Bits3(0x0) once it reaches Bits3(0x7) + AddrType(1) in loop - # and can NOT use bigger AddrType for cur as it will be used to update waddr: (s.reg_file.waddr[0] @= s.cur), waddr is binded with mem size + # and can NOT use bigger AddrType such as Bits4 for cur as it will be used to update waddr: (s.reg_file.waddr[0] @= s.cur), waddr is binded with mem size which will be Bits3 for mem size 8 if s.cur == AddrType(const_mem_size - 1): s.recv_const.rdy @= 0