Better indentation
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
`timescale 1ns / 1ps
|
||||
|
||||
module FetchUnit(input wire clk, reset,
|
||||
input wire op_idx,
|
||||
input wire [8:0] AddrIn,
|
||||
output wire [8:0] AddrOut);
|
||||
module FetchUnit(
|
||||
input wire clk, reset,
|
||||
input wire op_idx,
|
||||
input wire [8:0] AddrIn,
|
||||
output wire [8:0] AddrOut
|
||||
);
|
||||
|
||||
//Wires from mux(result_m) to PC (progC_out) to adder then back to mux (result_a)
|
||||
wire [8:0] progC_out, result_m;
|
||||
@@ -29,7 +31,6 @@ module FetchUnit(input wire clk, reset,
|
||||
.out(result_m),
|
||||
.switch(op_idx));
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
//testbench
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
`timescale 1ns / 1ps
|
||||
|
||||
module RegFile(input wire clk, reset, enable,
|
||||
input wire [1:0] write_index, op0_idx, op1_idx,
|
||||
input wire [8:0] write_data,
|
||||
output wire [8:0] op0, op1);
|
||||
module RegFile(
|
||||
input wire clk, reset, enable,
|
||||
input wire [1:0] write_index, op0_idx, op1_idx,
|
||||
input wire [8:0] write_data,
|
||||
output wire [8:0] op0, op1
|
||||
);
|
||||
|
||||
wire [3:0] decOut;
|
||||
wire [8:0] r0_out, r1_out, r2_out, r3_out;
|
||||
|
||||
Reference in New Issue
Block a user