This commit is contained in:
2021-01-03 22:28:37 +08:00
parent cb4df25fd2
commit 7e687a2659
7 changed files with 183 additions and 18 deletions
+12 -2
View File
@@ -8,7 +8,7 @@ module SegAndLed_K7(
input wire [ 15: 0 ] led_infinity,
input wire [ 7: 0 ] score_classic,
input wire [ 7: 0 ] score_infinity,
input wire [ 31: 0 ] default_num, //when mode is 0
input wire [ 31: 0 ] default_num, //when mode is 0
input wire [ 4: 0 ] timer,
input wire enable_game_classic,
input wire enable_game_infinity,
@@ -60,7 +60,17 @@ always @( posedge clk ) begin
2'b11:
num <= { 4'b1000, 4'b1000, 4'b1000, 4'b1000, 4'b1000, 4'b1000, 4'b1000, 4'b1000 };
default num <= 0;
endcase
end
SEG_DRV m_SEG_DRV(
.clk( clk ),
.num( num ),
.ena( 1'b1 ),
.point( 8'b0000_0000 ),
.S_DT( seg_sout ),
.S_CLK( seg_clk ),
.S_CLR( seg_clrn ),
.S_EN( SEG_PEN )
);
endmodule