Reply by azraiyl April 14, 20102010-04-14
Host (and PHY) is included in the OMAP-L138. OS is Linux. I've already
tested it somewhat and the first impressions is ok.	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
Reply by D Yuniskis April 14, 20102010-04-14
azraiyl wrote:
> While I'm quite sure that the 'main' processor is an OMAP-L138 I'm not sure > what the slave processors are. The problem is that I've to think about a > possible future, while not making the 'main' board too expensive. But some > Cortex-M3 processors with with 80 MHz are a good starting point (somehting > between 5$ and 15$). > > One idea also had, was using a dual port RAM on every slave board. This > allows me to use the A/D-Bus from the 'main' board without investing > anything.
Dual-port RAM tends to be expensive -- even if you just opt for a pair of back to back FIFOs. And, it adds explicit synchronization issues that are implicitly handled with a message oriented interface (e.g., USB). Consider it only if you *really* need the bandwidth it will provide. You also have to be conciously (to some extent) aware of the fact that now you're embracing NUMA and it can have subtle consequences for you (depending on how you use it and the characteristics of your application). Not a "big deal" but not something you can just choose to ignore, either (especially depending on how the DPRAM is implemented)
> I've to add, that I currently investigate the USB idea. The OMAP-L138 has > an additional USB 1.1 host controller (The is a possbility that we use the > OTG port for something else) and most Luminary Cortex-M3 support Full-Speed > (which is enough) and have some additional USB functions included in their > ROM. The 'main' board then only needs an USB hub, which seems to be cheaper > then a quad UART.
Remember, you need a "host" *somewhere* in the architecture!
> But anyway, thanks everyone for the input.
Reply by azraiyl April 14, 20102010-04-14
While I'm quite sure that the 'main' processor is an OMAP-L138 I'm not sure
what the slave processors are. The problem is that I've to think about a
possible future, while not making the 'main' board too expensive. But some
Cortex-M3 processors with with 80 MHz are a good starting point (somehting
between 5$ and 15$).

One idea also had, was using a dual port RAM on every slave board. This
allows me to use the A/D-Bus from the 'main' board without investing
anything.

I've to add, that I currently investigate the USB idea. The OMAP-L138 has
an additional USB 1.1 host controller (The is a possbility that we use the
OTG port for something else) and most Luminary Cortex-M3 support Full-Speed
(which is enough) and have some additional USB functions included in their
ROM. The 'main' board then only needs an USB hub, which seems to be cheaper
then a quad UART.

But anyway, thanks everyone for the input.	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
Reply by Paul Keinanen April 13, 20102010-04-13
On Mon, 12 Apr 2010 06:33:10 -0500, "azraiyl"
<azraiyl@n_o_s_p_a_m.gmail.com> wrote:

>I've a 'Main' Board that needs to communicate with 4 other processors on >other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus >on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have >an A/D-Bus aswell. >My first idea was to take a quad UART an put it on the 'Main' board. >Problem is that they are all expensive. Any other idea?
How about a Motorola/Freescale processor with various QUICC co-processors, such as (MC68360,) MPC860, MPC8260 etc. that have at least 4 SCC channels. The main processor overhead is quite low due to the DMA system. Are the other 4 processors capable of handling 10 Mbit/s speeds through the UART interface ?
Reply by -jg April 13, 20102010-04-13
On Apr 12, 11:33=A0pm, "azraiyl" <azraiyl@n_o_s_p_a_m.gmail.com> wrote:
> I've a 'Main' Board that needs to communicate with 4 other processors on > other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bu=
s
> on the 'Main' Board. The 'other' processors support SPI, I2C, UART and ha=
ve
> an A/D-Bus aswell. > My first idea was to take a quad UART an put it on the 'Main' board. > Problem is that they are all expensive. Any other idea?
Perhaps a CPLD ? Depends on the total data rates and usage % and duplex/simplex, but a cpld can do a BUS <-> SPI quite well. It allows SPI on the slaves, in master or slave mode. -jg
Reply by David Brown April 13, 20102010-04-13
On 12/04/2010 20:28, Mark Borgerson wrote:
> In article<l9CdnSXxQYlrmV7WnZ2dnUVZ_uadnZ2d@giganews.com>, > azraiyl@n_o_s_p_a_m.gmail.com says... >> I've a 'Main' Board that needs to communicate with 4 other processors on >> other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus >> on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have >> an A/D-Bus aswell. >> My first idea was to take a quad UART an put it on the 'Main' board. >> Problem is that they are all expensive. Any other idea? >> >> > 1MByte/S is a bit fast for standard async comms. I use the UART ports > on MSP430 chips to communicate between ADC boards and a storage system > at 115KBaud. >
It's uncommon to have speeds about perhaps 921.6 kbaud with RS-232, but there are high-speed RS-485 drivers that work happily with 30+ MBaud. But it's not going to be easy to get a microcontroller's UART to run at the 10 MBaud you need for 1 MB/s - it would have to be external uarts.
> You might try SPI comms. However, clocking at 8MHZ may stress some > processors in the slave mode. > > > Mark Borgerson > >
Reply by Mark Borgerson April 12, 20102010-04-12
In article <CJ-dnZCbCpDi917WnZ2dnUVZ_j6dnZ2d@giganews.com>, 
nospam@nowhere.com says...
> > > azraiyl wrote: > > > I've a 'Main' Board that needs to communicate with 4 other processors on > > other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus > > on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have > > an A/D-Bus aswell. > > My first idea was to take a quad UART an put it on the 'Main' board. > > Problem is that they are all expensive. Any other idea? > > For that kind of transfer rates, you will need hardware support for > buffering regardless of the transport used. You can certainly stretch > UART or SPI or I2C to that speed, however that could result in major > inconveniences. The standard solution could be Ethernet or PCIe or some > sort of parallel bus with DMA access. >
On the MSP430, I use the UART ports with DMA receive. Since packet lengths are fixed, the DMA setup is fairly simple. The main board prompts for a packet, sets up the DMA for a receive that puts the packet into a queue. The end-of-packet interrupt increments the qeueue pointer and count. If you bumped this up to 1MB/s the DMA might start taking an appreciable part of the CPU bandwidth on a 16MHz CPU. At that data rate, I'd probably switch to an ARM or Cortex at 30 to 60Mhz so I'd have time to do something useful with the data. SPI is a bit trickier, since it requires a transmit DMA channel to generate the clocks, in addition to the receive DMA channel. Mark Borgerson
Reply by Vladimir Vassilevsky April 12, 20102010-04-12

azraiyl wrote:

> I've a 'Main' Board that needs to communicate with 4 other processors on > other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus > on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have > an A/D-Bus aswell. > My first idea was to take a quad UART an put it on the 'Main' board. > Problem is that they are all expensive. Any other idea?
For that kind of transfer rates, you will need hardware support for buffering regardless of the transport used. You can certainly stretch UART or SPI or I2C to that speed, however that could result in major inconveniences. The standard solution could be Ethernet or PCIe or some sort of parallel bus with DMA access. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Reply by Mark Borgerson April 12, 20102010-04-12
In article <l9CdnSXxQYlrmV7WnZ2dnUVZ_uadnZ2d@giganews.com>, 
azraiyl@n_o_s_p_a_m.gmail.com says...
> I've a 'Main' Board that needs to communicate with 4 other processors on > other boards with at least 1 MiByte/s. A prefer to use the Adress/Data-Bus > on the 'Main' Board. The 'other' processors support SPI, I2C, UART and have > an A/D-Bus aswell. > My first idea was to take a quad UART an put it on the 'Main' board. > Problem is that they are all expensive. Any other idea? > >
1MByte/S is a bit fast for standard async comms. I use the UART ports on MSP430 chips to communicate between ADC boards and a storage system at 115KBaud. You might try SPI comms. However, clocking at 8MHZ may stress some processors in the slave mode. Mark Borgerson
Reply by D Yuniskis April 12, 20102010-04-12
azraiyl wrote:
>> Are you expecting 1MB/s as your total throughput? >> Or, for each "link"? (i.e., as if star configured) > > Optimally for each "link".
This could be a potential problem for USB (1.1), then (store-and-forward USB*2* hub??)
>> Do the other processors ever have to talk to each other >> directly? Or, is everything Master-slave with the >> Master always the "Main Board"? > > Most often only Master/Slave but there should be a possibility for > asynchronous replies.
But, you can support asynchronous replies within a M-S protocol. I.e., if said protocol causes each slave to be polled regularly then the slave could queue a deferred reply for "next polling time".
>> Why can't you use the SPI/I2C channels? Can you >> rethink how you are encoding your data to use lower >> data rates? > > Unfortunately the are all used on the processor. The main processor is > currently an OMAP-L138. SPI, UART, I2C, McBSP: Everything is already used. > Ethernet is not available (because of pinmultiplexing with McBSP). > >> You could use USB host controller on the Main (easy >> to find MCU's with slave controllers built in). > > That's an idea. The processor has an USB port, I only need a USB hub. > Software overhead on the "slave" processors is maybe a bit high.
Cheat. You "know" what you are talking to. Use that to trim overhead (certain types of error handling) from the protocol. Decouple the processes to a greater extent. I.e., *don't* expect synchronous messaging. Throw a message to a slave and "move on"; check back later for the reply -- even if the actual "virtual protocol" remains synchronous.
>> You could use *SCSI* controllers ("SCSI-1" will give you >> 5MB/s easily). Not sure if you can find any legacy >> products (e.g., 5380) for this :-( This also gives you >> some structure to the data stream (UARTS don't -- you >> have to impose structure on the "character stream") > > Noted. > >> Likewise, you can use ethernet and probably strip out the >> magnetics with some passive trickery (since it is a real >> short haul and you know *exactly* how many nodes you have). > > Ethernet is not availble for the current main processor (see above). > >> Personally, I'd explore the USB route, first. You might be able >> to spec different processors (if it is early enough in the >> design stage) for your "slaves" and then just take the >> hit for an external host controller on the master (there >> are some MCUs with this ability but nowhere near as many >> as peripherals). > > I'm early in the design phase and therefore open to anything.
How sensitive is the data? Can you afford to drop any? Can you afford to delay any? Can you afford out-of-order packet handling? etc. I.e., are you just looking for a NUMA approach to shared memory? Or, something more "abstract"?