70 likes | 196 Vues
Explore the fundamentals of shift registers, focusing on FIFO (First In, First Out) and LIFO (Last In, First Out) operations. This lecture delves into the usage of FFL (FIFO Load), FFU (FIFO Unload), LFL (LIFO Load), and LFU (LIFO Unload) instructions in industrial automation systems. Learn how FIFO stacks buffer data efficiently while LIFO stacks function as a temporary storage in a last-in, first-out manner. Insights from Hebrews 13:5 remind us to value contentment in our work and lives.
E N D
ECT 464 Lecture 17 Shift Registers
Today’s Quote: The grass may look greener on the other side, but it still has to be mowed. Keep your lives free from the love of money and be content with what you have, because God has said, "Never will I leave you; never will I forsake you." Hebrews 13:5
Shift Register Instructions • FFL FIFO Load • FFU FIFO Unload • LFL LIFO Load • LFU LIFO Unload • The FIFO is a First In First Out Register used to buffer data. • The LIFO is a Last In First Out Register used as a stack
FIFO Load (FFL) • On a false-to-true rung transition, the FFL instruction loads words into a user-created file called a FIFO stack. This instruction’s counterpart, FIFO unload (FFU), is paired with a given FFL instruction to remove elements from the FIFO stack.
FIFO Unload (FFU) • On a false-to-true rung transition, the FFU instruction unloads words from a user-created file called a FIFO stack. The data is unloaded using first-in, first-out order. After the unload completes, the data in the stack is shifted one element toward the top of the stack and the last element is zeroed out.
LIFO Load (LFL) • On a false-to-true rung transition, the LFL instruction loads words into a user-created file called a LIFO stack. This instruction’s counterpart, LIFO unload (LFU), is paired with a given LFL instruction to remove elements from the LIFO stack.
LIFO Unload (LFU) • On a false-to-true rung transition, the LFU instruction unloads words or long words from a user-created file called a LIFO stack. The data is unloaded using last-in, first-out order.