mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-08-01 00:25:03 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
85f52ef918 | ||
|
46d859f68c | ||
|
ac69ecdc21 | ||
|
9bbefbe631 |
@@ -14,7 +14,7 @@
|
||||
* VERSION and NAME are used in the start-up message
|
||||
********************************************************/
|
||||
|
||||
#define VERSION "0.982"
|
||||
#define VERSION "0.984"
|
||||
|
||||
#if defined(CPU_Z80)
|
||||
#define NAME "ICE-Z80"
|
||||
@@ -1053,6 +1053,9 @@ uint8_t logDetails() {
|
||||
}
|
||||
|
||||
void logAddr() {
|
||||
// Delay works around a race condition with slow CPUs
|
||||
// (really the STEP and RESET commands should be synchronous)
|
||||
Delay_us(100);
|
||||
memAddr = hwRead16(OFFSET_IAL);
|
||||
// Update the serial console
|
||||
logCycleCount(OFFSET_CNTL, OFFSET_CNTH);
|
||||
|
@@ -104,6 +104,11 @@ architecture behavioral of MOS6502CpuMonALS is
|
||||
signal led_trig0 : std_logic;
|
||||
signal led_trig1 : std_logic;
|
||||
|
||||
signal PhiIn1 : std_logic;
|
||||
signal PhiIn2 : std_logic;
|
||||
signal PhiIn3 : std_logic;
|
||||
signal PhiIn4 : std_logic;
|
||||
|
||||
begin
|
||||
|
||||
sw_reset_cpu <= not sw1;
|
||||
@@ -171,11 +176,22 @@ begin
|
||||
ML_n <= '1';
|
||||
VP_n <= '1';
|
||||
|
||||
process(clock)
|
||||
begin
|
||||
if rising_edge(clock) then
|
||||
PhiIn1 <= PhiIn;
|
||||
PhiIn2 <= PhiIn1;
|
||||
PhiIn3 <= PhiIn2;
|
||||
PhiIn4 <= PhiIn3;
|
||||
end if;
|
||||
|
||||
end process;
|
||||
|
||||
-- Level Shifter Controls
|
||||
OERW_n <= not (BE);
|
||||
OEAH_n <= not (BE);
|
||||
OEAL_n <= not (BE);
|
||||
OED_n <= not (BE and PhiIn); -- TODO: might need to use a slightly delayed version of Phi2 here
|
||||
OERW_n <= '0'; -- not (BE);
|
||||
OEAH_n <= '0'; -- not (BE);
|
||||
OEAL_n <= '0'; -- not (BE);
|
||||
OED_n <= not (BE and PhiIn and PhiIn4); -- TODO: might need to use a slightly delayed version of Phi2 here
|
||||
DIRD <= R_W_n_int;
|
||||
|
||||
end behavioral;
|
||||
|
Reference in New Issue
Block a user