Comments (1)
This is an interesting issue, it seems that the CPLD itself is the cause.
The RA bus on the Apple IIe is shared between the MMU and the IOU; the MMU drives the bus when PHI_0 is HIGH, and the IOU drives it when PHI_0 is LOW. When the MMU or IOU is not driving the RA bus, it 'disables' it's output to the bus. If we consider the MMU, it drives the bus from the rising edge of /RAS in the previous cycle (i.e. /RAS is HIGH, but PHI_0 and Q3 are LOW) to the falling edge of Q3 of the current cycle (i.e. while both PHI_0 and Q3 are HIGH). A requirement of the RAM used in the Apple II serie is that the RA bus must hold it's value for some short delay past the falling edge of Q3. One way to do this, when using an Altera device, is to use the LCELL primitive; it adds ~5 ns per LCELL and is useful when precise timing is not required.
The LCELL primitive is a buffer and should not modify the signal. So, with this VHDL code:
TEST_SIGNAL <= Q3 nand PHI_0;
INITIAL_DELAY : LCELL port map(
A_IN => TEST_SIGNAL,
A_OUT => TEST_DELAYED(0)
);
g_GENERATE_DELAY: for i in 0 to 8 generate
DELAY : LCELL port map(
A_IN => TEST_DELAYED(i),
A_OUT => TEST_DELAYED(i+1)
);
end generate g_GENERATE_DELAY;
LCELL_DELAYED <= TEST_DELAYED(9);
This just connect TEST_SIGNAL
through a serie of 10 LCELLs. We would expect LCELL_DELAYED
to be the same as TEST_SIGNAL
, delayed by ~50ns. But that's not what we have:
Yellow is TEST_SIGNAL
,
Cyan is LCELL_DELAYED
,
Magenta is PHI_0
,
Blue is Q3
The above image is a bit crowded, so this is just TEST_SIGNAL
and LCELL_DELAYED
:
You can see LCELL_DELAYED
dropping but TEST_SIGNAL
is not! It's the LCELLs that are causing this drop; this is what a 2-LCELLs looks like:
Normally, LCELLs behave as expected, but in the above case, I think it's due to the fact that TEST_SIGNAL
is computed from two slow-changing signals:
As you can see the drop is ~50ns after the PHI_0
/ Q3
change.
Should be fixed soon.
from apple_iie_mmu_iou.
Related Issues (19)
- [IOU] At power-on, POC and RESET_N are not valid. HOT 1
- The computation of the line addresses is incorrect. HOT 1
- Fix the test IOU_TB_SCANNER_MUX HOT 1
- Garbage is displayed when a 64K/80COL card is present HOT 1
- Add a hardware implementation guide HOT 3
- Add Apple IIc features to the IOU
- Add Apple IIc features to the MMU
- HIRES images: rightmost part displayed on the left side, shifted down. HOT 3
- Document all timings requirements for the IOU and MMU
- RESET should not clear the ITEXT and MIX soft-switches. HOT 1
- At power-on, the video color burst is present.
- Check if RA_ENABLE_N need a hold delay HOT 1
- Problem with RAM /RAS hold time. HOT 3
- Some game cause the Apple IIe to hang HOT 2
- The Black Cauldron has some issues HOT 2
- Bring the signals timings closer to the ASICs HOT 1
- No familiar 'beep' on power-on
- RAMWORKS fails to recognize slow RAM in rows other than first. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple_iie_mmu_iou.