Set rom to point to example program
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -10,6 +10,10 @@ module ROM #(parameter m=7,p=4) (
|
||||
//Load the program in memory
|
||||
// The machine code stored in text file program.dat written in Hex format
|
||||
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
|
||||
endmodule // end ROM module
|
||||
Reference in new issue
Block a user