Fixed pip enables, fixed Nop/Halt

This commit is contained in:
jose.rodriguezlabra
2019-04-11 17:32:17 -04:00
parent b1f1a7339b
commit 42d2bf2d80
13 changed files with 111 additions and 753 deletions

View File

@@ -7,14 +7,14 @@ module ControlUnit(
output reg [2:0] FU,
output reg [1:0] bank,
output reg addi, mem, dataMemEn, RegEn, halt, link, js
);
);
always @(instIn, functBit)
begin
case(instIn)
4'b0000: // Halt/NOP
begin
halt <= 1'b1;
halt <= functBit;
RegEn <= 1'b1;
FU <= 3'b001; // Disable Branching
addi <= 1'b0;