mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 21:35:48 +00:00
Merge branch 'main' into bus_wrapper
This commit is contained in:
commit
a31ed073e1
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,5 +4,4 @@ exec/*
|
|||
*.out.txt
|
||||
mips_cpu_harvard.vcd
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
inputs/.DS_Store
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
3404000F
|
||||
3405000B
|
||||
0085102A
|
||||
00000008
|
||||
00000008
|
||||
0085102A
|
|
@ -1,4 +1,4 @@
|
|||
3404000a
|
||||
34050009
|
||||
0085102b
|
||||
00000008
|
||||
00000008
|
||||
0085102b
|
|
@ -1,4 +1,4 @@
|
|||
34040005
|
||||
34050002
|
||||
00851026
|
||||
00000008
|
||||
00000008
|
||||
00851026
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRC_DIR=${1?Error: no source directory given in argument};
|
||||
SRC=$(ls ${SRC_DIR} | grep -E "harvard|memory|alu|regfile|pc|control");
|
||||
SRC=$(find ./${SRC_DIR}/*);
|
||||
SRC_TEMP="";
|
||||
for src in ${SRC}
|
||||
do
|
||||
SRC_TEMP+=${SRC_DIR}/${src}" ";
|
||||
SRC_TEMP+=${src}" ";
|
||||
done
|
||||
SRC=${SRC_TEMP}
|
||||
SRC=${SRC_TEMP};
|
||||
|
||||
|
||||
INSTR=${2:-"No instruction specified: running all testcases"};
|
||||
|
|
|
@ -49,15 +49,8 @@ module mips_cpu_harvard_tb;
|
|||
end
|
||||
|
||||
initial begin
|
||||
$display("Initial Reset 0");
|
||||
reset <= 0;
|
||||
|
||||
|
||||
$display("Initial Reset 1");
|
||||
@(posedge clk);
|
||||
reset <= 1;
|
||||
|
||||
$display("Initial Reset 0: Start Program");
|
||||
reset <= 1;
|
||||
@(posedge clk);
|
||||
reset <= 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue