Set rom to point to example program

This commit is contained in:
riley committed 2026-10-08 14:22:00 +11:00
1 parent 76cd7931b6
commit 016fb874e7
1 file changed
+5 -1
+5 -1
View File
@@ -10,6 +10,10 @@ module ROM #(parameter m=7,p=4) (
//Load the program in memory //Load the program in memory
// The machine code stored in text file program.dat written in Hex format // The machine code stored in text file program.dat written in Hex format
initial begin initial begin
$readmemh("program.dat",mem); //$readmemb for binary `ifdef QUARTUS_BUILD
$readmemh("../../asm/bin/ELEC4720-2026s2-Ass-02-Demo.txt",mem); //$readmemb for binary
`else
$readmemh("./asm/bin/ELEC4720-2026s2-Ass-02-Demo.txt",mem); //$readmemb for binary
`endif
end end
endmodule // end ROM module endmodule // end ROM module