Project 1, computer programming, Programming Languages

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.
Posted Date: 3/12/2012 12:46:49 AM | Location : United States







Related Discussions:- Project 1, computer programming, Assignment Help, Ask Question on Project 1, computer programming, Get Answer, Expert's Help, Project 1, computer programming Discussions

Write discussion on Project 1, computer programming
Your posts are moderated
Related Questions
Write a script that will list and count all of the images in a given HTML web page. Each image starts with

Expertsmind brings you  unique  solution in java assignments Just in Time Compiler In processing, just-in-time system (JIT), also known as energetic interpretation, is a m

I need help for C# XNA 2Dimension Game Development. I am gonna send the question and my solution(incomplete). I need you to complete it. Can you help me about that. I have 6-7 days

Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim

I''m studying electrical engineering, and this semester im taking course that called Computer Design. in this course they need me to a final project about any thing we took during

The following function calls supposedly write a single new-line character, but some are incorrect. Identify which calls don't work and explain why.     printf("%c", '\n');

Given a list of numbers, say my @input_numbers = (1, 1, 3, 5, 8, 13, 21, 34, 55, 89, 144); write a program map1.pl that will use the function map (a) to produce a list of

The method should call getAllCities() and return the index of the City that has the shortest (euclidian) distance to the. longitude and latitude passed as parameters


You will create a simple network management configuration which checks that certain programs are running on your network and are performing as expected, and that certain system det