The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> how to use wreal?
https://designers-guide.org/forum/YaBB.pl?num=1121340027

Message started by Monia on Jul 14th, 2005, 4:20am

Title: how to use wreal?
Post by Monia on Jul 14th, 2005, 4:20am

I want to drive a wreal net using a real variable.

Doing the folloeing:

module test ()
wreal out;
real out_test;

assign out = out_test;

analog begin
out_test = 19.0;
end

endmodule

I get an error during compilation related to the
"assign" statement":
transition sensitivity on analog value/expression is not supported.

Why?

M

Title: Re: how to use wreal?
Post by Ken Kundert on Jul 14th, 2005, 7:36am

A wreal is an event-driven signal type and so cannot be made dependent on a continuous time variable. Doing so could make the value of the wreal vary continuously, which its event-driven nature could not reasonable represent.

You must assign to out the value from an event driven variable.

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.