Welcome, Guest. Please login or register.

Author Topic: FPGA Replay Board  (Read 827523 times)

Description:

0 Members and 14 Guests are viewing this topic.

Offline mikej

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: FPGA Replay Board
« Reply #2729 from previous page: June 09, 2013, 10:28:15 PM »
Quote from: JimDrew;737329
Sounds like typical production woes... keep at it Mike!


Thanks Jim. Nothing unexpected - especially with Chinese suppliers. I deal with this sort of thing in my day job, but it's even less fun when it's your own toy.

"* So boards without the new bootloader works out of the box but without the features of said option?"

The revised bootloader code works on both old and new boards. It hasn't been shipped yet as it is part of the new firmware. The change is to correctly set up the internal memory controller as a result of an errata.

"* This new batch of ARM cpus only has slightly slower flashmemory write cycle? not slower flashmemory read accesstime?"

it's still in spec - just the old chips worked with the faster setting. It's only really read that's interesting from the flash in our case ;)

"* Does the dead 1.2 V supply mean that you have to check and replace this on all boards?"
All power rails are checked on each board as part of the test suite. If it's out of spec the regulator is replaced.

"* How is the DDR memory self calibration going?"
Done, works like a charm.

"Whats VNC2?, If I recall it correctly, the ARM cpu is the USB-host and sends this to the FPGA via i/o. I like the everything-on-one-board-solution Perhaps an option would be to handle other USB devices by just forwarding the raw data and let the Amiga side deal with the configuration of endpoints etc."

This ARM cannot be used as a USB host. The VNC2 is an optional module which fits on the board instead of the PS2 connector and provides two USB host ports, and all the software muscle to drive them. It speaks mouse/keyboard SPI back to the FPGA which feeds it into the Amiga core.

"What I would like is to be able to just plug the board via USB ethernet to the local network and run with it, without messing with any pc-2-sd-2-arcade-repeat. Firmware updates would be just a matter of pressing a key. "

You can with the ethernet adapter on the daughterboard.

Firmware updates for the FPGA are as simple as copying the file on the SD card.
For the ARM code you push the menu button while powering on the board, and run an update program on your PC. The two will talk, the ARM flash is reprogrammed and you are good to go.

You can also update the bootloader this way too.
If you mess it up, there is a link on the board to reload a default boot loader.
/MikeJ
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2730 on: June 10, 2013, 12:34:05 AM »
Daughterboard is nice for extras lik a CPU but for Ethernet I would prefer it to be on the main board ie KISS.

Seems I misstok the P13 micro USB conncector for the PS/2 connector in USB mode. But if the FPGA has the electrical control of the PS/2 port + adapter to USB. Extended device support is only .bit file away ;)
 

Offline psxphill

Re: FPGA Replay Board
« Reply #2731 on: June 10, 2013, 10:19:44 AM »
Quote from: freqmax;737356
Daughterboard is nice for extras lik a CPU but for Ethernet I would prefer it to be on the main board ie KISS.
 
Seems I misstok the P13 micro USB conncector for the PS/2 connector in USB mode. But if the FPGA has the electrical control of the PS/2 port + adapter to USB. Extended device support is only .bit file away ;)

You'll almost certainly have to write the code for this too (assuming that it can actually be flashed in place)
 
http://www.ftdichip.com/Products/ICs/VNC2.htm
 

Offline mikej

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: FPGA Replay Board
« Reply #2732 on: June 10, 2013, 10:30:25 AM »
Quote from: psxphill;737380
You'll almost certainly have to write the code for this too (assuming that it can actually be flashed in place)
 
http://www.ftdichip.com/Products/ICs/VNC2.htm


I have written all the code for the mouse/keyboard bridge already.
The VNC2 can be updated from a USB stick, and I need to add this before release.
Otherwise, you need to use the programmer - there is a connector on the module.

http://apple.clickandbuild.com/cnb/shop/ftdichip?op=catalogue-products-null&prodCategoryID=118&title=VNC2-Debug-module
/MikeJ
 

Offline psxphill

Re: FPGA Replay Board
« Reply #2733 on: June 10, 2013, 02:05:48 PM »
Quote from: mikej;737381
I have written all the code for the mouse/keyboard bridge already.
The VNC2 can be updated from a USB stick, and I need to add this before release.
Otherwise, you need to use the programmer - there is a connector on the module.
 
http://apple.clickandbuild.com/cnb/shop/ftdichip?op=catalogue-products-null&prodCategoryID=118&title=VNC2-Debug-module
/MikeJ

I meant to enable the VNC2 to allow USB Ethernet. If the only way to update it without a programmer is to have it update itself and it needs to work for that, then there is no way I'll be messing with mine.
 
But it does sound at least doable. It's likely to be pig slow though.
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2734 on: June 10, 2013, 04:09:34 PM »
AT91SAM7S256-AU-001
CPU: ARMv4T (ARM7TDMI)
Freq: 18.432 MHz (max 55 MHz)
RAM: 64 kB
ROM: 256 kB

VNC2
CPU: 16-bit Harvard
Freq: 12 MHz
RAM: 16 kB
ROM: 256 kB

I think I know which MCU chip that would be tasked to handle the USB hodepodge.
« Last Edit: June 10, 2013, 04:37:59 PM by freqmax »
 

Offline mikej

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: FPGA Replay Board
« Reply #2735 on: June 10, 2013, 04:13:25 PM »
The VNC2 runs the entire USB stack, the ARM is running the menu system and file IO to the SD card.
/MikeJ
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2736 on: June 10, 2013, 05:21:43 PM »
I know ;) it was a mere suggestion on which one that has the most CPU power.

Btw, how much code size and MIPS does it require to use a USB device like a Ethernet dongle? (estimate), perhaps this estimate at 300 kB of RAM is realistic? in addition to the on board 4 MB flash.

Anyway at present an external USB/Disc/Ethernet solution is the required path.
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2737 on: June 11, 2013, 01:51:56 PM »
Are these "features" incorporated into the core?
abime.net: Undocumented Amiga hardware stuff
 

Offline psxphill

Re: FPGA Replay Board
« Reply #2738 on: June 11, 2013, 05:13:18 PM »
Quote from: freqmax;737414
I know ;) it was a mere suggestion on which one that has the most CPU power.
 
Btw, how much code size and MIPS does it require to use a USB device like a Ethernet dongle? (estimate), perhaps this estimate at 300 kB of RAM is realistic? in addition to the on board 4 MB flash.

The VNC2 has to at least be involved, because it's the only chip that has a USB host port on the board. It then uses SPI to get the data elsewhere. I imagine putting in something that allowed more than keyboards and mice to work (ideally making it subway compatible) is doable but it'll be a lot of work.
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2739 on: June 11, 2013, 05:33:51 PM »
Well because the FPGA i/o goes straight to the PS/2 data+clock is available, one could use them as D+/D- and with the right core you can bang USB right there.
 

Offline mikej

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: FPGA Replay Board
« Reply #2740 on: June 11, 2013, 11:25:06 PM »
Quote from: freqmax;737553
Well because the FPGA i/o goes straight to the PS/2 data+clock is available, one could use them as D+/D- and with the right core you can bang USB right there.


yes, but the electrical levels are wrong - ideally you still need an external phy. The VNC2 is cheap and means reduced software effort.
For high performance the normal USB and Ethernet PHY/MACs hanging off the processor databus are the way forward. It is already running with the USB stack.

Board testing continues, I've replaced a few of the 1.2V regulators without any trouble and the boards work fine.
/MikeJ
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: FPGA Replay Board
« Reply #2741 on: June 11, 2013, 11:39:21 PM »
Signal levels can be set with FPGA configuration, and if not one can fix that externally. Less electronics than another MCU.
Two 3,3V level signals that forms a differential signal together shouldn't be that hard to accomplish. Ofcourse it won't be 100% to specification but that hasn't hindered Amiga fans before ;)
 

Offline mikej

  • Hero Member
  • *****
  • Join Date: Dec 2005
  • Posts: 822
    • Show only replies by mikej
    • http://www.fpgaarcade.com
Re: FPGA Replay Board
« Reply #2742 on: June 12, 2013, 11:51:28 AM »
Quote from: freqmax;737584
Signal levels can be set with FPGA configuration, and if not one can fix that externally. Less electronics than another MCU.
Two 3,3V level signals that forms a differential signal together shouldn't be that hard to accomplish. Ofcourse it won't be 100% to specification but that hasn't hindered Amiga fans before ;)


You need an external pull-up still, and it would not be standards compliant. The VHDL to run the USB would take about 5% of the FPGA, but you would still need an on-board micro to run the USB stack for ps/2 mouse and keyboard.

/MikeJ
 

Offline psxphill

Re: FPGA Replay Board
« Reply #2743 on: June 12, 2013, 12:17:39 PM »
Quote from: mikej;737630
You need an external pull-up still, and it would not be standards compliant. The VHDL to run the USB would take about 5% of the FPGA, but you would still need an on-board micro to run the USB stack for ps/2 mouse and keyboard.

Are hubs and usb game pads also supported?
 

Offline cunnpole

  • Full Member
  • ***
  • Join Date: Mar 2011
  • Posts: 120
    • Show only replies by cunnpole
Re: FPGA Replay Board
« Reply #2744 on: June 12, 2013, 12:24:37 PM »
The previous answer to game pads was "The current core is very close to the original hardware, so only 9PIN digital.
There are analog inputs on the ARM which can be used in future.
The USB adapter adds keyboard and mouse, and can be extended to all sorts of stuff in future."