Line 20... |
Line 20... |
module zxspectrum_board
|
module zxspectrum_board
|
(
|
(
|
//-------- Clocks and reset -----------------
|
//-------- Clocks and reset -----------------
|
input wire CLOCK_27, // Input clock 27 MHz
|
input wire CLOCK_27, // Input clock 27 MHz
|
input wire CLOCK_24, // Input clock 24 MHz
|
input wire CLOCK_24, // Input clock 24 MHz
|
input wire KEY0, // RESET button
|
input wire KEY0, // RESET button; on DE1, keys are active low!
|
input wire KEY1, // NMI button
|
input wire KEY1, // NMI button
|
|
|
//-------- PS/2 Keyboard --------------------
|
//-------- PS/2 Keyboard --------------------
|
input wire PS2_CLK,
|
input wire PS2_CLK,
|
input wire PS2_DAT,
|
input wire PS2_DAT,
|
Line 200... |
Line 200... |
//-------- Clocks and reset -----------------
|
//-------- Clocks and reset -----------------
|
.CLOCK_27 (CLOCK_27), // Input clock 27 MHz
|
.CLOCK_27 (CLOCK_27), // Input clock 27 MHz
|
.CLOCK_24 (CLOCK_24), // Input clock 24 MHz
|
.CLOCK_24 (CLOCK_24), // Input clock 24 MHz
|
.turbo (SW2), // Turbo speed (3.5 MHz x 2 = 7.0 MHz)
|
.turbo (SW2), // Turbo speed (3.5 MHz x 2 = 7.0 MHz)
|
.clk_vram (clk_vram),
|
.clk_vram (clk_vram),
|
.reset (reset), // KEY0 is reset
|
.nreset (reset), // KEY0 is reset; on DE1, keys are active low!
|
.locked (locked), // PLL is locked signal
|
.locked (locked), // PLL is locked signal
|
|
|
//-------- CPU control ----------------------
|
//-------- CPU control ----------------------
|
.clk_cpu (clk_cpu), // Generates CPU clock of 3.5 MHz
|
.clk_cpu (clk_cpu), // Generates CPU clock of 3.5 MHz
|
.vs_nintr (vs_nintr), // Generates a vertical retrace interrupt
|
.vs_nintr (vs_nintr), // Generates a vertical retrace interrupt
|