build software project in same makefile as hardware project

This commit is contained in:
2021-07-02 01:42:11 -06:00
parent 4580631939
commit 5c59c97797
3 changed files with 42 additions and 39 deletions

View File

@ -32,7 +32,7 @@ initial begin: mem_inst_init
for (i=0; i<MEM_INST_LENGTH; i=i+1) begin
mem_inst[i] = INST_NOP;
end
$readmemh("../test/text.hex", mem_inst);
$readmemh("text.hex", mem_inst);
end
// Data memory
@ -48,7 +48,7 @@ initial begin: mem_data_init
for (i=0; i<MEM_DATA_LENGTH; i=i+1) begin
mem_data[i] = DATA_DEFAULT;
end
$readmemh("../test/data.hex", mem_data);
$readmemh("data.hex", mem_data);
end
initial begin