Dibatalkan

Simulating CPU Performance

Simulating CPU Performance

This assignment is about designing and simulating a Central Processing unit.

Aim: To write a program that simulates the performance of an 8-bit CPU. You are required to define an instruction set, describe the simulator algorithm and write the code to implement the simulator.

Suggested Approach:

Define the number of bits needed for an instruction set. ie. 3 bits will support 23=8 instructions.

Select the required instructions: ie

Instruction

Mnemonic

RTL definition

Load Acc from memory

LDA N

[A]¬[M(N)]

Store Acc in memory

STA N

[M(N)] ¬ [A]

Add memory to Acc.

ADD N

[A] ¬ [A]+[M(N)]

Branch to location N

BRA N

[PC] ¬ N

If A=0, Branch to location N

BEQ N

IF [A]=0 THEN [PC] ¬ N

Define the algorithm needed for simulation

Select a programming language ie (C, C++)

Design a simulator that can simulate the functionality of your CPU

Test your design

Discuss and conclude

Deliverables.

- A concise typed report (max 10 pages excluding any listings) describing the design and implementation of the CPU simulator.

Kemahiran: Pengaturcaraan C

Lihat lebih lanjut: simulate cpu, code simulate cpu, simulating cpu, test algorithm, set bits in c, set bits, set algorithm, programming language performance, programming language definition, programming instruction, programming definition, processing programming language, m programming language, definition of programming language, definition of programming, definition of algorithm in programming, definition of algorithm in c language, definition of algorithm in c, define programming language, define algorithm in programming, define algorithm in c, define algorithm, bit bits, algorithm test, algorithm set

Tentang Majikan:
( 1 ulasan ) ilford, United Kingdom

ID Projek: #256637

5 freelancers are bidding on average $161 for this job

fstudio

Dear sir, I am very interested in your project, Please see PMB for more details. Thanks. Best Regards.

$200 USD dalam 7 hari
(55 Ulasan)
5.6
marceln

I am familiar with the x86 architecture and instruction set. Part of your requirements are clear but some are not. We should discuss about some details once/if you decide. Regards

$250 USD dalam 25 hari
(0 Ulasan)
0.0
goldenstar

Please check my PMB. Thanks.

$100 USD dalam 5 hari
(1 Ulasan)
0.0
tiruvenganna

Hi, We are Specialists in Developing Automation/Simulation/Synchronization Tools in C/C++ and other assembly [url removed, login to view] are a growing firm in the industry in these lines. "A Customer is the most important person Lagi

$125 USD dalam 4 hari
(0 Ulasan)
0.0
Fatelight

I can help you with that work, recently i've finished my term paper with implementation of a assembly translator/debugger for i8086 CPU :). Let me know, if you are interested, how much do you have to get it finished. Lagi

$130 USD dalam 4 hari
(0 Ulasan)
0.0