From 2a54718dc842d1be84d1470827b538bdaab2cb28 Mon Sep 17 00:00:00 2001 From: dianshi Date: Sun, 13 Feb 2022 21:34:02 +0000 Subject: Add control unit version 0.1 --- control_unit/v0.1/test_control_unit.v | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 control_unit/v0.1/test_control_unit.v (limited to 'control_unit/v0.1/test_control_unit.v') diff --git a/control_unit/v0.1/test_control_unit.v b/control_unit/v0.1/test_control_unit.v new file mode 100644 index 0000000..2398da2 --- /dev/null +++ b/control_unit/v0.1/test_control_unit.v @@ -0,0 +1,21 @@ +`timescale 1ns/1ps + +module test_contorl_unit; + +reg [3:0] opcode; +reg[1:0] alu_op; +reg jump, bne, beq, mem_read, mem_write, alu_src, reg_dst, mem_to_reg, reg_write; + +initial begin + $display("Start testing data path"); + $dumpfile("test_control_unit.vcd"); + $dumpvars(0,test_contorl_unit); +end + + + +initial begin + $monitor("At time=%t",$time); +end + +endmodule \ No newline at end of file -- cgit v1.2.3