Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
9 crawler(s) on-line.
 84 guest(s) on-line.
 1 member(s) on-line.


 billt

You are an anonymous user.
Register Now!
 billt:  50 secs ago
 Matt3k:  32 mins ago
 ktadd:  49 mins ago
 matthey:  1 hr 6 mins ago
 RobertB:  1 hr 31 mins ago
 agami:  1 hr 48 mins ago
 OneTimer1:  3 hrs 27 mins ago
 michalsc:  4 hrs 54 mins ago
 kolla:  7 hrs 14 mins ago
 Torque:  7 hrs 23 mins ago

/  Forum Index
   /  Amiga OS4 Hardware
      /  Sam FPGA again.
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
Rob 
Sam FPGA again.
Posted on 6-Dec-2011 22:09:13
#1 ]
Elite Member
Joined: 20-Mar-2003
Posts: 6351
From: S.Wales

I was just wondering if the Sam FPGA could be configured as a SIMD unit. I assume that you couldn't just make it compatible with the Altivec instruction set and have code work. but there would have to make Sam specific code instead.

The main question is whether or not it it would be fast enough to make it worthwhile, although there may be other technical reasons why it wouldn't work.

Last edited by Rob on 06-Dec-2011 at 10:10 PM.

 Status: Offline
Profile     Report this post  
amigadave 
Re: Sam FPGA again.
Posted on 7-Dec-2011 3:39:51
#2 ]
Super Member
Joined: 18-Jul-2005
Posts: 1732
From: Lake Shastina, Northern Calif.

@Rob

Good question. I wonder if anyone has even thought about using the FPGA on the SAM for anything while running OS4. It would be interesting to hear from any developers that are working on anything that uses the FPGA.

That would give me some hope that the Amiga community was still alive, if there were still some really innovative developers working on Amiga programs that were unique and exciting. OS4 developers trying to use the SAM's FPGA to do things that normal computers don't or can't do, or X1000 owner/developers trying to use the XMOS chip and Xena bus to do something different and exciting, that would be a great thing to see happen.

_________________
Amiga! The computer that inspired so many, to accomplish so much, but has ended up in the hands of . . . . . . . . . .

 Status: Offline
Profile     Report this post  
AmiDog 
Re: Sam FPGA again.
Posted on 7-Dec-2011 8:03:00
#3 ]
Cult Member
Joined: 1-Jun-2004
Posts: 917
From: Kumla, Sweden

@amigadave

As I've understood it, the FPGA on the SAM can not be reconfigured on-the-fly. Instead you need to flash an updated FPGA image and reboot the computer. Not exactly user/developer friendly. I assume the SAM has an FPGA simply to allow "bugfixing" the hardware without having to replace any chips.

 Status: Offline
Profile     Report this post  
ilbarbax 
Re: Sam FPGA again.
Posted on 7-Dec-2011 13:09:08
#4 ]
Regular Member
Joined: 17-Jan-2010
Posts: 184
From: Italy

Should be nice to have the possibility to flash the Kickstart on it for very quick start up

 Status: Offline
Profile     Report this post  
Deniil715 
Re: Sam FPGA again.
Posted on 7-Dec-2011 13:25:34
#5 ]
Elite Member
Joined: 14-May-2003
Posts: 4236
From: Sweden

@ilbarbax

The FPGA is not a flash memory. A CF card or something is better suited for quick booting. But the slowness in the boot process is the eternal time it takes for UBoot to scan through the hardware and convince itself it is really ready to boot (most BIOSes takes half a century doing this). Then using the ancient PIO-0 mode to read the boot media - this is where boot speed can really be gained.

And since the FPGA is used to control some part of the board, it cannot be flashed in runtime, but has to be taken offline and flashed using another computer if I understood it correctly. That makes it unpractical.

It would have been cooler if it was a RAM based FPGA that was completely idle and free and could be used for anything from a user/programmer's perspective.

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
m3x 
Re: Sam FPGA again.
Posted on 9-Dec-2011 11:04:57
#6 ]
Regular Member
Joined: 15-May-2003
Posts: 311
From: Bologna, Italy

@AmiDog

Quote:
As I've understood it, the FPGA on the SAM can not be reconfigured on-the-fly. Instead you need to flash an updated FPGA image and reboot the computer. Not exactly user/developer friendly. I assume the SAM has an FPGA simply to allow "bugfixing" the hardware without having to replace any chips.

Actually, the FPGA can be reconfigured on the fly and you don't need to reboot the computer

Past summer I was porting a little utility from LatticeSemi which allows you to reconfigure the FPGA with a new bitstream using 4 GPIO pins, all from within AmigaOS4.1.
It takes around 13-17 secs to reprogram the FPGA on a Sam440ep.
Unfortunally my "main" work takes me too busy now and I don't have time to finalize it, but I hope to be able to release it in the next months.

_________________
Massimiliano Tretene, ACube Systems, Soft3

 Status: Offline
Profile     Report this post  
Skuggan 
Re: Sam FPGA again.
Posted on 9-Dec-2011 11:26:53
#7 ]
Regular Member
Joined: 10-May-2010
Posts: 165
From: Sweden

@m3x
Great to hear a confirmation on this since I will be using the FPGA on the 460. You gave us access to the GPIO pins which is enough to try my ideas out. Great work guys. The 460 is really a great machine even outside the Amiga community. ;)
Ps. Tell Enrico to answer mail a little bit quicker.
Ds.

 Status: Offline
Profile     Report this post  
Deniil715 
Re: Sam FPGA again.
Posted on 9-Dec-2011 12:34:04
#8 ]
Elite Member
Joined: 14-May-2003
Posts: 4236
From: Sweden

@m3x

Quote:
Actually, the FPGA can be reconfigured on the fly and you don't need to reboot the computer

Past summer I was porting a little utility from LatticeSemi which allows you to reconfigure the FPGA with a new bitstream using 4 GPIO pins, all from within AmigaOS4.1.


Oh cool!
I got the impression the FPGA had an important role in bus management or whatever on the Sam that it couldn't be disabled at runtime. Thought it had to be programmed externally by JTag or something. Glad I was wrong

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
ppc_addon 
Re: Sam FPGA again.
Posted on 9-Dec-2011 13:57:07
#9 ]
Regular Member
Joined: 2-Nov-2007
Posts: 101
From: Roma Caput Mundi

@m3x
that's great surplus value! Is it available also on linux? Do you have sources?

And again... is this utility also capable to drive LatticeXP2 on Sam460ex?

*Nello*

_________________
My Blog: http://linuxpowerpc.blogspot.com/
***
Linux PPC user!
IBM Intellistation POWER 275 - CRUX PPC (64bit) 3.0

 Status: Offline
Profile     Report this post  
billt 
Re: Sam FPGA again.
Posted on 9-Dec-2011 15:44:23
#10 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3205
From: Maryland, USA

@Rob

Depends on the capacity of the FPGA present and how it's connected to the system. I'm not sure the FPGA on the SAM is suitable in either of these two details to become an Altivec (or other SIMD) unit.

I've pondered the idea of an FPGA implementation of Altivec for Sam and such, in an FPGA on a PCI card. It's possible, certainly.

I think that you'd trap the altivec instructions, and direct them to the PCI FPGA card. The Altivec registers would be inside the FPGA, so any loads to or stores from Altivec will go to and from the FPGA over PCI. Other instructions, such as math, shifts, logics, etc. will be trapped on the CPU and send commands to the FPGA to appropriately do things using the in-FPGA Altivec registers.

The biggest problem with this is the overhead. The trap in the CPU takes time to determine the right thing to do. It takes time to tell the FPGA to do that or to send data to/from it. It takes time for the FPGA to execute the command, as it will probably be running at a slower clock rate than the CPU is. (See the FPGA for dummies thread at amiga.org for some information as to why an FPGA is slower than a custom chip like a CPU or ASIC) I'm not sure if it's possible to calculate performance of this idea before doing it and measuring it. There is some possibility that a pure software emulation of Altivec would perform faster than a distant FPGA harware implementation, as the software emulation would be closer to the processor. (inside it and in memory, and memory bus is probably faster than PCI)

I think it'd be cool if someone does this. They'll need to know VHDL or Verilog as well as computer architecture design. (Implementing Altivec is a computer architecture topic) I'm taking a VHDL course this spring semester, and plan to take a couple computer architecture courses next year. But I already have way too many project ideas that I don't have time to work on, I doubt I'll ever do anything for this.

_________________
All glory to the Hypnotoad!

 Status: Online!
Profile     Report this post  
billt 
Re: Sam FPGA again.
Posted on 9-Dec-2011 15:52:27
#11 ]
Elite Member
Joined: 24-Oct-2003
Posts: 3205
From: Maryland, USA

@AmiDog

Quote:
As I've understood it, the FPGA on the SAM can not be reconfigured on-the-fly. Instead you need to flash an updated FPGA image and reboot the computer. Not exactly user/developer friendly.


I don't think he said anything about reconfiguration. Even if it can't be, it can still become something useful, if it's connected to the system in a way to allow useful things. I asked once, I forget the reponse, but for me it really put an end to thinking about using it for accelerators, minimig, or peripherals I'd find interesting to have.

Quote:
I assume the SAM has an FPGA simply to allow "bugfixing" the hardware without having to replace any chips.


I doubt that. I doubt it would be worth the PCB connections of that purpose in this sort of board. They released an FPGA resource library for AmigaOS recently, I think it looked like you can use the FPGA's pin header connectors as general purpose IO (GPIO), if I understood that correctly. Industrial and embedded customers can put something a little more interesting in there to interface with machinery, sensors, control panels and simple displays (on/off LEDs, 7segments), or some special-purpose embedded computers.

_________________
All glory to the Hypnotoad!

 Status: Online!
Profile     Report this post  
m3x 
Re: Sam FPGA again.
Posted on 9-Dec-2011 16:56:24
#12 ]
Regular Member
Joined: 15-May-2003
Posts: 311
From: Bologna, Italy

@ppc_addon

Quote:
@m3x that's great surplus value! Is it available also on linux? Do you have sources? And again... is this utility also capable to drive LatticeXP2 on Sam460ex? *Nello*

Yes, sources will be released, and it should be very easy to adapt it to run on Linux, and more: it could drive any LatticeSemi FPGA devices (basically it's a JTAG "emulation")

We'll even release the source code to recreate the original bitstream under GPL license too.

_________________
Massimiliano Tretene, ACube Systems, Soft3

 Status: Offline
Profile     Report this post  
Mechanic 
Re: Sam FPGA again.
Posted on 9-Dec-2011 19:20:06
#13 ]
Elite Member
Joined: 27-Jul-2003
Posts: 2007
From: Unknown

@m3x



The future is looking good.

 Status: Offline
Profile     Report this post  
KimmoK 
Re: Sam FPGA again.
Posted on 9-Dec-2011 21:08:04
#14 ]
Elite Member
Joined: 14-Mar-2003
Posts: 5211
From: Ylikiiminki, Finland

@Rob

Anyone done anything with those extra DSP instructions? Let's first use those.


other than that, great to hear that FPGA can be programmed on board.
Perhaps SAM460 owners could now get SATA controller out of the FPGA ... or serial port to use old Amiga midi adapters ... or multiple joystick ports ... or xlink to "xena" ... or MPEG stream processor .... etc..

My old ideas thread:
http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=27379&forum=33

_________________
- KimmoK
// For freedom, for honor, for AMIGA
//
// Thing that I should find more time for: CC64 - 64bit Community Computer?

 Status: Offline
Profile     Report this post  
Jupp3 
Re: Sam FPGA again.
Posted on 10-Dec-2011 14:37:50
#15 ]
Super Member
Joined: 22-Feb-2007
Posts: 1225
From: Unknown

@KimmoK

Quote:
Perhaps SAM460 owners could now get SATA controller out of the FPGA ... or serial port to use old Amiga midi adapters

Instead of that, it would be WAY more useful to concentrate on modern USB midi interfaces, or even (PC) gameport MIDI.

Remember that you cannot even connect many (especially cheap) so-called "midi keyboards" directly to classic Amiga midi adapters (as they have midi only over usb).

For more "traditional" use, just buy a cheap single in/out USB adaptor cable (around 7 euros), or a bigger external USB midi box with as many input & output channels than you need (I got my 6 input & 6 output box for 50 euros)

NOTE: I have absolutely NO idea about the state of Midi on OS4, just pointing out I cannot see any sensible reason to use those ancient midi boxes on anything but classic amigas.

 Status: Offline
Profile     Report this post  
KimmoK 
Re: Sam FPGA again.
Posted on 10-Dec-2011 14:53:33
#16 ]
Elite Member
Joined: 14-Mar-2003
Posts: 5211
From: Ylikiiminki, Finland

@Jupp3

Ok, ok. The use of old midi adapter would be futile.


Does anyone know (yet) if SAM FPGA would be able to handle SATA or PATA?
I think it would be usefull for SAM460 owners, they would then have extra PCI/PCIe slot free.

Last edited by KimmoK on 10-Dec-2011 at 02:56 PM.

_________________
- KimmoK
// For freedom, for honor, for AMIGA
//
// Thing that I should find more time for: CC64 - 64bit Community Computer?

 Status: Offline
Profile     Report this post  
Jupp3 
Re: Sam FPGA again.
Posted on 11-Dec-2011 1:18:47
#17 ]
Super Member
Joined: 22-Feb-2007
Posts: 1225
From: Unknown

@KimmoK

Quote:
Does anyone know (yet) if SAM FPGA would be able to handle SATA or PATA?

Yes, definitely (if you can get the pins wired there somehow)

However, the REAL question is if it can handle that in any meaningful way (nowadays people, even Amiga users expect things like speed, DMA and low CPU use), and I'm pretty sure that the answer to that is pretty much "No".

Last edited by Jupp3 on 11-Dec-2011 at 01:20 AM.

 Status: Offline
Profile     Report this post  
KimmoK 
Re: Sam FPGA again.
Posted on 11-Dec-2011 11:37:06
#18 ]
Elite Member
Joined: 14-Mar-2003
Posts: 5211
From: Ylikiiminki, Finland

@Jupp3

IIRC, the fpga is on 16bit 66mhz bus, so the bus should not limit the speed. But perhaps there are other more limiting factors.

_________________
- KimmoK
// For freedom, for honor, for AMIGA
//
// Thing that I should find more time for: CC64 - 64bit Community Computer?

 Status: Offline
Profile     Report this post  
Birbo 
Re: Sam FPGA again.
Posted on 11-Dec-2011 12:19:04
#19 ]
Cult Member
Joined: 5-Apr-2007
Posts: 594
From: Zurich, Switzerland

@all

please may anyone explain, what this could mean for an Amiga User who do not have any programming background?

what will I be able to do in the future with the FPGA on a SAM460?

Just some possible examples, please...

Thank you.

_________________
Sometimes we give people a lot of credit just because they’re writing nice sentences even if it isn’t adding up to much.

 Status: Offline
Profile     Report this post  
AmigaBlitter 
Re: Sam FPGA again.
Posted on 11-Dec-2011 12:32:49
#20 ]
Elite Member
Joined: 26-Sep-2005
Posts: 3513
From: Unknown

@Birbo

If they realese an upgrade of the Lattice XP2 up to 40k size, you can quite do on AmigaOne 500 Natami like things. With the actual FPGA size you can do some trick to speed up certain operations.

_________________
retired

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle