Peter Mawhorter
When you press the power button, electricity flows through a bunch of transistors. This feeds power to things like a keyboard & monitor, which send inputs into or receive outputs from the transistors.
The transistors are organized into logic gates, like AND and OR.
cs240 auth -i s24
?cs240
script or git
?0x
prefix is often used, e.g.,
0xF83A
FF
in hexHow to represent negative numbers using bits?
Found in “Draw” menu:
What combinational function is this?
has 3 bits set, so the parity bit would 1
has 2 bits set, so the parity bit would 0
A | B | P |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Things to try:
&
with a mask value like
0x0F
)