-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.v
More file actions
49 lines (43 loc) · 884 Bytes
/
test.v
File metadata and controls
49 lines (43 loc) · 884 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
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 18:00:42 04/09/2019
// Design Name: RISC
// Module Name: /home/013/m/mx/mxv180000/Desktop/FPGA/test_Risc_16_bit.v
// Project Name: FPGA
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: RISC
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module test;
// Inputs
reg clk;
reg [7:0] sw;
wire [7:0] led;
// Instantiate the Unit Under Test (UUT)
RISC_8bit uut (
.clk(clk),.led(led),.sw(sw)
);
initial
begin
clk <=0;
sw <= 8'b00001010;
#50;
$finish;
end
always
begin
#5 clk = ~clk;
end
endmodule