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 --- The definition involves two faults. - it's missing a size constraint --- Quote End --- When declaring a constant, sizing is implicit in the constant value, so explicit sizing is not required. constant A : unsigned := "0"; is perfectly legal.