-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMulti_8CH32.v
87 lines (83 loc) · 2.05 KB
/
Multi_8CH32.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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 14:09:25 11/16/2017
// Design Name:
// Module Name: Multi_8CH32
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Multi_8CH32(input clk,
input rst,
input EN,
input [2:0] Test,
input [63:0] point_in,
input [63:0] LES,
input [31:0] Data0,
input [31:0] data1,
input [31:0] data2,
input [31:0] data3,
input [31:0] data4,
input [31:0] data5,
input [31:0] data6,
input [31:0] data7,
output [7:0] point_out,
output [7:0] LE_out,
output [31:0] Disp_num
);
reg [31:0] disp_data = 32'hAA5555AA;
reg [7:0] cpu_blink = 8'b11111111, cpu_point = 4'b00000000;
MUX8T1_32 MUX1_DispData(.I0(disp_data),
.I1(data1),
.I2(data2),
.I3(data3),
.I4(data4),
.I5(data5),
.I6(data6),
.I7(data7),
.s(Test),
.o(Disp_num) );
ExMUX_sch MUX2_Blink(.I0(cpu_blink),
.I1(LES[15:8]),
.I2(LES[23:16]),
.I3(LES[31:24]),
.I4(LES[39:32]),
.I5(LES[47:40]),
.I6(LES[55:48]),
.I7(LES[63:56]),
.S(Test),
.o(LE_out) );
ExMUX_sch MUX3_Point(.I0(cpu_point),
.I1(point_in[15:8]),
.I2(point_in[23:16]),
.I3(point_in[31:24]),
.I4(point_in[39:32]),
.I5(point_in[47:40]),
.I6(point_in[55:48]),
.I7(point_in[63:56]),
.S(Test),
.o(point_out) );
always@(posedge clk) begin
if (EN) begin
disp_data <= Data0;
cpu_blink <= LES[7:0];
cpu_point <= point_in[7:0];
end
else begin
disp_data <= disp_data;
cpu_blink <= cpu_blink;
cpu_point <= cpu_point;
end
end
endmodule