-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpriorityencoder_tb.v
55 lines (49 loc) · 1.05 KB
/
priorityencoder_tb.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
53
54
55
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 18:29:46 07/29/2021
// Design Name: pirorityencoder
// Module Name: E:/pe/priorityencoder_tb.v
// Project Name: pe
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: pirorityencoder
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module priorityencoder_tb;
reg [7:0] d_in;
wire[2:0] d_out;
prio_enco_8x3 u1 (.d_out(d_out), .d_in(d_in) );
initial
begin
d_in=8'b11001100;
#10;
d_in=8'b01100110;
#10;
d_in=8'b00110011;
#10;
d_in=8'b00010010;
#10;
d_in=8'b00001001;
#10;
d_in=8'b00000100;
#10;
d_in=8'b00000011;
#10;
d_in=8'b00000001;
#10;
d_in=8'b00000000;
# 10;
$stop;
end // initial begin
endmodule