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 s23
?cs240
script or git
?0x
prefix is often used, e.g.,
0xF83A
FF
in hexHow to represent negative numbers using bits?
At this point, complete exercise 1 in the notebook by wiring the 7493 up to a push button plus logic outputs and observing its behavior.
Now, add wires to connect your 7493 to the TIL311, and complete exercise 2 in the notebook.
What combinational function is this?
Now, open LogicWorks and work through Exercise 3 in the notebook.
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 |
Work through Exercise 4 in the notebook in LogicWorks.
Things to try:
&
with a mask value like
0x0F
)Work on Exercises 5-7 in the notebook as practice for the upcoming Bits assignment.