/***
* seconds_display.sv - converts a five bit seconds counter to its seven segement display equivalent.
*
* @author: Dilanthi Prentice, Waylon Cude
* @date: 6/12/25
*
*/

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
