mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
4b054b5496
Signed-off-by: Joshua Fife <jpfife17@gmail.com>
31 lines
472 B
Systemverilog
31 lines
472 B
Systemverilog
`timescale 1ns / 1ps `default_nettype none
|
|
|
|
module top (
|
|
input wire logic clk,
|
|
btnc,
|
|
sw,
|
|
output logic [3:0] anode,
|
|
output logic [7:0] segment
|
|
);
|
|
|
|
logic [15:0] digitData;
|
|
|
|
timer TC0 (
|
|
clk,
|
|
btnc,
|
|
sw,
|
|
digitData[3:0],
|
|
digitData[7:4],
|
|
digitData[11:8],
|
|
digitData[15:12]
|
|
);
|
|
display_control SSC0 (
|
|
clk,
|
|
btnc,
|
|
digitData,
|
|
4'b1111,
|
|
4'b0100,
|
|
anode,
|
|
segment
|
|
);
|
|
endmodule
|