Programming Introduction to Digital Design Question
Assignment 4 Directions
Option 1:
Please write a short paper based on Module 4 CPU (PIPELINED). Anything in the module can be a topic.
Write a summary paper as follows:
Prepare a Word document with a minimum of 3 pages (not including title and references pages) and a minimum of 3 solid references.
Be sure to use APA Guidelines for references.
Make sure to save the file in the following format: FirstName_LastName_Paper.doc(x)
Upload the completed file as an attachment to this assignment.
Option 2:
Create an algorithm to reverse the digits in each number for a series of 3-5 digit numbers using at least one function called by the main program.
Implement the program in a high level language like C or Java. Use the code in the comments of your program to show it was written in a high level language first.
Implement the program in MIPSzy Assembly language.
If you write that MIPSzy program in a text editor, you should then paste it into the simulator box in 11.1.2. You can run the simulation there to test the code.
The input value values should be entered in the input box. Enter the numbers to test separated by spaces. Do not worry about whether they move to another line or not.
Input works by placing the value to be read in in memory location 8196 and a 1 in memory location 8192. If there is no more input a 0 will be placed in memory location 8192.
Results should be written to memory location 8200 which will cause them to be written to the output window.
Include a comment at the top of the program with your name and Panther id.
Export the file by clicking the “More Options” button and then Export on the right side. That will paste your program into a small box on the right. Copy and paste that into a text document. Call that document FirstnameLastnameA4.txt.
Zip up FirstnameLastnameA4.txt into a zip file called FirstnameLastnameA4.zip. Do not use any other kind of zip file formats.
A sample program to show how to manage input and output is as follows. Type a single digit integer number in the Input box and run the program.
addi $t0, $zero, 8200 # Output loc
BegLoop:
addi $t6, $zero, 8192 # Input ready?
lw $t5, 0($t6)
beq $t5, $zero, NoInput
addi $t6, $zero, 8196 # Input loc
lw $t1, 0($t6)
addi $t2, $zero, 1
sw $t2, 0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2, 0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2, 0($t0) # Output to screen
mul $t2, $t2, $t1 # Times Input
sw $t2, 0($t0) # Output to screen
j BegLoop
NoInput:Rubric
Assignment 4 Rubric
Assignment 4 Rubric Criteria Ratings Pts This criterion is linked to a Learning OutcomeSubmission as expected.A zip file was submitted FirstnameLastnameA4.zip with the required file included: FirstnameLastnameA4.txt
1 pts Excellent
Submission met all requirements.
0.8 pts Good
Submission had a minor error.
0.6 pts Needs Work
Submission included with major errors.
0 pts Not submitted
Not submitted or totally wrong submission.
1 pts This criterion is linked to a Learning OutcomeComments include high level language code.
1 pts Excellent
Submission met all requirements.
0.8 pts Good
Submission included with minor errors.
0.6 pts Needs work
Submission included with major errors.
0 pts Not submitted
Not submitted or not included.
1 pts This criterion is linked to a Learning OutcomeName and Panther ID included in comment at top
1 pts Excellent
Submission met all requirements.
0.8 pts Good
Submission included with minor errors.
0.6 pts Needs work
Submission included with major errors.
0 pts No Marks
Not submitted or not included.
1 pts This criterion is linked to a Learning OutcomeMIPSzy program submitted as requested.The code submitted for the MIPSzy language is submitted as an export as specified.
1 pts Excellent
Submission met all requirements.
0.8 pts Good
Submission included with minor errors.
0.6 pts Needs work
Submission included with major errors.
0 pts No Marks
Not submitted or not included.
1 pts This criterion is linked to a Learning OutcomeAt least one function was included.A function was included in the submission and called by the main code block.
3 pts Excellent
Submission met all requirements.
2.25 pts Good
Submission had a minor error.
1.5 pts Needs Work
Submission included with major errors.
0 pts Not submitted
Not included in the submission or not submitted.
3 pts This criterion is linked to a Learning OutcomeProgram worked as specified.Program reversed the digits properly on multiple numbers entered in the input area.
5 pts Excellent
Submission met all requirements.
4.16 pts Good
Program had a minor error
3.34 pts Needs Work
Program had major errors.
0 pts Not submitted
Not submitted, or did not work at all.