Fixed bugs, finished BEQ, Added Halt
This commit is contained in:
@@ -7,6 +7,7 @@ module FetchUnit(input wire clk, reset,
|
||||
|
||||
//Wires from mux(result_m) to PC (progC_out) to adder then back to mux (result_a)
|
||||
wire [8:0] progC_out, result_a, result_m;
|
||||
wire cout;
|
||||
|
||||
register PC(
|
||||
.clk(clk),
|
||||
@@ -19,7 +20,8 @@ module FetchUnit(input wire clk, reset,
|
||||
.A(progC_out),
|
||||
.B(9'b000000001),
|
||||
.Cin(9'b000000000),
|
||||
.Sum(AddrOut));
|
||||
.Sum(AddrOut),
|
||||
.Cout(cout));
|
||||
|
||||
mux_2_1 PCmux(
|
||||
.A(AddrIn),
|
||||
|
||||
Reference in New Issue
Block a user