Computer architecture

Computer architecture is made up of two main components the Instruction Set Architecture (ISA) and the RTL model for the CPU.  In this class, we will have two software projects that will help in your understanding of the ISA and RTL model for the CPU.  The projects can be done in any software language that you chose to use.The first project is the creation of an assembler.  The assembler will be use for you to write assembly language programs that will be executed on the CPU you will design in project #2.  The CPU we will be using is based on the DLX design.What is an assembler?All computer software goes through a set of applications to create an executable file that can be used by the end user.  The first program a programmer will used is a high level language program (C, C++, etc.).  The programmer writes in a very high level abstract environment writing code such as:            For(x=0; x< 10; x++)                        A[x] = x;The high level language allows the programmer to write his program without knowing how the ISA and hardware architecture functions.  The language hides all the hardware from the programmer.  At some point, the source code needs to be transfer to a language that takes into account the ISA and hardware architecture.  The complier is the next step in the development process.The complier will take in high-level source code and translate the program into assembly language.  Assembly language is the ISA for a computer.  Assembly is the instructions that the computer can perform.  The compiler will do the following:            C language:  c = a + b;            Assembly:      load r1, a                                    Load r2,b                                    Add r3,r1,r2                                    Store r3,cThe last part of the development process is taking the assembly code created by the complier and transferring into machine code that the computer will execute.  A computer is not able to run written language such as ADD r1,r2,r3.  The computer runs a program by reading data stored in memory.  The memory does not the store the command ADD r1,r2,r3 but store machine code.  Machine code is the binary representation of an assembly language instruction.The DLX Machine codeAll the information for the DLX machine code and assembly instructions can be found in the handouts given in class. Each of the DLX instruction is 32-bits in length.  Each part of the instruction is assigned a set of bits in the instruction.  DLX break down the instructions into three different types R,I, and J.R-type instructionAn example of the R-type instruction is ADD rd, rs1, rs2The instruction is 32-bits in length:Bits 31-26 is the opcode. The opcode tell the CPU what instruction it is doingBits 25-21 is the rs1Bits 20-16 is the rs2Bits 15-11 is the rdBits 10-0 is the funct.  Funct tells what type of ALU operation is being conducted.I-type instructionEx ADDI rs1,rs2,immmBits 31-26 is the opcodeBits 25-21 is rs1Bits 20-16 is rs2Bits 15-0 is immediate.  The immediate value is the constant value to use in the instructionJ-type instructionEx J addressBits 31-26 is the opcodeBits 25-0 is the address to jump toWhat is my assignment?Getting Started (Items you have to review or learn to do for the project)In order to get started on creating your assembler you must be able to have the program understand basic syntax of a text file containing a program.  In this first part of the program you will deal with the basic functions of string processing and reading files.  The following is a list of items to complete to help you do the project.1) You will need to be able to read in arguments pass from the command line.Ex: project1.exe inputfile.txt outputfile1.txt2) You will need to be able to parse a string.Ex: You will need to use the strtok() function in the string.h file.3) You will need to convert all letters to lowercase letters.4) You will need to compare a string to a list of know words.(add, load, store, r0, r1, r2)5) You will need to have a number in text 123 be converted to a number (integer) in the C program.6) You will also need to be able to read and write files.Project #1Your assignment is to make a simple assembler for the DLX processor.  We will simplify the assembler by only using the core instructions, we will not do the floating point instructions.  The registers will be named as r0, r1, r2, … r29, r30, r31.  We will also not allow any advance naming for saving constant or memory locations the assembly source code we write will hard code any constant and memory location to read and write to.  The only advance item we will do is use a label for branching and jumping in code.Items to turn in: a report that tells how you created your program, source code, test files and a flow chart.TipsIt is common to run an assembler in a two pass structure.  The first pass goes through the source files and finds all the labels and addresses for each instruction.  You can start your program by assuming the first line of code is at memory location 0.  You will make a table of label and address.  On the second pass you will then convert the assembly instruction into machine code and fill in any labels using your table.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

What Will You Get?

We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.

Premium Quality

Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.

Experienced Writers

Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.

On-Time Delivery

Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.

24/7 Customer Support

Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.

Complete Confidentiality

Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.

Authentic Sources

We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.

Moneyback Guarantee

Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.

Order Tracking

You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.

image

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

image

Trusted Partner of 9650+ Students for Writing

From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.

Preferred Writer

Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.

Grammar Check Report

Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.

One Page Summary

You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.

Plagiarism Report

You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.

Free Features $66FREE

  • Most Qualified Writer $10FREE
  • Plagiarism Scan Report $10FREE
  • Unlimited Revisions $08FREE
  • Paper Formatting $05FREE
  • Cover Page $05FREE
  • Referencing & Bibliography $10FREE
  • Dedicated User Area $08FREE
  • 24/7 Order Tracking $05FREE
  • Periodic Email Alerts $05FREE
image

Services offered

Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.

  • On-time Delivery
  • 24/7 Order Tracking
  • Access to Authentic Sources
Academic Writing

We create perfect papers according to the guidelines.

Professional Editing

We seamlessly edit out errors from your papers.

Thorough Proofreading

We thoroughly read your final draft to identify errors.

image

Delegate Your Challenging Writing Tasks to Experienced Professionals

Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!

Check Out Our Sample Work

Dedication. Quality. Commitment. Punctuality

Categories
All samples
Essay (any type)
Essay (any type)
The Value of a Nursing Degree
Undergrad. (yrs 3-4)
Nursing
2
View this sample

It May Not Be Much, but It’s Honest Work!

Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.

0+

Happy Clients

0+

Words Written This Week

0+

Ongoing Orders

0%

Customer Satisfaction Rate
image

Process as Fine as Brewed Coffee

We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.

See How We Helped 9000+ Students Achieve Success

image

We Analyze Your Problem and Offer Customized Writing

We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.

  • Clear elicitation of your requirements.
  • Customized writing as per your needs.

We Mirror Your Guidelines to Deliver Quality Services

We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.

  • Proactive analysis of your writing.
  • Active communication to understand requirements.
image
image

We Handle Your Writing Tasks to Ensure Excellent Grades

We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.

  • Thorough research and analysis for every order.
  • Deliverance of reliable writing service to improve your grades.
Place an Order Start Chat Now
image

Order your essay today and save 30% with the discount code ESSAYHELP