Showing posts with label cadence. Show all posts
Showing posts with label cadence. Show all posts

Tuesday, September 4, 2012

vhdl use entity : vhdl top and verilog modules



         use entity pvrlib.spi_vcomp(module);
                          |
ncvhdl_p: *E,SELLIB (/user/kxa/work/spi_testing/main/spi_master_slave_test.vhd,1113|26): unit (spi_vcomp:module) not found in library (pvrlib).
        errors: 1, warnings: 0
irun: *E,VHLERR: Error during parsing VHDL file (status 1), exiting.


Whats New in '93

In VHDL-93, an entity-architecture pair may be directly instantiated, i.e. a component need not be declared. This is more compact, but does not allow the flexibility of configuration.
DIRECT: entity HA_ENTITY(HA_ARCH) port map(A, B, S, C);
In VHDL-93, a configuration specification for a component (or instance) may legally be overridden by a configuration declaration for the same item. This was not allowed in VHDL-87.


If you are using legacy code i.e. vhdl 87 and the top level files are trying to call some verilog modules. In

VHDL 87 used to use configuration but vhdl 93 do not require configuration to be used. Accept use the switch -v93 when using irun from cadence
------------------------------------------------
for all: sip_mm
use entity work.sip_mm(module);
end for
------------------------------------------------

Monday, September 3, 2012

Denali Model Issue "Unable to load dynamic library"


The error reported was :-

irun: 10.20-s100: (c) Copyright 1995-2011 Cadence Design Systems, Inc.
TOOL: irun 10.20-s100: Started on Sep 03, 2012 at 15:30:19 BST
irun
-r S*_S*_TB
-gui
ncsim: *W,NOCIFDLL: Unable to load dynamic library: libfmi.
OSDLERROR: .
ncsim: *F,NOLIBT: foreign library 'DenClib: flashLeapfrog' (for @pvrlib.at25df321(behavior)) not found.
TOOL: irun 10.20-s100: Exiting on Sep 03, 2012 at 15:31:11 BST  (total: 00:00:52)

We were not able to get rid of the error by using a -64bit option in irun(i.e. cadence simulator)
Compile with cadence -64bit and also run with -64bit option.
Typical command would look like:
irun -64bit -r S*_S*_TB -gui

Steps to work with Denali 
a) Register yourself with Denali.
https://www.denali.com/
b) Once registered search for the denali model. The link is also given below.
https://www.denali.com/en/ememory/search/search.jsp?action=search&query=&button=Search&category=0&sizeMin=0&class=0&sizeMax=1099511627776
c) Once a soma file is downloaded/ you get the soma file by email.
d) Convert the soma file into vhd file
Steps for doing that

1) Setting the denali software
module load denali/3.3.011
2)
pureview &
3) 
Click open soma option in the pureview software
4)
Another window will open up 
5)
Then go to options --> Simulation Environment --> Cadence LeapFrog/NC VHDL
6)
Then go to the source in the same window
7)
Then go to File --> Save as sources --> Name of the file you would like to save this file as.


What does a soma file have
http://en.wikipedia.org/wiki/Soma_File