All checks were successful
ci/woodpecker/push/test-workflow Pipeline was successful
Also fixed up the one type I found in the seconds display
30 lines
643 B
Systemverilog
30 lines
643 B
Systemverilog
/***
|
|
* seconds_display.sv - convert a seconds counter to a seven segement display.
|
|
*
|
|
* @author: Dilanthi Prentice, Waylon Cude
|
|
* @date:[unsure of due date]
|
|
*
|
|
*/
|
|
module seconds_display
|
|
(
|
|
input [$clog2(60)-1:0] seconds,
|
|
output [6:0] display_tens,
|
|
output [6:0] display_ones
|
|
);
|
|
|
|
logic [4:0] ones_digit;
|
|
logic [4:0] tens_digit;
|
|
|
|
always_comb
|
|
begin
|
|
ones_digit = seconds % 10;
|
|
tens_digit = seconds / 10;
|
|
end
|
|
|
|
//instantiate the display_converter to convert the counter
|
|
//to a seven segment display number
|
|
display_converter ones (ones_digit, display_ones);
|
|
display_converter tens (tens_digit, display_tens);
|
|
|
|
endmodule
|