Questions tagged [complement]

4 questions
0
votes
1 answer

Using a 1-bit input to signal signed vs. unsigned comparison (in CircuitVerse)

Disclaimer, I'm a total electronics/circuit noob so sorry if this is really simple! But I've just built a 4-bit less-than comparator in CircuitVerse (outputs whether A < B), and I want to use a 1-bit input to signal whether the inputs are signed or…
0
votes
0 answers

How to represent K = -A -B in complement 2 in a curcuit

I know how to represent a number K for example when K = A - B in a curcuit, it's pretty straight forward. complement all signals from B and trun the carry signal into 1. Just like the picture below. My question is if I want to rerpesent K = -A -B +…
William
  • 1
  • 1
0
votes
0 answers

Multiplying twos complement binary numbers

I have a project where I am developing a basic processing core on a FPGA from logic gates. So of course I have an ALU that I am building out of logic gates. I have no issues with the rest of the ALU functions: add, sub, shift left/right, OR, CMP…
David777
  • 1,548
  • 12
  • 29
-1
votes
1 answer

How is the exponent expressed in single precision floating-point number representation using IEEE-754 format

I am learning computer architecture and organization. I am stuck in the following question. Can someone please help me? How is the exponent expressed in single precision floating-point number representation using IEEE-754 format? Is the exponent…
Anshul Gupta
  • 385
  • 3
  • 12