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
Super Contributor
kumar.anand743@gmail.com
Posts: 151
Registered: ‎01-05-2010
0
Accepted Solution

problem in black box configuration file in matlab for verilog modules containing instances of sub modules

hi there :-)

 

I had a problem in using verilog modules containing sub-modules and i suspect my matlab configuration file is improper.

 

I included the submodules in the matlab configuration fie using the command  'this_block.add_file('<name of the submodule>.v')

but still while simulating the design there is an error reading "there are unknown files/instances ".I had even included all the verilog files in my matlab directory.

 

Is there anything else I need to add to my matlab configuration files?

 

any suggestions are appreciated :-)

 

Thank you :-) 

 

 

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

Re: problem in black box configuration file in matlab for verilog modules containing instances of sub modules

Adding the submodule files via add_file should be all that you need. Which simulator are you using? Is it possible to post your _config.m file?
Cheers,
Jim
Super Contributor
kumar.anand743@gmail.com
Posts: 151
Registered: ‎01-05-2010
0

Re: problem in black box configuration file in matlab for verilog modules containing instances of sub modules

hi jim :-)

  

       The veriog module containing submodules seems to be working.

 

        I suppose I had added the command this_block.addfile('<filename.v>')  for the submodules after the command of this_block.addfile('<top_module.v>').  I added the submodule addfile commands ahead of the topmodule commands and now it seems to be working fine :-)

 

Thank you :-)

Super Contributor
kumar.anand743@gmail.com
Posts: 151
Registered: ‎01-05-2010
0

Re: problem in black box configuration file in matlab for verilog modules containing instances of sub modules

hi jim :-)

  

         I had another question.

 

         everytime I change the verilog source code is it necessary to change the matlab configuration file as well ?

 

  

Visitor
vora.dimple
Posts: 4
Registered: ‎06-01-2011
0

Re: problem in black box configuration file in matlab for verilog modules containing instances of sub modules

Yes you to need to change the config also, if u change the verilog source code. The config file has to updated about the changes in the code.