• 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. Problem while running verilog-ams block in cadence schematic...

Stats

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

Problem while running verilog-ams block in cadence schematic editor

indra0804
indra0804 over 12 years ago

Hi,

 I am little bit new to the domain of verilog-ams. I have created blocks using verilog-a and have successfully simulated them along with other components like voltage sources, resistor etc.

 Now I am trying to create a block in verilog-ams that would convert logic to electrical signal and I would like to use this block as a connect module to convert from logic to electrical.

 The code of the logic2electrical block is like this:

 

//Verilog-AMS HDL for "Work_Indra", "logic2electrical123" "verilogams"

 

`include "constants.vams"

`include "disciplines.vams"

 

`timescale 1ns / 10ps

 

module logic2electrical123 (in,out );

 

parameter real v0 = 0 ;

parameter real v1 = 1.8 ;

parameter real vx = 0.9 ;

parameter real vz = 1.8 ;

 

parameter real tr = 1e-09 ;

parameter real tf = 1e-09 ;

 

    input in;

    output out;

    logic in;

    electrical out;

    real  v;

 

    assign in = in;

 

    initial begin

        case(in)

            1'b0: begin v = v0; end

            1'b1: begin v = v1; end

            1'bx: begin v = vx; end

            1'bz: begin v = vz; end

        endcase

    end

 

    always @in begin

        case(in)

            1'b0: begin v = v0; end

            1'b1: begin v = v1; end

            1'bx: begin v = vx; end

            1'bz: begin v = vz; end

        endcase

    end

 

    analog begin

        V(out) <+ transition(v, 0, tr, tf);

    end 

endmodule

 

 The code has been compiled successfully and I am able to generate a symbol.

Now in schematic editor I am trying to use that symbol. In the input side I have just connected a source "vbit" with logic '1' and the o/p I have connected to ground via a resistor.

 While I try to do any kind of analysis, I am getting some error like as shown in the pic attached.

 

Regards,

 Indrajit 

  • Capture.JPG
  • View
  • Hide
  • Cancel
Parents
  • indra0804
    indra0804 over 12 years ago

    Hi Andrew, 

     Thank you very much. I got the point. After reading your response, I started learning about AMS Designer and tried to set up AMS environment. Had a few problems initially, but finally I was able to set up AMS design environment on ADE and run my design (consisting of both verilog and verilogams blocks) successfully.

     Couldnot use the vbit source though, had to write some code in verilog for the bit source. But would like to know more on vbit source and its use. Because, I need to get a bit pattern as input, maybe vbit can be helpful if I can get it to use.

     

    Regards,

    Indrajit 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • indra0804
    indra0804 over 12 years ago

    Hi Andrew, 

     Thank you very much. I got the point. After reading your response, I started learning about AMS Designer and tried to set up AMS environment. Had a few problems initially, but finally I was able to set up AMS design environment on ADE and run my design (consisting of both verilog and verilogams blocks) successfully.

     Couldnot use the vbit source though, had to write some code in verilog for the bit source. But would like to know more on vbit source and its use. Because, I need to get a bit pattern as input, maybe vbit can be helpful if I can get it to use.

     

    Regards,

    Indrajit 

    • 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