Question: Question 2. A stack architecture A stack architecture is used in many calculators. It uses a collection of registers called the stack, with the restriction
Question 2. A stack architecture A stack architecture is used in many calculators. It uses a collection of registers called the stack, with the restriction that you access only the piece of data on the top of the stack. When you puslh a new data value onto the stack, it goes on top (TOS), and everything else gets pushed down- like the "pop-up" plate dispensers in a cafeteria. When you pop a data value off of the stack, it comes off the top, and everything else moves up the stack. Math operations pop the top two pieces of data off the stack, do the math, and push the answer back on the stack. Suppose that the stack architecture has a 120 ns clock cycle, and the following instructions: PUSH
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
