• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Xcelium: Link a third-party library to your simulation

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 65
  • Views 15575
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Xcelium: Link a third-party library to your simulation

Anas2023a95
Anas2023a95 over 2 years ago

Dear all, 


I have a VHDL digital design that I want to synthesise and simulate using TSMC180n Tech. 
I have successfully generated the netlists based on the TSMC tech using Cadence Genus (reads .vhd and generates .v netlists).
When I want to simulate the generated netlists, I have the following error message reported tens of times:

"xmelab: *E,CUVMUR (./Clk_Divider_m.v,12|26): instance ':Clk_Divider_tb(bench):uut@Clk_Divider<module>.RC_CG_HIER_INST0@RC_CG_MOD<module>.RC_CGIC_INST' of design unit 'CKLNQD1BWP7T' is unresolved in 'worklib.RC_CG_MOD:v'. INVD0BWP7T g300(.I (reset), .ZN (n_32));"

I'm assuming that the simulator cannot find the definitions of the cells (mentioned in the netlist) in its library.

My question is: How do I correctly link the .lib file of the TSMC tech so that Xcelium can resolve those cells?

Many thanks

Anas

  • Cancel
Parents
  • StephenH
    StephenH over 2 years ago

    The simulator needs Verilog (or VHDL) models of the cells; the *.lib files from synthesis are not used for simulation.

    You'll need to look in your TSMC package to find the relevant cell models. These would typically be added to the xrun command using either the -y (for a library directory containing lots of files where each file represents one cell) or -v (where all the cells are in a single file that you pass as the argument to -v).

    e.g.

    xrun -y /path/to/cell_lib_dir/ <other args>

    or

    xrun -v /path/to/cells.v <other args>

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Anas2023a95
    Anas2023a95 over 2 years ago in reply to StephenH

    Hello Stephen!

    Thank you very much for your reply! It is very helpful!

    I have managed to find the .v file in the PDK and feed it to the simulator as you described. 
    However, another error is now shown. 

    xmelab: *F,CUMSTS: Timescale directive missing on one or more modules.
    xrun: *E,ELBERR: Error (*E) or soft error (*SE) occurred during elaboration (status 2), exiting.

    It says (just before the error message) that two modules have the timescale unset. Is this related to the shown error?

    I have attached the log file below if you would like to check it for more info. It reports lots of warnings about unconnected ports, but I think this should not cause the simulation to terminate. 

    Thank you very much!

    Anas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 2 years ago in reply to Anas2023a95

    Verilog requires that if any one module uses a timescale, all modules must also use timescale. The simplest option is to add "-timescale 1ns/1ps" to the xrun command, but make sure the time precision (1ps in my example) is suitable for the precision needed in your simulation

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 2 years ago in reply to Anas2023a95

    Verilog requires that if any one module uses a timescale, all modules must also use timescale. The simplest option is to add "-timescale 1ns/1ps" to the xrun command, but make sure the time precision (1ps in my example) is suitable for the precision needed in your simulation

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • Anas2023a95
    Anas2023a95 over 2 years ago in reply to StephenH

    You are super helpful, Stephen! 

    Thank you so much! 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Anas2023a95
    Anas2023a95 over 2 years ago in reply to StephenH

    Sorry Stephen, one more thing, please. 

    The simulation runs now but it freezes, any idea why it would be the case? 
    My testbench is very simple and has already been tested on Xilinx Vivado. 



    Thank you very much!
    Anas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 2 years ago in reply to Anas2023a95

    There are many potential causes of a hang, often it's a zero-delay loop somewhere. This app note gives some hints for debugging: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nTGDEA2&pageName=ArticleContent

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Anas2023a95
    Anas2023a95 over 2 years ago in reply to StephenH

    Hello Stephen, 

    Thank you for your reply! 
    I tried most of the hints in the provided link and still experiencing the same problem (shown in the previous image).

    My testbench is already simulated in Xilinx Vivado and it runs fine. 

    Any other ways to check it out? 

    Many thanks,

    Anas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Anas2023a95
    Anas2023a95 over 2 years ago in reply to Anas2023a95

    I think it is running fine, but it doesn't finish until I stop it by (Ctlr+z). 

    Thanks for your help, Stephen! 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 2 years ago in reply to Anas2023a95

    Ctrl-Z just suspends the process. You need Ctrl-C to interrupt the simulator (at which point it will tell you the current simulation time).

    Bear in mind that different simulators can have different behaviours, so just because your code runs in one tool, doesn't mean that it's going to work in any other tool. I'm not an expert on Xilinx Vivado, but my understanding is that it wraps around the main commercial logic simulators including Xcelium, and it may be giving the simulator certain options to help it simulate the Xilinx libraries correctly. 

    Since you already have a proejct set up in Vivado, maybe you can look to see if there's an option in Vivado to simulate with Xcelium, so that you don't need to write your own script to compile the design. This might then get you better results.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information