diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/soc_measure_time/test.v | 6 | ||||
-rw-r--r-- | tests/soc_print_number/test.v | 6 | ||||
-rw-r--r-- | tests/soc_simple_display/test.v | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/soc_measure_time/test.v b/tests/soc_measure_time/test.v index b4f1082..08b4fd5 100644 --- a/tests/soc_measure_time/test.v +++ b/tests/soc_measure_time/test.v @@ -8,6 +8,11 @@ ; /* Cause syntax error */ `endif +`ifndef ROM_WORDS_COUNT + `error_ROM_WORDS_COUNT_must_be_defined +; /* Cause syntax error */ +`endif + module soc_test(); wire [9:0] image_writes; @@ -20,6 +25,7 @@ module soc_test(); soc_with_peripherals #( .FONT_FILE("../../design/font.mem"), + .EMBEDDED_ROM_WORDS_COUNT(`ROM_WORDS_COUNT), .EMBEDDED_ROM_FILE("instructions.mem") ) soc ( diff --git a/tests/soc_print_number/test.v b/tests/soc_print_number/test.v index 75c2b36..170825e 100644 --- a/tests/soc_print_number/test.v +++ b/tests/soc_print_number/test.v @@ -8,6 +8,11 @@ ; /* Cause syntax error */ `endif +`ifndef ROM_WORDS_COUNT + `error_ROM_WORDS_COUNT_must_be_defined +; /* Cause syntax error */ +`endif + module soc_test(); wire [9:0] image_writes; @@ -20,6 +25,7 @@ module soc_test(); soc_with_peripherals #( .FONT_FILE("../../design/font.mem"), + .EMBEDDED_ROM_WORDS_COUNT(`ROM_WORDS_COUNT), .EMBEDDED_ROM_FILE("instructions.mem") ) soc ( diff --git a/tests/soc_simple_display/test.v b/tests/soc_simple_display/test.v index 75c2b36..170825e 100644 --- a/tests/soc_simple_display/test.v +++ b/tests/soc_simple_display/test.v @@ -8,6 +8,11 @@ ; /* Cause syntax error */ `endif +`ifndef ROM_WORDS_COUNT + `error_ROM_WORDS_COUNT_must_be_defined +; /* Cause syntax error */ +`endif + module soc_test(); wire [9:0] image_writes; @@ -20,6 +25,7 @@ module soc_test(); soc_with_peripherals #( .FONT_FILE("../../design/font.mem"), + .EMBEDDED_ROM_WORDS_COUNT(`ROM_WORDS_COUNT), .EMBEDDED_ROM_FILE("instructions.mem") ) soc ( |