Project 1, computer programming, Programming Languages

Assignment Help:
CSCI 3380 Project 1

For Mano’s Computer design, we have the following flowchart for fetch and decode phases:




















Please write the code to simulate the computer to do all works listed in the figure with the following instructions available:

Figure 2 Instructions need to be carried out in this project
The Mano’s computer (16 bit system) contains Registers: AR, PC, DR, AC, IR, TR, E and Memory (4096*16). Suppose we only use the first 400 locations of the memory. You need to do the following things:

(1) Use random function to fill in the first 400 locations of the memory.
a. Start with the first Hex number (0~E)
b. After the first number is generated,
i. If the first number is 7, the rest 3 Hex number should be randomly choose one of the 12 register reference instruction number
ii. If the first number is not 7, the rest 3 Hex number should be randomly generated number that bounded by the first 400 memory locations we are using in this project.

(2) Design you way to implement instructions listed in Figure 2.

(3) Fill in the Registers Value with your preference besides PC.

(4) Use random function to choose the starting PC value. (Bounded by the first 400 locations of memory)

(5) Execute consecutively 5 instructions starting with the PC value decided in (4). For each instruction, you need print out all registers in each clock cycle (just like what we did in the class and quiz).

(6) Repeat one more time of instruction (4) and (5)


What to submit:
Hard Copy of the following stuff:
• A print out results of your program.
• Source code of your program.

Due Dates and Honor:
This project will be due by the beginning of the class on March/13/2012. This is an independent programming project, and it is very important that you understand and abide by the policy concerning programming projects. Remember, your personal honor and integrity is far more important than your grade on the project.

Related Discussions:- Project 1, computer programming

Program for average grades for 10 students, Assume that you are a college p...

Assume that you are a college professor needing to average grades for 10 students. Write a program that asks for each student's name and grade. Print the list on-screen with each s

What is url describe their protocol, What is URL describe theri protocol? ...

What is URL describe theri protocol? URL basicallt stands for uniform resource locator. A URL is a pointer to a particular resource on the Internet at a particular location.

Loops, I have doubt in this section .do-while loop.could you able to clear ...

I have doubt in this section .do-while loop.could you able to clear it for me.

Explain the break statement - computer programming, Explain the Break State...

Explain the Break Statement - Computer Programming? The break statement is used as an interrupt to the normal flow of control this statement causes as exit from the switch stat

Genetic algorithm, I need help I want to implement the Genetic Algorithm f...

I need help I want to implement the Genetic Algorithm for Shortest path Kindly Help me I will be thankful to you

SRGP, Implement the pull-down menu package

Implement the pull-down menu package

Create procedures for accessing the root, (a)  Create procedures for access...

(a)  Create procedures for accessing the root, left subtree and right subtree, and also mutators for changing the root, left subtree and right subtree of an avl argument. (b) Wr

Computer programming on human algorithm, 1.   You have been asked to write ...

1.   You have been asked to write a computer program that will figure out the total of an order when given the amount of the order ($200) and a sales tax rate of five percent.  I w

3-Tier Architecture in asp.net, I am getting error at business layer object...

I am getting error at business layer object in code behind page.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd