WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Apr-26 16:57:23

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

How to create Interrupt port in Sysgen model for OPB convertion later

We create the Sysgen model with all the register and gateway in/out, but how do we specify the gateway such that it will be identified as a class Interrupt port with sensitivity list, for which we will use "sysgen2opb" to convert it to OPB model and attach as a IP core in XPS?

Offline

 

#2 2007-Apr-26 17:05:18

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

Re: How to create Interrupt port in Sysgen model for OPB convertion later

Unfortunately, the current verison of sysgen2opb and the OPB Export Tool don't have a way to automatically identify interrupt signals in custom cores. However, it's easy to do this manully after generating your core.

After running the OPB Export Tool, open the MPD file in the pcore's data folder (named something like myCore_opbw_v2_1_0.mpd). Scroll down to the PORT entry for your interrupt signal, and add the necessary flags.

For example, if you want a rising-edge sensitive interrupt output, change the PORT line to look like:

Code:

...
PORT myIntOut = "", DIR = O, SIGIS = INTERRUPT, SENSITIVITY = EDGE_RISING, INTERRUPT_PRIORITY = HIGH
...

For a complete example, look at the MPD file for our OFDM pcore.

For more details about the MPD syntax (like other sensitivity options), see the EDK's Platform Specification Format Reference Manual.

Offline

 

#3 2007-Apr-26 17:32:37

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

Re: How to create Interrupt port in Sysgen model for OPB convertion later

Thanks a lot for the hint.
P.S, anyway to refresh the OPB pcore without existing the project after making change to MPD files?

Offline

 

#4 2007-Apr-26 17:51:39

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

Re: How to create Interrupt port in Sysgen model for OPB convertion later

Choose Project->Rescan User Repositories in XPS. This forces XPS to re-read the MPD files for every core in the search path (c:\EDK\hw, c:\EDK_User_Repository\, <project_root>\pcores).

Offline

 

Board footer