Files
WMU-ECE-3570-Lab/lab2CA.srcs/sources_1/new/CPU9bits.v
jose.rodriguezlabra 7406cddb64 case for control unit
2019-03-10 14:05:21 -04:00

48 lines
832 B
Verilog

`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
always @(instr) begin
case (instr)
9'b000000000: //something
endcase
end
//------------------------------
endmodule