Skip to content

Commit

Permalink
could use regfile in dual port version
Browse files Browse the repository at this point in the history
  • Loading branch information
mbstrange2 committed Aug 7, 2024
1 parent 7575078 commit 1257f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/test_spec/dual_port_rv.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ def test_linear_read_write(output_dir=None, storage_capacity=1024, data_width=16
if times[-1] > max_time:
max_time = times[-1]
# Need to add a cycle delay if using SRAM
# if reg_file is False:
# times = [time + 1 for time in times]
times = [time + 1 for time in times]
if reg_file is False:
times = [time + 1 for time in times]
gold_output_path_data = os.path.join(output_dir, "gold", f"{port_name}_data.txt")
gold_output_path_time = os.path.join(output_dir, "gold", f"{port_name}_time.txt")
with open(gold_output_path_data, 'w') as file:
Expand Down
5 changes: 2 additions & 3 deletions tests/test_spec/simple_dual_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ def test_linear_read_write(output_dir=None, storage_capacity=1024, data_width=16
if times[-1] > max_time:
max_time = times[-1]
# Need to add a cycle delay if using SRAM
# if reg_file is False:
# times = [time + 1 for time in times]
times = [time + 1 for time in times]
if reg_file is False:
times = [time + 1 for time in times]
gold_output_path_data = os.path.join(output_dir, "gold", f"{port_name}_data.txt")
gold_output_path_time = os.path.join(output_dir, "gold", f"{port_name}_time.txt")
with open(gold_output_path_data, 'w') as file:
Expand Down

0 comments on commit 1257f57

Please sign in to comment.