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