-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanaltsis_tele.v
91 lines (79 loc) · 1.9 KB
/
analtsis_tele.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module analtsis_tele(
sys_clk,
tele_sign_in1,
tele_out11,
tele_out12,
tele_sign_in2,
tele_sign_in3,
tele_out21,
tele_out22,
tele_out31,
tele_out32);
//---Ports declearation: generated by Robei---
input sys_clk;
input [1:0] tele_sign_in1;
output tele_out11;
output tele_out12;
input [1:0] tele_sign_in2;
input [1:0] tele_sign_in3;
output tele_out21;
output tele_out22;
output tele_out31;
output tele_out32;
wire sys_clk;
wire [1:0] tele_sign_in1;
reg tele_out11;
reg tele_out12;
wire [1:0] tele_sign_in2;
wire [1:0] tele_sign_in3;
reg tele_out21;
reg tele_out22;
reg tele_out31;
reg tele_out32;
//----Code starts here: integrated by Robei-----
//tele1˝âÎöżé
always@(posedge sys_clk) begin
if(tele_sign_in1 == 0) begin
tele_out11 <= 0;
tele_out12 <= 0;
end
else if(tele_sign_in1 == 1) begin
tele_out11 <= 1;
tele_out12 <= 0;
end
else begin
tele_out11 <= 0;
tele_out12 <= 1;
end
end
//tele1˝âÎöżé
always@(posedge sys_clk) begin
if(tele_sign_in2 == 0) begin
tele_out21 <= 0;
tele_out22 <= 0;
end
else if(tele_sign_in2 == 1) begin
tele_out21 <= 1;
tele_out22 <= 0;
end
else begin
tele_out21 <= 0;
tele_out22 <= 1;
end
end
//tele1˝âÎöżé
always@(posedge sys_clk) begin
if(tele_sign_in3 == 0) begin
tele_out31 <= 0;
tele_out32 <= 0;
end
else if(tele_sign_in3 == 1) begin
tele_out31 <= 1;
tele_out32 <= 0;
end
else begin
tele_out31 <= 0;
tele_out32 <= 1;
end
end
endmodule //analtsis_tele