The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> wreal in digital context
https://designers-guide.org/forum/YaBB.pl?num=1122048325

Message started by Monia on Jul 22nd, 2005, 9:05am

Title: wreal in digital context
Post by Monia on Jul 22nd, 2005, 9:05am

I have the following code:

.......
real sample, OutInt;
wire dsample;

always @(posedge dsample) begin
 OutInt = sample;
 <other digital setting>
end
.......

where "sample" is controlled in another process and
it has a behavior like a step.
Instead OutInt is changing even if dsample is stable
and it behaves like a ramp.

Can you explain me why?

I'm expecting OutInt stays constants and it changes
only @ posedge of dsample.



Title: Re: wreal in digital context
Post by jbdavid on Aug 3rd, 2006, 6:18am

Are you SURE the value is changing between, or is your Waveform viewer "connecting the dots" between the values..
This is the simvision default setting for real and wreal signals.

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