diff --git a/design/segment_display/seconds_display.sv b/design/segment_display/seconds_display.sv index 34915c2..ba28367 100644 --- a/design/segment_display/seconds_display.sv +++ b/design/segment_display/seconds_display.sv @@ -1,5 +1,7 @@ /*** -* seconds_display.sv - converts a five bit seconds counter to its seven segement display equivalent. +* sixty_display.sv - converts a binary digit from zero to fifty-nine to its +* ones and tens digits and then gets the seven segment +* display equivalents of them. * * @author: Dilanthi Prentice, Waylon Cude * @date: 6/12/25 @@ -16,14 +18,14 @@ module seconds_display logic [4:0] ones_digit; logic [4:0] tens_digit; +//convert digit to ones and tens places 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 +//convert both ones and tens place digits to their seven segement equivalent display_converter ones (ones_digit, display_ones); display_converter tens (tens_digit, display_tens);