From f122fa70e30a7d7744b38fa22bd1d5aa949e8277 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 24 Dec 2020 09:22:34 +0100 Subject: prepare makefile infrastructure for writing examples --- tests/soc_simple_display/test.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/soc_simple_display') 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 ( -- cgit v1.2.3