Forum Discussion
Altera_Forum
Honored Contributor
15 years agoquestion about unsigned constant
Hi everyone, I meet a problem when I am trying to define a one bit unsigned constant. I think declaration should be constant var1: unsigned :='1'; But everytime I try this, it always be...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- think declaration should be constant var1: unsigned :='1'; --- Quote End --- The definition involves two faults. - it's missing a size constraint - it uses incorrect bit-vector constant syntax
constant CONST1: unsigned(0 downto 0) :="1";