Pass EXTRA_OPTS to GHDL

This commit is contained in:
2022-09-10 08:25:14 +02:00
parent cac6fc9540
commit 1f52aee5d9
2 changed files with 15 additions and 8 deletions
+7 -1
View File
@@ -33,6 +33,11 @@ use work.async_types.all;
use work.async_defs.all;
ENTITY tb_mips_top IS
Generic
(
filename : string := "hello.elf.flash.bin"
);
END tb_mips_top;
ARCHITECTURE behavior OF tb_mips_top IS
@@ -396,7 +401,8 @@ SRAM_WRITE:
FLASH_READ:
process(rst, flash_cs_n, flash_oe_n, flash_a)
type file_t is file of integer;
file load_flash : file_t open read_mode is "hello.elf.flash.bin";
file load_flash : file_t open read_mode is filename;
-- file load_flash : file_t open read_mode is "test_exception_sim.elf.flash.bin";
variable instr : integer;
variable index : natural;
variable temp : signed(31 downto 0);