# Why is out = 1 when all the control bits are set to 1? Classic List Threaded 5 messages Open this post in threaded view
|

## Why is out = 1 when all the control bits are set to 1?

 According to this table: When all the control bits are set to 1, the output is 1. But why? If I look at the table: x=0 because zx is set x=1 because nx is set y=0 because zy is set y=1 because ny is set out=1+1 => out=1 OR 1 => out=1 because f is set out=!1 => out=0 because no is set But why does the second line say that out=1 when all 6 control bits are set then? What am I missing?
Open this post in threaded view
|

## Re: Why is out = 1 when all the control bits are set to 1?

 Administrator wetFence wrote When all the control bits are set to 1, the output is 1. But why? If I look at the table: x=0 because zx is set x=1 because nx is set y=0 because zy is set y=1 because ny is set out=1+1 => out=1 OR 1 => out=1 because f is set The ALU is a 16-bit part, so ``` (zx == 1) => x = 0000 0000 0000 0000 (nx == 1) => x = ~x = 1111 1111 1111 1111 (-1) (zx == 1) => y = 0000 0000 0000 0000 (nx == 1) => y = ~y = 1111 1111 1111 1111 (-1) (f == 1) => out = x + y = 1111 1111 1111 1110 (-2) (no == 1) => out = ~out = 0000 0000 0000 0001 (1) ```You might want to check out this worksheet. --Mark
Open this post in threaded view
|

## Re: Why is out = 1 when all the control bits are set to 1?

 I see my mistake now, thanks. 1 + 1 = 10 => 0 but I did 1 + 1 = 1