Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

0 I hope you have a good day, here i attach the Assemply and Machine code and i need the solution for c ( i

image text in transcribedimage text in transcribed0image text in transcribedI hope you have a good day, here i attach the Assemply and Machine code and i need the solution for c ( i need the verilog code)

A) Assembly: mov(30, ebx); //A=30 mov(31, eax); //B=31 mul(C,eax); //A*B mov(eax,Temp1); //Temp1=A*B add(C,eax); //A+B mov(eax,Temp1); //A+B mov(33,eax); //D=33 sub(34,eax); //D-E mov(eax,Temp2); //Temp2=D-E idiv(eax,eax); //Y=A+B/D-E mov(eax,Y); //Y=35 B) Machine code: 10: mov ebx, 30 //A=30 11: mov eax, 31 //B=31 12: mul eax, ebx //AB 13: mov [Temp1], eax //Temp1=A*B 14: add eax, ecx //A+B 15: mov [Temp1], eax //A+B 16: mov eax, 33 //D=33 17: sub eax, 34 //D-E 18: mov [Temp2], eax //Temp2=D-E 19: idiv eax, eax //Y=A+B/D-E 20: mov [Y], eax //Y=35 3) Assume A,B,C,D,E and Y are memory cells with addresses 30,31,32,33,34, and 35 , respectively. Given, Y=DEA+BC1, c) Set PC=10 and simulate the above program. Verify that it works correctly and the result stored at memory variable Y is correct. Attach simulation waveform and the Verilog source file. Assume A, B, C, D and E have the values 1,3,5,8, and 4 , respectively

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago