1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-01-27 12:21:44 +00:00

[NES] Use LED while ROM downloading.

This commit is contained in:
sorgelig
2016-01-06 15:06:32 +08:00
parent 3200ed2cb5
commit 4626d119b7

View File

@@ -390,11 +390,6 @@ assign VGA_VS = scandoubler_disable ? 1'b1 : nes_vs;
.RESET (reset_nes)
);
// let the LED fade using a small 8 bit pwm
reg [24:0] led_cnt;
always @(posedge clk)
led_cnt <= led_cnt + 25'd1;
assign LED = (led_cnt[24])?(led_cnt[23:16]>led_cnt[7:0]):(led_cnt[23:16]<led_cnt[7:0]);
assign LED = ~downloading;
endmodule