-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtime_multiplexing_main.v
More file actions
44 lines (40 loc) · 1012 Bytes
/
time_multiplexing_main.v
File metadata and controls
44 lines (40 loc) · 1012 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
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 10/22/2017 11:02:52 AM
// Design Name:
// Module Name: time_multiplexing_main
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
`timescale 1ns / 1ps
module time_multiplexing_main(
input clk,
input [15:0] sw,
output [3:0] an,
output [7:0] sseg
);
wire [7:0] in0, in1, in2, in3;
hexto7segment c1 (.x(sw[3:0]), .r(in0));
hexto7segment c2 (.x(sw[7:4]), .r(in1));
hexto7segment c3 (.x(sw[11:8]), .r(in2));
hexto7segment c4 (.x(sw[15:12]), .r(in3));
time_mux_state_machine c6(
.clk(clk),
.in0(in0),
.in1(in1),
.in2(in2),
.in3(in3),
.an(an),
.sseg(sseg));
endmodule