You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that for an address map with size 128 bytes, the Verilog module generated by PeakRDL will have an address line that is 8 bits wide. However, in reality, only 7 bits are required for the address line because the address range only goes from 0 to 127.
I checked your source code and saw the line self.addr_width = self.top_node.size.bit_length() under class DesignState and request that it be changed to self.addr_width = (self.top_node.size - 1).bit_length().
Thank you!
The text was updated successfully, but these errors were encountered:
Hello PeakRDL Development Team,
It seems that for an address map with size 128 bytes, the Verilog module generated by PeakRDL will have an address line that is 8 bits wide. However, in reality, only 7 bits are required for the address line because the address range only goes from 0 to 127.
I checked your source code and saw the line
self.addr_width = self.top_node.size.bit_length()
under classDesignState
and request that it be changed toself.addr_width = (self.top_node.size - 1).bit_length()
.Thank you!
The text was updated successfully, but these errors were encountered: