Created CPU9bits file

This commit is contained in:
jose.rodriguezlabra
2019-03-10 13:42:30 -04:00
parent 8a903ebcfd
commit 172238b4e0
3 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
`timescale 1ns / 1ps
module CPU9bits(input wire [8:0] instr,
input wire reset, clk,
output reg done
);
wire [8:0] op1, op2;
RegFile RF(
.clk(clk),
.reset(reset),
.enable(),
.write_index(),
.op0_idx(),
.op1_idx(),
.write_data(),
.op0(op0),
.op1(op1)
);
FetchUnit FU(
.clk(clk),
.reset(reset),
.op_idx(),
.AddrIn(),
.AddrOut()
);
ALU alu(
.opcode(),
.operand0(op0),
.operand1(op1),
.result()
);
//Make control unit here
//------------------------------
endmodule