EmbDev.net

Forum: FPGA, VHDL & Verilog equivalent high-Z in real?


Author: bob (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi all,

The question is in the subject, I want to know if there is an equivalent 
to the high impedance state for real type?

For instance in the case of switches with real signal inputs/outputs. I 
thought to write 0.0 instead of 'Z' when the switch is open but is it 
right or not?

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
bob wrote:
> I want to know if there is an equivalent to the high impedance state for
> real type?
NAN is "Not A Number" which is a kind of "undefined state".

But you will not have the ability to drive two floats on one signal 
wihtout defining your own float type with a resolution table...

Author: bob (Guest)
Posted on:

Rate this post
0 useful
not useful
Well, I see. Maybe I can modelise a 2-1 mux with the signal I want to 
drive on one channel and on the other channel "0.0" ? At least for the 
behaviour of a switch

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.