S
Shawn
Guest
OK, up front.. I'm just getting into VHDL after having used PICs and
68000's for a bunch of years. It's a bit of a weekend hobby! I have
a test circuit breadboarded, and I'm trying to get this two case
decoder working...
OUT <= "0001" when IN = "00" else
"0010" when IN = "01" else
"ZZZZ";
Is there a way that I could do this instead with just logic
statements? I'm hung up on how I could assign OUT the different
values, but I know that I could do something like:
not IN(0) and not IN(1)
and...
IN(1) and not IN(0)
but how would I assign different values to OUT on each of those lines?
Any help, pointers, references, or suggestions for good books would be
appreciated!
68000's for a bunch of years. It's a bit of a weekend hobby! I have
a test circuit breadboarded, and I'm trying to get this two case
decoder working...
OUT <= "0001" when IN = "00" else
"0010" when IN = "01" else
"ZZZZ";
Is there a way that I could do this instead with just logic
statements? I'm hung up on how I could assign OUT the different
values, but I know that I could do something like:
not IN(0) and not IN(1)
and...
IN(1) and not IN(0)
but how would I assign different values to OUT on each of those lines?
Any help, pointers, references, or suggestions for good books would be
appreciated!