The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 3rd, 2024, 8:51am
Pages: 1
Send Topic Print
wreal in digital context (Read 1919 times)
Monia
Guest




wreal in digital context
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.


Back to top
 
 
  IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: wreal in digital context
Reply #1 - 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.
Back to top
 
 

jbdavid
Mixed Signal Design Verification
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.