Altera_Forum
Honored Contributor
16 years agoSigned integer and 2 complement
Hi. I am confusing with the signed integer and 2 complement in verilog.
1. if i declare b is [3:0] signed reg , what would be the bit representation if b is -3? 1011? or.... 2. Previously we use the 2 complement to represent negative number and now the existance of signed number in verilog, is it indicatng that we are not going to use 2 complement? Pls clarify on it. e.g signed A - signed B or 2'complent A - 2'complement B Which one is true or both? Thanks