ece124: add registers

This commit is contained in:
eggy 2023-02-08 17:10:30 -05:00
parent 9d05a9e67e
commit 53759d52ba

View File

@ -388,7 +388,18 @@ Because flip-flop outputs only change on an active clock edge, there are **propa
A **timing violation** occurs if these timing parameters are not met, which limits clock cycle frequency.
### Registers
!!! definition
- An **n-bit register** stores *n* bits.
A flip-flop is a one-bit register.
A **shift register** is a chain of redstone repeaters, consisting of a chain of flip-flops with each output connected to the next input.
<img src="https://upload.wikimedia.org/wikipedia/commons/4/45/4-Bit_SIPO_Shift_Register.svg" width=300>(Source: Wikimedia Commons)</img>
An **up-counter** increments its binary value on input. A **down-counter** decrements its value. It is **synchronous** if all bits update simultaneously.
## VHDL