From 1257f571e50b24736c37902d75611dbda222cc3a Mon Sep 17 00:00:00 2001 From: Max Strange Date: Tue, 6 Aug 2024 17:27:59 -0700 Subject: [PATCH] could use regfile in dual port version --- tests/test_spec/dual_port_rv.py | 5 ++--- tests/test_spec/simple_dual_port.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_spec/dual_port_rv.py b/tests/test_spec/dual_port_rv.py index 63f0dda9..f714a450 100644 --- a/tests/test_spec/dual_port_rv.py +++ b/tests/test_spec/dual_port_rv.py @@ -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: diff --git a/tests/test_spec/simple_dual_port.py b/tests/test_spec/simple_dual_port.py index ce69e291..7ddec2ef 100644 --- a/tests/test_spec/simple_dual_port.py +++ b/tests/test_spec/simple_dual_port.py @@ -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: