• 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. Custom IC Design
  3. How to use a component (VerilogA) within a .scs model file...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 125
  • Views 17460
  • 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

How to use a component (VerilogA) within a .scs model file to drive output signals

MT13
MT13 over 7 years ago

Hi,

I have a .scs model file for a digital block. The digital block has some multi-bit (bus) outputs. At the end of the .scs file, there are a bunch of statements to drive the outputs of the blocks:

v1 (demux\<0\> gnd) vsource type=dc dc=0

and this is repeated for each bit of the multi-bit signal.

This model file is added: ADE -> setup -> simulation files --> (added in the definition files category), and the testbench runs successfully.

Instead of driving each bit along, I would like to drive the whole bus (ideally with an analog value that gets translated during simulation). I have a VerilogA analog to digital component (tested and works) that I would like to use to drive that bus, the syntax that I used is:

AD1 (demux\<3\:0\>) adc_4b one=vdd zero=0 num=demux_val

At first the simulation failed complaining that adc_4b is not defined (although the library containing it is added to the library path in the library manager). I added the veriloga (.va) file that defines the component, once to setup--> simulation files --> definition files, and once to setup--> model files, and in both times the simulation fails because of a whole bunch of errors that seem to be VerilogA parsing errors, for example:

ERROR : (SFE - 874) "path" : unexpected quote character "`". Cannot run the simulation because of syntax error.

and so on.

veriloga is added to the switch view and stop view fields in setup --> environment

I am using IC6.1.7-64b.500.16

Thank you in advance

  • Cancel
Parents
  • Saloni Chhabra
    Saloni Chhabra over 7 years ago

    You mentioned that 'veriloga is added to the switch view and stop view fields in setup --> environment' : is veriloga the first view name in the switch view list? With the fields setup as below (see snapshot), you should get the veriloga model included automatically by the netlister using ahdl_include command.

    Regards,

    Saloni

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MT13
    MT13 over 7 years ago in reply to Saloni Chhabra

    Hi Saloni,

    Thanks for the reply. Quick question, wouldn't this method result in the simulator grabbing a veriloga view for a block that has multiple views (e.g. schematic and veriloga views)? Because eventually I would like to add the digital block with other analog blocks, and for the analog ones I would like to use their spectre views.

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • MT13
    MT13 over 7 years ago in reply to Saloni Chhabra

    Hi Saloni,

    Thanks for the reply. Quick question, wouldn't this method result in the simulator grabbing a veriloga view for a block that has multiple views (e.g. schematic and veriloga views)? Because eventually I would like to add the digital block with other analog blocks, and for the analog ones I would like to use their spectre views.

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to MT13

    Saloni's suggestion won't work if you are instantiating the veriloga block from your included .scs file - see my response earlier in the thread. If the veriloga block had been instantiated from a schematic, then it would have worked, and if you needed finer control (i.e. different views to use per cell or per instance or per occurrence) then you'd create a config view to allow you to control that rather than with a global view switch list. However, a config view also won't help you if you if you need to instantiate the veriloga block from an include file - you need to add the ahdl_include as I suggested earlier. 

    Unless of course I've completely misunderstood what you said earlier.

    Regards,

    Andrew.

    • 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