Skip to content

Commit

Permalink
Parameterizations to queue_call file
Browse files Browse the repository at this point in the history
  • Loading branch information
KabirSamsi committed Jul 17, 2024
1 parent 1080453 commit 8d06ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calyx-py/calyx/queue_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def insert_runner(prog, queue, name, num_cmds, use_ranks, use_times, stats_compo
# - ref register `err`, which is raised if an error occurs.

# Our memories and registers, all of which are passed to us by reference.
commands = runner.seq_mem_d1("commands", 2, num_cmds, 32, is_ref=True)
commands = runner.seq_mem_d1("commands", 3 if use_times else 2, num_cmds, 32, is_ref=True)
values = runner.seq_mem_d1("values", 32, num_cmds, 32, is_ref=True)
ranks = (
runner.seq_mem_d1("ranks", 32, num_cmds, 32, is_ref=True) if use_ranks else None
Expand Down Expand Up @@ -178,7 +178,7 @@ def insert_main(
dataplane_ans = main.reg(32)
dataplane_err = main.reg(1)

commands = main.seq_mem_d1("commands", 3, num_cmds, 32, is_external=True)
commands = main.seq_mem_d1("commands", 3 if use_times else 2, num_cmds, 32, is_external=True)
values = main.seq_mem_d1("values", 32, num_cmds, 32, is_external=True)
ans_mem = main.seq_mem_d1("ans_mem", 32, num_cmds, 32, is_external=True)
ranks = (
Expand Down

0 comments on commit 8d06ffc

Please sign in to comment.