• 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. Verilog design in Cadence

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 126
  • Views 20391
  • 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

Verilog design in Cadence

kenambo
kenambo over 11 years ago

 Hi,

 Is there anyway that i can design a digital circuit in Virtuoso Schematic window...

And include the *.v file in the schematic capture window..

 

Thanks...

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Yes. You can create textual Verilog views (File->New->CellView and set the Type to "Verilog" - give the lib/cell/view a name). Then in the resulting editor create the Verilog representation. When you save and exit the editor, it will syntax check the view and then prompt you to create a symbol. You can instantiate this in the schematic.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sali
    Sali over 11 years ago

     Hi all,

    I'm trying to build a voltage controlled curent source,I opened a new file with a verilogAMS text and write the following:

    module VCCS(p,n,pc,nc);
    inout p,n;
    input pc,nc;
    electrical p,n,pc,nc;
    parameter real gain=1;
    branch (p,n) iSrc;
    analog begin
    I(iSrc) <+ gain*V(pc,nc);
    end
    endmodulet pc,nc;

    and I created a symbol for it then I instantiate it on the schematic page but the output is always zero?

    Can any one help me?

    thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kenambo
    kenambo over 11 years ago

     Thanks.. so i have to write a .v file and create a symbol.. am i right...

    What is the difference between this and the synthesis tool

     

    Thanks,,....

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Sali said:
    module VCCS(p,n,pc,nc);
    inout p,n;
    electrical p,n,pc,nc;
    parameter real gain=1;
    branch (p,n) iSrc;
    analog begin
    I(iSrc) <+ gain*V(pc,nc);
    end
    endmodulet pc,nc;

    Not sure why you posted this on the end of another thread, but the code you posted has typos in it - it wouldn't even syntax compile. I used a command-line example to try this out (having fixed the typos):

    `include "disciplines.vams"

    module VCCS(p,n,pc,nc);
    inout p,n;
    input pc,nc;
    electrical p,n,pc,nc;
    parameter real gain=1;
    branch (p,n) iSrc;
    analog begin
    I(iSrc) <+gain*V(pc,nc);
    end
    endmodule

    module test;
    electrical gnda;
    ground gnda;

    vsource #(.freq(1M),.ampl(0.5), .type("sine")) V1(n1,gnda);
    resistor #(.r(1k)) R1(op1,gnda);
    VCCS #(.gain(1m)) I1(op1,gnda,n1,gnda);

    endmodule

    And this together with testVCCS.scs :

    tran tran stop=2u

    I then ran "irun -gui testVCCS.scs testVCCS.vams" and I see these results (having problems uploading the picture, so I'll try again in a moment). Looks pretty OK to me.

    Andrew.

     

     


    input pc,nc;
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    kenambo said:

     Thanks.. so i have to write a .v file and create a symbol.. am i right...

    What is the difference between this and the synthesis tool

     

    A synthesis tool takes RTL (Register Transfer Level) code and converts it into a gate level representation. Writing a Verilog text view and simulating that just means that you're simulating what you wrote without it being synthesized. So it's a bit like asking what is the difference between an orange and a car - two completely different things.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sali
    Sali over 11 years ago
    Thank you so much Andrew, and sorry for being late in my reply I had a problem accessing my cadence account ant it solved now. Thank you again, Sali
    • 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