mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-07-22 14:24:14 +00:00
Compare commits
2 Commits
hack_6502_
...
release_3
Author | SHA1 | Date | |
---|---|---|---|
|
11887e8f8c | ||
|
6ac7902449 |
@@ -14,7 +14,7 @@
|
||||
* VERSION and NAME are used in the start-up message
|
||||
********************************************************/
|
||||
|
||||
#define VERSION "0.981"
|
||||
#define VERSION "0.982"
|
||||
|
||||
#if defined(CPU_Z80)
|
||||
#define NAME "ICE-Z80"
|
||||
|
@@ -52,6 +52,7 @@ entity Z80CpuMon is
|
||||
-- Buffer Control Signals
|
||||
DIRD : out std_logic;
|
||||
tristate_n : out std_logic;
|
||||
tristate_ad_n : out std_logic;
|
||||
|
||||
-- Mode jumper, tie low to generate NOPs when paused
|
||||
mode : in std_logic;
|
||||
@@ -415,6 +416,11 @@ begin
|
||||
|
||||
BUSAK_n <= BUSAK_n_int when state = idle else mon_busak_n;
|
||||
|
||||
-- Force the address and databus to tristate when reset is asserted
|
||||
tristate_ad_n <= '0' when RESET_n = '0' else
|
||||
BUSAK_n_int when state = idle else
|
||||
mon_busak_n1;
|
||||
|
||||
-- The Acorn Z80 Second Processor needs ~10ns of address hold time following M1
|
||||
-- and MREQ being released at the start of T3. Otherwise, the ROM switching
|
||||
-- during NMI doesn't work reliably due to glitches. See:
|
||||
|
@@ -95,6 +95,7 @@ architecture behavioral of Z80CpuMonALS is
|
||||
signal HALT_n_int : std_logic;
|
||||
signal BUSAK_n_int : std_logic;
|
||||
signal tristate_n : std_logic;
|
||||
signal tristate_ad_n: std_logic;
|
||||
|
||||
signal sw_reset_cpu : std_logic;
|
||||
signal sw_reset_avr : std_logic;
|
||||
@@ -121,9 +122,9 @@ begin
|
||||
BUSAK_n <= BUSAK_n_int;
|
||||
|
||||
OEC_n <= not tristate_n;
|
||||
OEA1_n <= not tristate_n;
|
||||
OEA2_n <= not tristate_n;
|
||||
OED_n <= not tristate_n;
|
||||
OEA1_n <= not tristate_ad_n;
|
||||
OEA2_n <= not tristate_ad_n;
|
||||
OED_n <= not tristate_ad_n;
|
||||
|
||||
wrapper : entity work.Z80CpuMon
|
||||
generic map (
|
||||
@@ -157,6 +158,7 @@ begin
|
||||
-- Buffer Control Signals
|
||||
DIRD => DIRD,
|
||||
tristate_n => tristate_n,
|
||||
tristate_ad_n => tristate_ad_n,
|
||||
|
||||
-- Mode jumper, tie low to generate NOPs when paused
|
||||
mode => mode,
|
||||
|
@@ -94,6 +94,7 @@ architecture behavioral of Z80CpuMonGODIL is
|
||||
signal Addr_int : std_logic_vector(15 downto 0);
|
||||
|
||||
signal tristate_n : std_logic;
|
||||
signal tristate_ad_n: std_logic;
|
||||
|
||||
begin
|
||||
sw_reset_cpu <= sw1;
|
||||
@@ -107,7 +108,7 @@ begin
|
||||
IORQ_n <= 'Z' when tristate_n = '0' else IORQ_n_int;
|
||||
RD_n <= 'Z' when tristate_n = '0' else RD_n_int;
|
||||
WR_n <= 'Z' when tristate_n = '0' else WR_n_int;
|
||||
Addr <= (others => 'Z') when tristate_n = '0' else Addr_int;
|
||||
Addr <= (others => 'Z') when tristate_ad_n = '0' else Addr_int;
|
||||
|
||||
wrapper : entity work.Z80CpuMon
|
||||
generic map (
|
||||
@@ -140,6 +141,7 @@ begin
|
||||
|
||||
-- Buffer Control Signals
|
||||
tristate_n => tristate_n,
|
||||
tristate_ad_n => tristate_ad_n,
|
||||
DIRD => open,
|
||||
|
||||
-- Mode jumper, tie low to generate NOPs when paused
|
||||
|
@@ -94,6 +94,7 @@ architecture behavioral of Z80CpuMonLX9 is
|
||||
signal Addr_int : std_logic_vector(15 downto 0);
|
||||
|
||||
signal tristate_n : std_logic;
|
||||
signal tristate_ad_n: std_logic;
|
||||
|
||||
begin
|
||||
|
||||
@@ -108,7 +109,7 @@ begin
|
||||
IORQ_n <= 'Z' when tristate_n = '0' else IORQ_n_int;
|
||||
RD_n <= 'Z' when tristate_n = '0' else RD_n_int;
|
||||
WR_n <= 'Z' when tristate_n = '0' else WR_n_int;
|
||||
Addr <= (others => 'Z') when tristate_n = '0' else Addr_int;
|
||||
Addr <= (others => 'Z') when tristate_ad_n = '0' else Addr_int;
|
||||
|
||||
wrapper : entity work.Z80CpuMon
|
||||
generic map (
|
||||
@@ -141,6 +142,7 @@ begin
|
||||
|
||||
-- Buffer Control Signals
|
||||
tristate_n => tristate_n,
|
||||
tristate_ad_n => tristate_ad_n,
|
||||
DIRD => open,
|
||||
|
||||
-- Mode jumper, tie low to generate NOPs when paused
|
||||
|
Reference in New Issue
Block a user