Revision 170
Added by markw almost 11 years ago
replay/source/Core_Top.vhd | ||
---|---|---|
end if;
|
||
end if;
|
||
end process shiftlock;
|
||
o_kb_led(0) <= pause_key; -- SCROLL LOCK LED
|
||
o_kb_led(1) <= '0'; -- NUM LOCK LED (take care, enables overlayed NUM keys on compact keyboards as well!)
|
||
o_kb_led(2) <= sh_lock_key; -- CAPS LOCK LED
|
||
--o_kb_led(1) <= '0'; -- NUM LOCK LED (take care, enables overlayed NUM keys on compact keyboards as well!)
|
||
--o_kb_led(2) <= sh_lock_key; -- CAPS LOCK LED
|
||
--o_kb_led <= "000";
|
||
o_kb_led <= "000"; -- keyboard led code breaks some keyboards apparently
|
||
|
||
-- mix keyboard matrix with shift-lock key
|
||
matrix_out_mix <= matrix_out(7 downto 0) OR X"02" when sh_lock_key='1' and matrix_in=X"08" else
|
replay/source/Replay_Top.vhd | ||
---|---|---|
signal ena_sys_c1 : bit1;
|
||
signal ena_sys_ddr : bit1;
|
||
|
||
-- filio defaults - clearly wrong unless I want 1 fd/1hd on atari 800 :) Now implemented yet.
|
||
constant cfg_fileio_cha_ena : word(3 downto 0) := "1111"; -- FD
|
||
constant cfg_fileio_cha_drv : word(3 downto 0) := "0001"; -- driver 1 (FD)
|
||
constant cfg_fileio_chb_ena : word(3 downto 0) := "0011"; -- HD
|
||
constant cfg_fileio_chb_drv : word(3 downto 0) := "1000"; -- driver 8 (ATA)
|
||
|
||
begin
|
||
u_spi_bufg : BUFG port map (I => i_FPGA_SPI_Clk, O => clk_spi);
|
||
|
||
... | ... | |
u_Syscon : entity work.Replay_Syscon
|
||
generic map (
|
||
-- defaults
|
||
g_Cfg_Static => x"00000000",
|
||
g_Cfg_Dynamic => x"00000000",
|
||
g_cfg_fileio_hd_ena => "0000",
|
||
g_cfg_fileio_fd_ena => "0000",
|
||
g_Cfg_Ctrl => x"0080",
|
||
g_cfg_static => x"00000000",
|
||
g_cfg_dynamic => x"00000000",
|
||
g_cfg_fileio_cha_ena => cfg_fileio_cha_ena,
|
||
g_cfg_fileio_cha_drv => cfg_fileio_cha_drv,
|
||
g_cfg_fileio_chb_ena => cfg_fileio_chb_ena,
|
||
g_cfg_fileio_chb_drv => cfg_fileio_chb_drv,
|
||
g_cfg_ctrl => x"0080",
|
||
--
|
||
g_Version => x"1001" -- top bit DRAM disabled
|
||
)
|
||
... | ... | |
--
|
||
o_cfg_Static => cfg_static,
|
||
o_cfg_Dynamic => cfg_dynamic,
|
||
o_Cfg_FileIO => open,
|
||
o_cfg_fileio_cha => open,
|
||
o_cfg_fileio_chb => open,
|
||
o_Cfg_Ctrl => cfg_ctrl,
|
||
--
|
||
i_Kb_PS2_We => kb_we,
|
||
... | ... | |
i_SPI_D => b_FPGA_SPI_MOSI,
|
||
o_SPI_D => spi_fileio_miso,
|
||
--
|
||
-- FD
|
||
-- FILE A
|
||
--
|
||
o_fch_to_core => open,
|
||
i_fch_fm_core => z_FCh_fm_core, -- tie off
|
||
o_fcha_to_core => open,
|
||
--i_fcha_fm_core => fcha_fm_core,
|
||
--
|
||
-- HD
|
||
-- FILE B
|
||
--
|
||
o_hch_to_core => open,
|
||
i_hch_fm_core => z_HCh_fm_core, -- tie off
|
||
o_fchb_to_core => open,
|
||
--i_fchb_fm_core => fchb_fm_core,
|
||
--
|
||
-- Memory interface
|
||
--
|
Also available in: Unified diff
Updated replay lib. Disabled LEDs. In theory the latest replaylib has working fileio so I can implement that soon...