Merge branch 'master' into comment_clean_up
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
module seconds_display
|
||||
module sixty_display
|
||||
(
|
||||
input [$clog2(60)-1:0] seconds,
|
||||
input [$clog2(60)-1:0] number,
|
||||
output [6:0] display_tens,
|
||||
output [6:0] display_ones
|
||||
);
|
||||
@@ -21,8 +21,8 @@ logic [4:0] tens_digit;
|
||||
//convert digit to ones and tens places
|
||||
always_comb
|
||||
begin
|
||||
ones_digit = seconds % 10;
|
||||
tens_digit = seconds / 10;
|
||||
ones_digit = number % 10;
|
||||
tens_digit = number / 10;
|
||||
end
|
||||
|
||||
//convert both ones and tens place digits to their seven segement equivalent
|
||||
Reference in New Issue
Block a user