Merge branch 'main' into bus_wrapper

This commit is contained in:
Aadi Desai 2020-12-16 19:57:28 +00:00
commit a31ed073e1
7 changed files with 10 additions and 18 deletions

BIN
.DS_Store vendored

Binary file not shown.

1
.gitignore vendored
View file

@ -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

View file

@ -1,4 +1,4 @@
3404000F 3404000F
3405000B 3405000B
0085102A 00000008
00000008 0085102A

View file

@ -1,4 +1,4 @@
3404000a 3404000a
34050009 34050009
0085102b 00000008
00000008 0085102b

View file

@ -1,4 +1,4 @@
34040005 34040005
34050002 34050002
00851026 00000008
00000008 00851026

View file

@ -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"};

View file

@ -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;