Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
tkuseler
Posts: 4
Registered: ‎02-04-2010
0
Accepted Solution

System generator: MATLAB HW co-cimulation + additional library

Dear All!

I'm trying to do a hardware co-simulation of a System Generator model in the MATLAB software.

The modul contains a Black Box element (VHDL files) .
These VHDL files use an additional library:

LIBRARY MY_LIBRARY;
USE MY_LIBRARY.ALL;

 
How is it possible to add the library to the model?
At the moment the synthesis tool (xst) called by MATLAB (system generator block -> generate) reports an error on:
ERROR:HDLParsers:3317 - "path/file.vhd" Line 1790. Library MY_LIBRARY cannot be found.

I'm able to add the library manually in the generated ISE but this unfortunately doesn't solve the problem because every time I click the "generate" button in the System Generator model, a new ISE project  is generated, the library is lost and the HW co-simulation doesn't work.
 

Thanks very much!

Torben
Xilinx Employee
Xilinx Employee
ywu
Posts: 2,861
Registered: ‎11-28-2007
0

Re: System generator: MATLAB HW co-cimulation + additional library

I don't think a user defined library is supported in SysGen blackbox flow. Everything needs to be in the "work" library.
Cheers,
Jim
Visitor
wpadgett
Posts: 16
Registered: ‎07-08-2011
0

Re: System generator: MATLAB HW co-cimulation + additional library

Does this limitation still hold in ISE13.1? 

 

I have Synplicity generated VHDL that uses a separate library, so blackbox will be eliminated as an option for me if I can't pull in a separate library.  I have already experimented with modifying the code to use a single library for a different tool flow but it isn't guaranteed to be free of name conflicts in that case.

Visitor
wpadgett
Posts: 16
Registered: ‎07-08-2011

Re: System generator: MATLAB HW co-cimulation + additional library

Within the System Generator Help (within Matlab) I find the document titled "Importing HDL Modules: Black Box Configuration M-Function".  This help document includes a heading on Black Box VHDL Library Support and describes how to compile files into a user library and include the libraries for use in black box code.

Xilinx Employee
Xilinx Employee
ywu
Posts: 2,861
Registered: ‎11-28-2007
0

Re: System generator: MATLAB HW co-cimulation + additional library

Thanks for pointing this out. Yes, VHDL Library Support for Black Box Import is a new feature added in 13.1. 

 


wpadgett wrote:

Within the System Generator Help (within Matlab) I find the document titled "Importing HDL Modules: Black Box Configuration M-Function".  This help document includes a heading on Black Box VHDL Library Support and describes how to compile files into a user library and include the libraries for use in black box code.




Cheers,
Jim