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
|
*.out.txt
|
||||||
mips_cpu_harvard.vcd
|
mips_cpu_harvard.vcd
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.DS_Store
|
|
||||||
inputs/.DS_Store
|
inputs/.DS_Store
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
3404000F
|
3404000F
|
||||||
3405000B
|
3405000B
|
||||||
0085102A
|
00000008
|
||||||
00000008
|
0085102A
|
|
@ -1,4 +1,4 @@
|
||||||
3404000a
|
3404000a
|
||||||
34050009
|
34050009
|
||||||
0085102b
|
00000008
|
||||||
00000008
|
0085102b
|
|
@ -1,4 +1,4 @@
|
||||||
34040005
|
34040005
|
||||||
34050002
|
34050002
|
||||||
00851026
|
00000008
|
||||||
00000008
|
00851026
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SRC_DIR=${1?Error: no source directory given in argument};
|
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="";
|
SRC_TEMP="";
|
||||||
for src in ${SRC}
|
for src in ${SRC}
|
||||||
do
|
do
|
||||||
SRC_TEMP+=${SRC_DIR}/${src}" ";
|
SRC_TEMP+=${src}" ";
|
||||||
done
|
done
|
||||||
SRC=${SRC_TEMP}
|
SRC=${SRC_TEMP};
|
||||||
|
|
||||||
|
|
||||||
INSTR=${2:-"No instruction specified: running all testcases"};
|
INSTR=${2:-"No instruction specified: running all testcases"};
|
||||||
|
|
|
@ -49,15 +49,8 @@ module mips_cpu_harvard_tb;
|
||||||
end
|
end
|
||||||
|
|
||||||
initial begin
|
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);
|
@(posedge clk);
|
||||||
reset <= 0;
|
reset <= 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue