

I need with question 3. I make sure to give a thumbsup!!!


We structure computer as series of abstractions (levels), and cach abstraction (level) builds on the one below it. We are designing a computer and decide to adopt the following five-level structure. Level 4: High-level Programming Language C lava Level 3: Assembly Language LVM Level 2: Machine Language (UVM) Level 1: Micro-Machine Mic-1 (Microprogramming Language) Level O: Gates and Circuits /JAVA), which is in Level-4: A user wrote a piece of C++/Java code (2 instructions in C int sum = 0; for (i=0; i<10; i++) sum = sum + i; Please answer the following questions. 3. [10 points) The designer decides to add one more IJVM instruction, POP3, to the system (Level 3 and 2), which pops the three top words from stack. Please help design a Mic-1 microprogram segment that executes interprets this POP3 IJVM instruction (note: don’t forget to adjust SP and TOS registers). SP TOC = 0 SPA TOC = A. Current stack Stack after POP3 2. [45 points) – Level-1 a) Your above work has to be carried out by a series of Mic-1 instructions. Count the number of Mic-I instructions are used to to interpret (execute) the above IJVM code. b) Assume this computer is driven by a d-GHz clock (CPU speed). How many clock cycles are needed to run this the user’s code? c) How much time is needed to run the above 2 C++ JAVA sentences on this computer? 1. [45 points) — Level-3 & Level-2 a) Translate the above Level-4 code into Level-3 code in IJVM language) b) Translate your work at Level-3 to Level-2 code (in IJVM machine language) c) Count how many IJVM instructions are used to run those 2 C++ JAVA instructions Show transcribed image text We structure computer as series of abstractions (levels), and cach abstraction (level) builds on the one below it. We are designing a computer and decide to adopt the following five-level structure. Level 4: High-level Programming Language C lava Level 3: Assembly Language LVM Level 2: Machine Language (UVM) Level 1: Micro-Machine Mic-1 (Microprogramming Language) Level O: Gates and Circuits /JAVA), which is in Level-4: A user wrote a piece of C++/Java code (2 instructions in C int sum = 0; for (i=0; i
Expert Answer
Answer to We structure computer as series of abstractions (levels), and cach abstraction (level) builds on the one below it. We ar…