Skip to content

Commit

Permalink
[P2] Installation and Data Preloading Issue tancheng#11 - add yuqi u…
Browse files Browse the repository at this point in the history
…nderstanding
  • Loading branch information
yuqisun committed Jan 11, 2025
1 parent 86fc83f commit 01cfbfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mem/const/ConstQueueDynamicRTL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 01cfbfe

Please sign in to comment.