-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_SerialReceiver.v
52 lines (46 loc) · 1 KB
/
test_SerialReceiver.v
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 00:47:37 06/16/2021
// Design Name:
// Module Name: test_SerialReceiver
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module test_Receiver ();
reg serial_line = 1;
reg data_fetched = 0;
wire data_available;
wire data;
reg clk = 0;
always #5 clk = !clk;
Receiver ut(
serial_line,
data_fetched,
data_available,
data,
clk
);
initial
begin
serial_line <= 0;
#50;
serial_line <= 1;
#200;
serial_line <= 0;
#200;
serial_line <= 1;
#10;
end
endmodule