Extract parameter values from cocotb.top

This commit is contained in:
Alex Forencich
2021-03-22 15:51:07 -07:00
parent 4bee96ea9a
commit 4ff390481e
2 changed files with 2 additions and 2 deletions

View File

@@ -287,7 +287,7 @@ def cycle_pause():
if cocotb.SIM_NAME:
data_width = int(os.getenv("PARAM_DATA_WIDTH"))
data_width = len(cocotb.top.axi_wdata)
byte_width = data_width // 8
max_burst_size = (byte_width-1).bit_length()