-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstructionRegSim.v
More file actions
57 lines (52 loc) · 915 Bytes
/
Copy pathInstructionRegSim.v
File metadata and controls
57 lines (52 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 28.03.2025 16:50:16
// Design Name:
// Module Name: InstructionRegSim
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module InstructionRegSim;
reg LH;
reg Write;
reg [7:0] I;
reg Clock;
wire [15:0] IROut;
InstructionRegister IR1(
.LH(LH),
.Write(Write),
.I(I),
.Clock(Clock),
.IROut(IROut)
);
initial begin
Clock = 1'b0;
forever #5
Clock = ~Clock;
end
initial begin
LH = 1'b1;
Write = 1'b1;
I = 8'h55;
#10;
Write = 1'b0;
LH = ~LH;
I = 8'hFF;
#10;
Write = 1'b1;
I = 8'hAA;
#10;
end
endmodule