Skip to content

Commit

Permalink
string to integer issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwu928 committed Aug 16, 2024
1 parent 2f69edc commit 6d26d00
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions pando-drv/tests/drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,24 @@ def memory_latency(memory_name):
###################
# Bandwidth Numbers #
###################
COMMAND_BW = format_bw(arguments.network_issue_rate * freq_str_to_hz(arguments.command_clock))
CORE_BW = format_bw(arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock))
COMMAND_BW_NUM = arguments.network_issue_rate * freq_str_to_hz(arguments.command_clock)
COMMAND_BW = format_bw(COMMAND_BW_NUM)
CORE_BW_NUM = arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock)
CORE_BW = format_bw(CORE_BW_NUM)
SCRATCHPAD_BW = format_bw(arguments.network_issue_rate * freq_str_to_hz(arguments.mem_clock))
L2_MEM_BANK_BW = format_bw(arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock) / arguments.pod_l2sp_banks)
L2_MEM_BW = format_bw(arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock))
L2_MEM_BW_NUM = arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock)
L2_MEM_BW = format_bw(L2_MEM_BW_NUM)
MAIN_MEM_BANK_BW = format_bw(arguments.pxn_pods * arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock) / arguments.pxn_dram_banks)
MAIN_MEM_BW = format_bw(arguments.pxn_pods * arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock))
MAIN_MEM_BW_NUM = arguments.pxn_pods * arguments.pod_cores * arguments.network_issue_rate * freq_str_to_hz(arguments.core_clock)
MAIN_MEM_BW = format_bw(MAIN_MEM_BW_NUM)
if arguments.network_bw_config == "manual":
ONCHIP_RTR_BW = arguments.network_onchip_bw
else:
ONCHIP_RTR_BW = 2 * (COMMAND_BW + arguments.pxn_pods*arguments.pod_cores*CORE_BW + arguments.pxn_pods*L2_MEM_BW + MAIN_MEM_BW)
if arguments.network_bw_config == "manual":
OFFCHIP_RTR_BW = arguments.network_offchip_bw
else:
OFFCHIP_RTR_BW = arguments.num_pxn * ONCHIP_RTR_BW
ONCHIP_RTR_BW_NUM = 2 * (COMMAND_BW_NUM + arguments.pxn_pods*arguments.pod_cores*CORE_BW_NUM + arguments.pxn_pods*L2_MEM_BW_NUM + MAIN_MEM_BW_NUM)
ONCHIP_RTR_BW = format_bw(ONCHIP_RTR_BW_NUM)
OFFCHIP_RTR_BW = format_bw(arguments.num_pxn * ONCHIP_RTR_BW_NUM)

SYSCONFIG = {
"sys_num_pxn" : 1,
Expand Down

0 comments on commit 6d26d00

Please sign in to comment.