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

Pattern matching program in xhtml, Part 1 Given the following Regular Exp...

Part 1 Given the following Regular Expressions, explain in detail the pattern accepted by each. Pay attention to all the characters being used. Your answers need not appear with

Program to built book recommendation system, 1 Problem Description The...

1 Problem Description The task of the assignment is to build a book recommendation system for Auer Libraries. The system is to be implemented in Prolog and as the owners of t

Ajax and php, would you like to see some of my code. I am trying to do an a...

would you like to see some of my code. I am trying to do an add friend request. when I view my friends page I click on the add button. with ajax I want the script to send over the

Small perl program, 1. use a small perl program and matching config file to...

1. use a small perl program and matching config file to retrieve and reformat the system time for a number of remote machines via snmp.  Readings should have a local timestamp for

Matlab help, i(t)=(V/R) * (1-e^-(R/L)(t)) (a) Defi ne an anonymous function...

i(t)=(V/R) * (1-e^-(R/L)(t)) (a) Defi ne an anonymous function answerE that returns i(t) given input t. (b) The fi nal value for the current is 2 amps. Find a time tm when the curr

How would you install a multiple layered security product, Problem: (i)...

Problem: (i) All Security authentication mechanism that run on the TRU64 Unix Operating system run under the Security Integration Architecture ( SIA ) layer. Explain with diag

Information hiding, Why is this correct/when is this the right ide

Why is this correct/when is this the right idea

Service oriented architectures in xml, question 1: In the opening lecture I...

question 1: In the opening lecture I spoke about general changes in business - flatter organizations, process orientation as opposed to functional silos, focus on supply chains, gr

Write a program to read a text file and create a dictionary, Write a progra...

Write a program to read a text file and create a dictionary. The keys for the dictionary should be all 26 letters of the alphabet and the values of the dictionary should be the lis

Java virtual machine, Expertsmind.com is expert in java assignment help ...

Expertsmind.com is expert in java assignment help JAVA Virtual Machine A Java exclusive device or java virtual machine (JVM) is an exclusive device able of undertaking Jav

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