From 53b48c0bce5aa47eb88da7fb8be78fcfc3c8a0fa Mon Sep 17 00:00:00 2001 From: dilanthi Date: Tue, 10 Jun 2025 01:38:52 -0700 Subject: [PATCH] comment clean up for segment_display folder --- design/segment_display/seconds_display.sv | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);