6502.org http://forum.6502.org/ |
|
RetroStation32 - an FPGA board for retrocomputing http://forum.6502.org/viewtopic.php?f=10&t=3372 |
Page 1 of 2 |
Author: | enso [ Fri Jul 17, 2015 12:21 am ] |
Post subject: | RetroStation32 - an FPGA board for retrocomputing |
Hello everyone. I am back. Being a glutton for punishment, I am building a new board based on XC3S700AN. Attachment: This time I am integrating 1MB of fast static RAM that can be configured as 32 bits x 256K words or 16 bits x 512K words. With a little muxing it should be possible to use the RAM in 8 bit mode, or two 16-bit cores can be assigned to the two SRAMS. The board also has a keyboard/mouse PS2 port (can be used with a splitter), a 6-bit VGA port, a micro-sd card socket, and a headphone connector for 2-channel 1-bit delta-sigma output. There is also a pushbutton and an LED. For IO I have a serial port, an 8-bit PMOD connector, 5 lines wired to pads and 58-IO lines wired to a high-density connector. Power comes from a mini-USB connector. It should be possible to implement many retro-machines with just the basic board, and there is a lot of room for expansion via the mezzanine connector. I am looking forward to trying the 16 and 32-bit variants of Arlet's core. I just started testing the first board. The FPGA is recognized by Impact, which is a pretty good start... |
Author: | MichaelM [ Fri Jul 17, 2015 1:17 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Great to have you back. Looking forward to following your newest project. |
Author: | barrym95838 [ Fri Jul 17, 2015 2:35 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Yes, great to see you back, enso! That unit looks like it might be a nice flexible soft-core host for the 65Org32, or maybe even my 65m32, if I ever manage to punch my way through the final few rounds of spec. revisions, and get my simulator to compile. Oh yeah, and I need to finish my native ML monitor and my port of Dr. Brad's CamelForth too! I know there's more, but my mind is overwhelmed at the moment with a heavy dose of real-life. Mike B. |
Author: | Dr Jefyll [ Fri Jul 17, 2015 4:17 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Rockin'! The option for 32-bit wide memory sounds alright to me! |
Author: | enso [ Fri Jul 17, 2015 4:20 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
And I am blinking an LED... Could it be that the first board has no dumb errors? Well, the headphone jack footprint I made is backwards, but other than that... |
Author: | BigDumbDinosaur [ Fri Jul 17, 2015 4:38 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
enso wrote: And I am blinking an LED... Could it be that the first board has no dumb errors? Well, the headphone jack footprint I made is backwards, but other than that... Blinken lights are always good! |
Author: | enso [ Fri Jul 17, 2015 6:09 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Now that "it works", I am trying to write the blinky configuration to the internal flash. Oh boy, it is a lot harder than I imagined... Finally got to the point where Impact writes something, with errors... Code: '1': Verification completed successfully. '1': Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and spi mode settings. PROGRESS_END - End Operation. Elapsed time = 94 sec. I remember now something in ug322 about setting the done pin for 3AN devices... Too tired now, will continue tomorrow. It was a pretty good day. Thanks for your encouragement. |
Author: | enso [ Sat Jul 18, 2015 2:22 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Attachment: Finally saving the bitstream in the internal flash. Now it's time to test the rest of the system.Attachment:
|
Author: | enso [ Thu Jul 23, 2015 1:37 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
I've been banging my head against the wall for almost a week now. I implemented a CHOCHI-like bitstream, but for some reason can't get anything longer then helloworld to execute. ehbasic and forth both lock up tight. At first I thought it was a memory-related bug, but after implementing a checksum and a couple of rudimentary memory tests, it appears that the code is actually there, and intact... Moving helloworld around in RAM also seems to work fine. Go figure. I guess I will try harder. I'll start with forth and put serial output in to see how far it gets... I really thought it would take a couple of hours to get CHOCHI code to run on RetroStation. Blargh. |
Author: | BigEd [ Thu Jul 23, 2015 7:25 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Hmm - you have some spare pins to help you see what's going on inside? |
Author: | hoglet [ Thu Jul 23, 2015 10:52 am ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Hi Enso, A bit of a random guess, but in my experience sometimes strange problems like this can be caused by the Xilinx trying to switch too many outputs and the same time. This, can be made worse if the decoupling is not adequate. One thing to try in your UCF file is to all the edges down, by adding | SLEW=SLOW | DRIVE = 2 to all your outputs. Dave |
Author: | enso [ Thu Jul 23, 2015 8:15 pm ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
I suspected decoupling at first, and stuck some extra capacitors on. SLEW and DRIVE did not help. It's one of those weird things. I filled the RAM with bcs *+2 followed by the working "hello world" code (after an stc), and it runs through the entire RAM without locking up... I tried tracing into figforth, but it gets convoluted. I am trying to come up with a simple test case that fails. |
Author: | ElEctric_EyE [ Thu Jul 23, 2015 9:50 pm ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Do you suspect that big mother lode of a BGA? Maybe a possible single pin not connecting? |
Author: | enso [ Thu Jul 23, 2015 10:43 pm ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
At this point I am suspicious of everything, mostly myself. It _seems_ to work fine out of the BRAM mapped from $FC00 to 03FF. I've concocted a monitor in the upper RAM and haven't had a glitch with it yet. It seems to have something to do with SRAMs, although I cannot currently imagine what. |
Author: | BigEd [ Thu Jul 23, 2015 11:14 pm ] |
Post subject: | Re: RetroStation32 - an FPGA board for retrocomputing |
Have you tried hammering the RAMs with worst case data and address patterns? Reading or writing all zeros and all ones alternately, accessing the lowest and the highest address alternately? It should provoke decoupling bugs. |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |