• 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. Vector files and verilog ams modules

Stats

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

Vector files and verilog ams modules

mhkvy4
mhkvy4 over 7 years ago

I have made a verilogams module for a 2 to 4 decoder where both the input and output buses are logic disciplines. I then made a test bench for the module which consisted of a verilog a model of a counter some vpulse sources and it was working.

I was wondering if a verilog ams module can use a vector file as a stimulus with connectlib files selected to determine the logic levels. So far it doesn't seem to be working. Can vec files only work with actual device circuit models or do they work with functional and verilog ams

   

  • Cancel
Parents
  • mhkvy4
    mhkvy4 over 7 years ago

    sorry mods can move this post to the Mixed Signal design forum.

    thanks 

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

    I won't bother moving it - just as easy to answer here. Vector files (and VCD files) can only drive analog nets, not digital nets in a  mixed-signal simulation. You'd have to stick a resistor (say) between the net being driven by the vector file and the module with logic inputs.

    That's because the discipline resolution is not influenced by the presence of vector files, and so it wouldn't know to add a connect module instance (an interface element) on that net.

    Regards,

    Andrew.

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

    Thanks, Andrew for the quick response. 

    Is the discipline resolution influenced by the presence of verilog A models and analog sources like a pwl source? If I use a connect module instance and just drive the decoder (with logic inputs) with just a voltage pwl source would that work? 

    Thanks for the help. 

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

    I was playing around with it a bit more. Will it work if I attach resistors at the input and output buses like below? I am attaching my vector file as well. The waveforms I get are wrong. The inputs don't seem to change after every 10ns but seem to stay the same for the entire length of the simulation (0,0). I get the right output but was wondering why the inputs don't change. 

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

    In the AMS log file, you'll have seen something like:

    Notice from spectre during topology check.
        Only one connection to the following 2 nodes:
            in<0>
            in<1>

    You need to use vname in[0] in[1] instead (i.e. square brackets) - then it would have worked.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to mhkvy4

    In the AMS log file, you'll have seen something like:

    Notice from spectre during topology check.
        Only one connection to the following 2 nodes:
            in<0>
            in<1>

    You need to use vname in[0] in[1] instead (i.e. square brackets) - then it would have worked.

    Andrew.

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

    Oh, and by the way, it's much better if you post the contents of a text file as text rather than as a screenshot. Then it saves anyone looking at this time because they don't have to re-type the contents...

    Andrew.

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

    Thanks that fixed it. 

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

    noted,

    thanks

    • 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