14 Commits

Author SHA1 Message Date
15ff8132f5 Tweak DTACK
On reads, DTACK will now come out 3 clocks after the READ command to the RAM
With a CAS latency of 2, the read data will be valid at READ+2

The A4091 latches data as soon as DTACK is seen, so this delay was needed to make sure the A4091 correctly latches data from GottaGoFaZt3r
2024-09-28 11:13:16 +12:00
c3d9513f81 Remove dirty speed hack
Previously the board would assert DTACK very early on reads for a speed
boost...
This usually isn't a problem because Buster is slow to notice but sometimes causes issues for the A4091

Thanks goes to dorken @ a1k.org for pointing this out
2023-06-28 08:14:35 +00:00
c5867efffd Build firmware 2023-04-15 04:56:41 +00:00
4ccc2244f3 Makefile tweaks
* CPLDFIT: set unused outputs (TP1,TP2) to GND
* Tweak flash target so that it will use the .jed in the Binaries directory
2022-08-31 11:05:17 +00:00
b0589a1632 Rewrite ram controller
Reduce macrocell usage from ~130 to 97
2022-08-29 22:28:48 +00:00
e12969d6eb Address matching tweaks
* Split out ram / autoconf address match
* Ensure autoconfig cycles don't run unless CFGIN_n is asserted
2022-06-29 06:26:15 +00:00
b2a5c3fa75 Minor updates:
* Set slew rate to slow
* SDRAM state engine: Don't wait for data strobes on reads
2022-06-20 15:03:32 +00:00
0a770dc2d6 Drive RAM and Autoconfig cycles with Z3 State machine
Previously ram_cycle would latch at FCSn asserted and not be cleared until another FCSn assertion happened

This caused issues because FCS_n_sync would lead ram_cycle_sync by 1 clock and this caused false memory cycles to start because ram_cycle_sync would still be true when it shouldn't be.
2022-06-13 15:27:55 +00:00
849941a405 Fixup Autoconfig dtack
Don't assert DTACK until data time during Autoconfig cycles.
Asserting on Autoconf address decode was too fast for 68040
2022-06-07 18:52:41 +00:00
6b74cff974 Add Z3 state machine to autoconfig component
Previously it just kept writing the base address which caused issues with an A3640/68040 because it would get trashed at the end of the cycle
2022-06-07 18:17:16 +00:00
d1cbe28505 Remove burst stuff
Burst feature not working properly and probably not worth the pain
2022-06-07 17:59:50 +00:00
c34c9c7f13 Fixup clock enable 2022-04-23 17:36:13 +00:00
bfd8223689 Tidy up code and add more comments 2022-04-23 15:12:29 +00:00
bc86047ed7 Initial Commit 2022-04-22 18:12:23 +00:00