Add bus vcd to gitignore, fix missing case in bus

This commit is contained in:
Aadi Desai 2020-12-16 14:08:28 -08:00
parent d17060b0a1
commit 5e62dd82d8
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,5 +3,6 @@ exec/*
*.log.txt
*.out.txt
mips_cpu_harvard.vcd
mips_cpu_bus.vcd
.DS_Store
inputs/.DS_Store

View file

@ -69,7 +69,8 @@ end
always_ff @(negedge clk) begin // CLK Falling Edge
if (!waitrequest && clk_state) begin
case (state)
2'b00: // nothing happens on fetch negedge
2'b00: begin // nothing happens on fetch negedge
end
2'b01: begin // execute negedge
if (!harvard_read && !harvard_write) begin // instruction complete, trigger writeback
clk_internal <= 1'b0;