Enable FDD activity LED.

This commit is contained in:
sorgelig
2020-08-19 06:33:25 +08:00
parent 2b8126d7d0
commit 7a7af7cc5f
2 changed files with 9 additions and 8 deletions

View File

@@ -130,10 +130,10 @@ assign {UART_RTS, UART_TXD, UART_DTR} = 0;
assign {DDRAM_CLK, DDRAM_BURSTCNT, DDRAM_ADDR, DDRAM_DIN, DDRAM_BE, DDRAM_RD, DDRAM_WE} = 0;
assign {SD_SCK, SD_MOSI, SD_CS} = 'Z;
assign LED_USER = 0;
assign LED_USER = fdd_led;
assign LED_DISK = 0;
assign LED_POWER = 0;
assign BUTTONS = 0;
assign BUTTONS = 0;
assign VIDEO_ARX = status[1] ? 8'd16 : 8'd4;
assign VIDEO_ARY = status[1] ? 8'd9 : 8'd3;
@@ -299,6 +299,8 @@ wire [15:0] ide_data_i;
wire ide_data_rd;
wire ide_data_we;
wire fdd_led;
archimedes_top #(CLKSYS) ARCHIMEDES
(
.CLKCPU_I ( clk_sys ),
@@ -335,7 +337,7 @@ archimedes_top #(CLKSYS) ARCHIMEDES
.I2C_DIN ( i2c_dout ),
.I2C_CLOCK ( i2c_clock ),
.DEBUG_LED ( ),
.FDD_LED ( fdd_led ),
.sd_lba ( sd_lba ),
.sd_rd ( sd_rd ),

View File

@@ -66,10 +66,10 @@ module archimedes_top #(parameter CLKCPU)
output I2C_DOUT,
input I2C_DIN,
output I2C_CLOCK,
// "Floppy" LED
output DEBUG_LED,
output FDD_LED,
// floppy connections to external controller
input [1:0] img_mounted, // signaling that new image has been mounted
input img_wp, // write protect. latched at img_mounted
@@ -456,7 +456,6 @@ assign I2C_CLOCK = ioc_cout[1];
assign I2C_DOUT = ioc_cout[0];
assign ioc_cin[5:0] = {ioc_cout[5:2], I2C_CLOCK, I2C_DIN};
assign DEBUG_LED = ~(~floppy_inuse & ~floppy_drive[0]);
assign FDD_LED = ~floppy_inuse;
endmodule // archimedes_top