Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please! The UVSim is a simple machine, but powerful. The UVSim can only understand a machine language called Basic Machine Language, or BasicML for

C++ please!

The UVSim is a simple machine, but powerful. The UVSim can only understand a machine language called Basic Machine Language, or BasicML for short. The UVSim contains an accumulator a register into which information is put before the UVSim uses it in calculations or examines it in various ways. All the information in the UVSim is handled in terms of words. A word is a signed four-digit decimal number, such as +1234, -5678. The UVSim is equipped with a 100-word memory, and these words are referenced by their location numbers 00, 01, , 99. The BasicML program must be loaded into the main memory starting at location 00 before executing. UVSim is also going to simulate Arithmetic Logic Unit (ALU) to let the students learn ALU architecture. The only operation the ALU can have is XOR and AND operation. The simulation need to simulate an n bit full adder. Missing

Each instruction written in BasicML occupies one word of the UVSim memory (instruction are signed four-digit decimal number). We shall assume that the sign of a BasicML instruction is always plus, but the sign of a data word may be either plus or minus. Each location in the UVSim memory may contain an instruction, a data value used by a program or an unused area of memory. The first two digits of each BasicML instruction are the operation code specifying the operation to be performed.

BasicML vocabulary defined as follow.

I/O operation:

READ = 10 Read a word from the keyboard into a specific location in memory.

WRITE = 11 Missing

Load/store operations:

LOAD = 20 Load a word from a specific location in memory into the accumulator.

STORE = 21 Missing

Arithmetic operation:

Add = 30 Add a word from a specific location in memory to the word in the accumulator (leave the result in the accumulator)

SUBTRACT = 31 Missing

DIVIDE = 32 Missing

MULTIPLY = 33 Missing

Control operation:

BRANCH = 40 Branch to a specific location in memory

BRANCHNEG = 41 Missing

BRANCHZERO = 42 Missing

HALT = 43 Missing

Debugging operation:

MEMDUMP Print the memory image on the screen.

BREAK Missing

CONTINUE Missing

The last two digits of a BasicML instruction are the operand the address of the memory location containing the word to which the operation applies.

Deliverable

(2) (10 points) (Hard Copy) Decompose the milestone to backlogs and sprints.

(4) (20 points) (Hard Copy) Describe the system to all stakeholders by using Use Case Diagram. The number of use cases is no more than 15 and no less than 10. The range of number is used to control the granularity of the use cases. Try your best to make sure the use cases are in the same detailed level.

(5) (40 Points) (Hard Copy of the GUI and running results) Develop a prototype of UVSim. You are free to use any object oriented language. Note: the prototype can skip the some of the implementation detail, such as the implementation of ALU, the debugging operation.

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

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions