The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 1st, 2024, 7:56pm
Pages: 1
Send Topic Print
how to use wreal? (Read 3700 times)
Monia
Guest




how to use wreal?
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
Back to top
 
 
  IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: how to use wreal?
Reply #1 - 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
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.