comment clean up for segment_display folder
This commit is contained in:
parent
a07e811a16
commit
53b48c0bce
@ -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
|
* @author: Dilanthi Prentice, Waylon Cude
|
||||||
* @date: 6/12/25
|
* @date: 6/12/25
|
||||||
@ -16,14 +18,14 @@ module seconds_display
|
|||||||
logic [4:0] ones_digit;
|
logic [4:0] ones_digit;
|
||||||
logic [4:0] tens_digit;
|
logic [4:0] tens_digit;
|
||||||
|
|
||||||
|
//convert digit to ones and tens places
|
||||||
always_comb
|
always_comb
|
||||||
begin
|
begin
|
||||||
ones_digit = seconds % 10;
|
ones_digit = seconds % 10;
|
||||||
tens_digit = seconds / 10;
|
tens_digit = seconds / 10;
|
||||||
end
|
end
|
||||||
|
|
||||||
//instantiate the display_converter to convert the counter
|
//convert both ones and tens place digits to their seven segement equivalent
|
||||||
//to a seven segment display number
|
|
||||||
display_converter ones (ones_digit, display_ones);
|
display_converter ones (ones_digit, display_ones);
|
||||||
display_converter tens (tens_digit, display_tens);
|
display_converter tens (tens_digit, display_tens);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user