| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
Arduino-based 1541 emulator. Possible?
Talking about Arduino with an hw-hacker father of a friend, i started to thinking about on how to build a full-compatible 1541 clone (6510, cia, ram, etc...) using Arduino hw.
I found this 6502 emulator:
http://www.df.lth.se/~richard/6502emu2.pde
May be possible to build a full sd card reader fully 1541 compatible (for low level drive programming)? |
|
... 28 posts hidden. Click here to view all posts.... |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
You can do it on x86. With fast enough CPU and an RTOS guaranteeing CPU time etc. Or by doing your stuff in DOS/BIOS and disable instruction and memory caches to get complete control over timing. Fast enough CPU using a high precision timer would suffice. But in a "normal" OS environment like Windows, Linux or Mac OS the timing will be too jittery. You might be able to do it by scheduling a timer interrupt at a really high priority as a kernel driver/module. |
| |
CreaMD
Registered: Dec 2001 Posts: 3057 |
Jackasser.. thanx. |
| |
WVL
Registered: Mar 2002 Posts: 902 |
I think something like this :
http://www.adafruit.com/products/451
plus an arduino with an LCD (for selecting .d64) and SD reader could make a nice 1541 emulator |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
Quoting WVLI think something like this :
http://www.adafruit.com/products/451
plus an arduino with an LCD (for selecting .d64) and SD reader could make a nice 1541 emulator
That's a tiny FPGA. 22kLE isn't much. and not putting the full drive emulation into the FPGA is probably going to make stuff more complicated. Remember, you still need to act on 1 us events and synchronize that with your cycle exact emulation running asynchronously in software.
It might be cheaper in material costs though, but that only matters in high volumes. |
| |
WVL
Registered: Mar 2002 Posts: 902 |
I think the ultimate I doesnt have a lot more logic elements? also the ultimate needs to emulate a cpu in the fpga aswell...
Basically all your arduino/whatever cpu has to do is let the user select an image and transfer it to the FPGA's memory..
Just checked, the ultimate I has about 5500 logic cells, while this cyclone II has 22000! that's 4x more than an ultimate I! |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
Quoting WVLI think the ultimate I doesnt have a lot more logic elements? also the ultimate needs to emulate a cpu in the fpga aswell...
Basically all your arduino/whatever cpu has to do is let the user select an image and transfer it to the FPGA's memory..
Just checked, the ultimate I has about 5500 logic cells, while this cyclone II has 22000! that's 4x more than an ultimate I!
Actually you're right, sorry. I guess I'm just spoilt by more high end ones. ;)
So why not run the full emulation in the FPGA? |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
"You might be able to do it by scheduling a timer interrupt at a really high priority as a kernel driver/module."
and thats precisely what openCBM does :)
and i dont think putting parts of the emulation into an FPGA and another part into software is a good idea or would save timer and/or money. once you have all the other chips in the fpga, adding the cpu aswell is least of all problems :) |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
There is the 1541 Ultimate. Where's the problem and what did i get wrong? Or do we just urgently need some more flaky ghetto-solutions? :-) |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
Quote: "You might be able to do it by scheduling a timer interrupt at a really high priority as a kernel driver/module."
and thats precisely what openCBM does :)
and i dont think putting parts of the emulation into an FPGA and another part into software is a good idea or would save timer and/or money. once you have all the other chips in the fpga, adding the cpu aswell is least of all problems :)
Oh does opencbm support custom drivecode? I thought it only implemented iec which more or less is possible to implement in user space since the protocol is clocked. Anyway, cool if it does support custom drive code! :) |
| |
CreaMD
Registered: Dec 2001 Posts: 3057 |
Groepaz? So is there chance to have "true drive emulation" on stock PC that way? |
Previous - 1 | 2 | 3 | 4 - Next |