WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-May-14 20:25:05

terrysu
Member
Registered: 2007-Apr-26
Posts: 7

Question about using Interrupt Scheme for EMAC

After looking over the OFDM reference design provided, I noticed that the ethernet is set to polling mode.
Since EMAC has interrupt features, is there any particular reason it is not used?
Wouldn't it be faster and more efficient to do that?

Offline

 

#2 2007-May-15 01:13:27

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about using Interrupt Scheme for EMAC

In the current reference designs, the OFDM core is attached to the OPB. With this setup, we found that the time required to copy packets over the OPB dominates the total per-packet processing time. The current designs also use Xilkernel, which wraps interrupt handling in its own (poorly documented) interrupt framework. Given these issues, we decided to simplify the overall code and use the Ethernet MAC's polled mode.

We're nearly finished with a new reference design that fixes all of these issues. The OFDM core's packet buffers are now attached to the PLB, Xilkernel is no longer used and the Ethernet MAC is used in interrupt/simple DMA mode. As you might expect, the performance is significantly improved with this setup.

The updated version of WARPMAC is already available in the repository. We're still fixing a few bugs in the code and hope to post the full, updated reference design by next week.

Offline

 

#3 2007-May-15 11:14:47

zrcao
Member
From: Vienna, VA
Registered: 2007-Jan-24
Posts: 121

Re: Question about using Interrupt Scheme for EMAC

This is really the way to go! Terry is also working on etherne_EMAC IP using interrupt and DMA. However, we were also confused by Xilkernel. We also plan to reduce the complexity of interrupt handler and transfer most functional load into main().

(1) If Xilkernel is no long used, which OS is used for the new reference design? I browsed through the WARPMAC.c and it Looks like standalone, right?

(2) Any tutorial note you can suggest on PLB or developing pcore for PLB?

Thanks.

Last edited by zrcao (2007-May-15 12:07:22)

Offline

 

#4 2007-May-15 12:39:00

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about using Interrupt Scheme for EMAC

1) The new design uses the standalone BSP (i.e. no OS)

2) There are a few documents included with the EDK that are pretty helpful:
   <EDK_ROOT>\doc\usenglish\plb_usage.pdf
   <EDK_ROOT>\hw\XilinxProcessorIPLib\pcores\plb_ipif_v1_00_f\doc\plb_ipif.pdf

Offline

 

#5 2007-May-15 12:47:16

zrcao
Member
From: Vienna, VA
Registered: 2007-Jan-24
Posts: 121

Re: Question about using Interrupt Scheme for EMAC

Can't wait to see your new reference design!

Code:

The OFDM core's packet buffers are now attached to the PLB, Xilkernel is no longer used and the Ethernet MAC is used in interrupt/simple DMA mode.

So the DMA happens between the Ethernet MAC FIFO and OFDM core's packet buffers in both direction?

Offline

 

#6 2007-May-15 13:13:00

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about using Interrupt Scheme for EMAC

OFDM -> Ethernet transfers are driven by the EMAC's DMA. Ethernet -> OFDM still requires an intermediate buffer to handle the case of the wireless MAC needing to transmit an ACK while in timeout (i.e. sending an ACK before attempting to re-transmit a previous data packet). We're working on a way around this too, though it may not make it into the next reference design.

Offline

 

#7 2007-May-17 13:46:23

zrcao
Member
From: Vienna, VA
Registered: 2007-Jan-24
Posts: 121

Re: Question about using Interrupt Scheme for EMAC

Are you planning to use the new radio_controller APIs? It seems to me that the radio setup part is still using the old APIs.

Offline

 

#8 2007-Jun-12 23:34:58

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about using Interrupt Scheme for EMAC

The new OFDM reference design uses the latest radio controller and bridge pcores and drivers.

Offline

 

Board footer