diff --git a/tests/arch/quicklogic/qlf_k6n10f/gen_memories.py b/tests/arch/quicklogic/qlf_k6n10f/mem_gen.py similarity index 100% rename from tests/arch/quicklogic/qlf_k6n10f/gen_memories.py rename to tests/arch/quicklogic/qlf_k6n10f/mem_gen.py diff --git a/tests/arch/quicklogic/qlf_k6n10f/mem_tb.v b/tests/arch/quicklogic/qlf_k6n10f/mem_tb.v index 89e41f8bc..a0d15bd62 100644 --- a/tests/arch/quicklogic/qlf_k6n10f/mem_tb.v +++ b/tests/arch/quicklogic/qlf_k6n10f/mem_tb.v @@ -8,7 +8,10 @@ parameter DATA_WIDTH_A = DATA_WIDTH; parameter DATA_WIDTH_B = DATA_WIDTH; parameter VECTORLEN = 16; parameter SHIFT_VAL = 0; -localparam MAX_WIDTH = DATA_WIDTH; + +// intentionally keep expected values at full width precision to allow testing +// of truncation +localparam MAX_WIDTH = 36; reg rce_a_testvector [VECTORLEN-1:0]; reg [ADDRESS_WIDTH_A-1:0] ra_a_testvector [VECTORLEN-1:0]; diff --git a/tests/arch/quicklogic/qlf_k6n10f/run-test.sh b/tests/arch/quicklogic/qlf_k6n10f/run-test.sh index be16b7829..2fe336194 100755 --- a/tests/arch/quicklogic/qlf_k6n10f/run-test.sh +++ b/tests/arch/quicklogic/qlf_k6n10f/run-test.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -eu -python3 gen_memories.py +python3 mem_gen.py source ../../../gen-tests-makefile.sh run_tests --yosys-scripts --bash