• 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. Dynamic parameter and verilogA code

Stats

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

Dynamic parameter and verilogA code

KMan11
KMan11 over 12 years ago

Hello

  I have a VerilogA block which reads in single binary bits from a file, on rising edges of an incoming clock (generated by VPULSE).

 I created a simple file where I have tscale and tscale_value and time and period values.

The 'period' parameter, incidentally, changes the period of the incoming clock.

 I can simulate and I clearly see the period of the spectre VPULSE clock change by a factor 10 as desired.

Yet the output of my VerilogA fails to output anything after this change in period.  My VerilogA block doesn't take this 'period' variable, and consists of the following after (parameter, real, pin declarations (electrical))

analog begin

@(initial_step)
fid=$fopen(type,"r");


 @ (cross( V(Mclk) - vtrans_clk, +1 ))
 begin

 $fscanf(fid,"%d",int_cs[0]);
 end

vout_val = int_cs[0] * vdd;

V(cs0) <+ 1*transition(vout_val, tdel, trise, tfall);
end

endmodule  

 

Does anyone know whether changing the clock period (by a factor 10), without changing reltol would result in a lack of output from the verilogA block, yet the incoming clock changes correctly. I've tried changing the clock by multiplying and dividing by 10 from the initial period, but to no avail.

 

K

 

  • Cancel
Parents
  • KMan11
    KMan11 over 12 years ago

     Hi Andrew.

     

    Our Cad guy downloaded, built and installed Spectre 12.1.1 32 bit

    sub version : 12.1.1.059.isr10

     

    Attached is an image of shownig fast clocking and then slow clocking of the data from file

     

    Thanks for your help

     

     

    • dynParam_test.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • KMan11
    KMan11 over 12 years ago

     Hi Andrew.

     

    Our Cad guy downloaded, built and installed Spectre 12.1.1 32 bit

    sub version : 12.1.1.059.isr10

     

    Attached is an image of shownig fast clocking and then slow clocking of the data from file

     

    Thanks for your help

     

     

    • dynParam_test.png
    • View
    • Hide
    • 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