case for control unit
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
`timescale 1ns / 1ps
|
`timescale 1ns / 1ps
|
||||||
|
|
||||||
module CPU9bits(input wire [8:0] instr,
|
module CPU9bits(input wire [8:0] instr,
|
||||||
input wire reset, clk,
|
input wire reset, clk,
|
||||||
output reg done
|
output reg done
|
||||||
);
|
);
|
||||||
|
|
||||||
wire [8:0] op1, op2;
|
wire [8:0] op1, op2;
|
||||||
@@ -36,7 +36,11 @@ module CPU9bits(input wire [8:0] instr,
|
|||||||
|
|
||||||
//Make control unit here
|
//Make control unit here
|
||||||
|
|
||||||
|
always @(instr) begin
|
||||||
|
case (instr)
|
||||||
|
9'b000000000: //something
|
||||||
|
endcase
|
||||||
|
end
|
||||||
|
|
||||||
//------------------------------
|
//------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user