• 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. RF Design
  3. Hidden state problem / HB analysis

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 63
  • Views 13119
  • 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

Hidden state problem / HB analysis

RFmate
RFmate over 10 years ago

Hello everyone,


I am new to VerilogA and have a little problem figuring out what's wrong with my module. The error message says that my module is not supported in PSS analysis because it is a behavior module component with hidden states:

line 24: Hidden state variable: x

line 24: Hidden state variable: sig

I red Ken kunderts document about avoiding hidden states but I didn't see how to avoid them in my case

Could you please help me figure out how to avoid the hidden states on the variables x and sig?

Best regards

/////////////////////////////////////////////////////////////

module Count(Prog, clk, X, E);
input  Prog,clk;
output X,E;
electrical Prog,clk,X,E ;
parameter n = 8 ;
real x,sig;

analog begin
    @(initial_step)
    begin
        x=0;
        sig=0;
    end

    @(cross(V(clk),+1))
    begin
        x = x + V(Prog) ;
        if (x > pow(2,n-1)-1)
            sig = 1 ;
        else
            sig=0;

        if (x > pow(2,n)-1)
        begin
            x = x - pow(2,n) ;
            sig = 0 ;
        end
    end

    V(E) <+ sig ;
    V(X) <+ x ;
end

///////////////////////////////////////////////////////////////

  • 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