• 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 20399
  • 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
Parents
  • 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
Reply
  • 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
Children
No Data

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