• 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. Mixed-Signal Design
  3. Add verilog configuration to a mixed signal simulation with...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 4840
  • 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

Add verilog configuration to a mixed signal simulation with config view

moosbru
moosbru over 1 year ago

Hi,

I have a digital block (SV-RTL) whith a verilog config which I can simulate in a pure digital simulation using

xrun -top myrtl -compcnfg myconfig.sv

where myconfig.sv looks like:

config myrtl
  design worklib.myrtl;
  default liblist worklib ...;

  cell mycell liblist speciallib;
endconfig

This works fine for a pure digital simulation.

For AMS, myrtl is compiled into a library mylib using -makelib, provided to the simulator using -reflib, and there is a  verilogAMS wrapper myrtl_wrapper which instantiates myrtl.

Now I want to run an AMS simulation of a schematic ("mytop") containing an instance of myrtl_wrapper.

Hence, I have a testbench cell ("tb_mytop") with a config view ("config_ams") for simulating an instance of the cell (schematic) "mytop". The configuration config_ams is used to select the VerilogAMS view for the myrtl_wrapper instance.

  • How can I now make sure in my AMS Simulation of "mytop" is using mycell from speciallib?

My first intention was to add a config, but then the questions arises, how that config should look like (e.g. name of config, design in config), since I expect that the config should be for the top, which is actually a schematic in this case.
According to the xrun.log -top is <vrituoso_library>.<testbench cell>:schematic_ams

But I did not suceed in creating and using the correct config (-compcnfg) so far. 

  • Or maybe there is an alternative way of ensuring that mycell from speciallib is taken besides creating a configuration?

Thank's in advance for any help.

Best, moosbru

  • Cancel
  • moosbru
    moosbru over 1 year ago

    Meanwhile, I found a solution to overcome the problem.

    I did not succeed in using a configuration, however, instad of using the configuration, I used

    `uselib lib=speciallib

    ... code ...

    `nouselib

    in myrtl, to force myrtl to force the instance of myrtl to be bound to speciallib.

    An alternative solution, to use -binding option, did not solve the issue since it works to direclty bind an instance to a library, however, based on my experiments, -binding does not inherit the binding to the descendents of the bound unit, which was neccessary in my case due to naming clashes of primitives withing multiple libraries.

    • 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