F
fl
Guest
Hi,
I never took a VHDL class, although I read a book for some time. Recently I
have some progress. Some conceptual questions pop up occasionally. I find
understanding these questions help me writing good code. 'in2sel' is the
entity input port. I am curious about ( in2sel > '0' ). I guess in2sel should
be resolved to '1' or '0' (Otherwise 'X' 'Z' 'H' etc. have some pre-determined
order/priorities). Assume in2sel is resolved to '1'. What does '1' > '0' mean?
i.e. the comparing is on what category? Is it an integer subtype? Or something
else? I don't find the solution after a web search. Hopefully someone gives
me an interpretation or hint.
Thanks,
in2sel : IN std_logic;
in2_im0 <= dmut_im WHEN ( in2sel > '0' ) ELSE dim_signed;
I never took a VHDL class, although I read a book for some time. Recently I
have some progress. Some conceptual questions pop up occasionally. I find
understanding these questions help me writing good code. 'in2sel' is the
entity input port. I am curious about ( in2sel > '0' ). I guess in2sel should
be resolved to '1' or '0' (Otherwise 'X' 'Z' 'H' etc. have some pre-determined
order/priorities). Assume in2sel is resolved to '1'. What does '1' > '0' mean?
i.e. the comparing is on what category? Is it an integer subtype? Or something
else? I don't find the solution after a web search. Hopefully someone gives
me an interpretation or hint.
Thanks,
in2sel : IN std_logic;
in2_im0 <= dmut_im WHEN ( in2sel > '0' ) ELSE dim_signed;