Chapter 4 Flashcards
Shift Registers
Moves each stored but 1 position.
Inputs: shr (to shift or not to shift) shr_in (what to shift)
Outputs: Q3 Q2 Q1 Q0
Registers
An n-bit register is a sequential component that can store n-bits.
Half Adder
Input: A, b
Output: C_o, S
Full Adder
Input: A, B, C_in
Output: C_out S
Carry ripple adder
Combine adders by taking co to cin
Counter
Note how the count rolls over from 1111 to 0000 co = 1
Input: cnt, clk,
Output: tc, c
Timer
A counter used to measure time
Register file
You can write one place at a time and read one place at a time. When you write to a port you can’t read it until the next cycle.
Inputs: M bit W_Data, N bit W_Addr, W_en, N bit R_addr, R_en
Outputs: M bit R_Data
Register file is N^2 x M size