• 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. Mixed-Signal Design
  3. Need help on identifying issue with VerilogAMS issue

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 13703
  • 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

Need help on identifying issue with VerilogAMS issue

Quantum7
Quantum7 over 5 years ago

Setup a testbench with config view and a verilogams block which will drive test signals towards my analog stuff.

right now I am making a very simple cell in verilogams, its basically a unit which drives 10ns clock.

inside the testbench i defined a module which takes that clock and converts it to continuous signal for my analog circuit.

Below is a code:


//Verilog-AMS HDL for "libtest", "ams_test1" "verilogams"

`include "constants.vams"
`include "disciplines.vams"

module signal_d2a (in, out);
reg in;
electrical out;

parameter real trise=2n, tfall=2n;
parameter real digOutHigh = 5.0, digOutLow = 0.0;
integer logicState;

analog begin

if (in == 1'b1)
logicState = digOutHigh;
else
logicState = digOutLow;

V(out) <+ transition(logicState, 0, trise, tfall);
end
endmodule


module ams_test1 (
out );

output out;

wire outsig;
reg clko;

signal_d2a out1(
.in(clko),
.out(outsig) );

initial

begin
clko=0;
end

always
#5 clko = !clko;

assign out = outsig;


endmodule


I am getting following error, and not understanding what exactly is wrong:

xmelab: *E,CUVMUR (/proj/ams_test1/verilogams/verilog.vams,36|14): instance 'ams_testbench1.I0@ams_test1<module>.out1' of design unit 'signal_d2a' is unresolved in 'libtest.ams_test1:verilogams'.

Any idea what exactly i am doing wrong? again, its basically a "clock" generator, and a function to transition it from purely discrete to continuous signal.

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 5 years ago

    Dear Quantum7,

    It sounds as if you are using the Hierarchy Editor and the error is occurring during the elaboration phase. Have you seen the following that may address your issue? There are a lot of details you have not included about your setup and simulation environment, and hence it is difficult for me to provide any more specific guidance. Others who are far more expert than I on the use of veriloga modules in the application you describe may better recognize your error message. However, this thought came to mind and I thought it worth pointing out.

    support.cadence.com/.../ArticleAttachmentPortal

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ShawnLogan
    ShawnLogan over 5 years ago

    Dear Quantum7,

    It sounds as if you are using the Hierarchy Editor and the error is occurring during the elaboration phase. Have you seen the following that may address your issue? There are a lot of details you have not included about your setup and simulation environment, and hence it is difficult for me to provide any more specific guidance. Others who are far more expert than I on the use of veriloga modules in the application you describe may better recognize your error message. However, this thought came to mind and I thought it worth pointing out.

    support.cadence.com/.../ArticleAttachmentPortal

    Shawn

    • 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