Synthesis of STD_LOGIC

  • Thread starter Christopher Bunk
  • Start date
C

Christopher Bunk

Hey, I got a question about synthesizing STD_LOGIC. When it's synthesized is
it identical to a "bit". For simulation I realize that it was given other
values such as U, -, L and H, but which of these values work for simulation?
If I write a 'U' to it for example, and then I compare it to 'U' does that
work in simulation. Or what values will that work for in simulation?


Thanks.
 
M

Mike Treseler

Christopher said:
Hey, I got a question about synthesizing STD_LOGIC. When it's synthesized is
it identical to a "bit". For simulation I realize that it was given other
values such as U, -, L and H, but which of these values work for simulation?

All of them.
If I write a 'U' to it for example, and then I compare it to 'U' does that
work in simulation.

yes.

-- Mike Treseler
 
T

Tim Hubberstey

Christopher said:
Oh crap. Sorry I typed that wrong. I meant what values work for synthesis.
I'm guessing that you can only compare to '1' and '0' for synthesis. Am I
right?

Yes. There is no hardware analog of '-', 'U', 'X' or 'W' and while it
might be possible to construct something to implement comparisons
against 'Z', 'H', and 'L', I doubt that any synthesizer does it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top