

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A lab handout from the university of florida, department of electrical & computer engineering, for a course on assembly programming and hand assembly using the g-cpu. The lab involves simulating existing assembly code and writing new assembly code for the g-cpu. Students are required to use maxplus ii software and create sram and rom files for data and program storage, respectively. The objectives of the lab are to learn how to simulate assembly code on the g-cpu and write new assembly code for it.
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


University of Florida EEL 3701— Fall 2002 Dr. Eric M. Schwartz Department of Electrical & Computer Engineerin g Professor in ECE Page 2/2 Revision 4 3-Dec-02—7:23 PM
PART II. NEW PROGRAM CREATION (Prelab)
Note: If you wish to use variables or store values in your code, you must reference the RAM area of you memory space. RAM is located in $1000 - $1FFF. ROM is read only.
Note: When you change data in either the eprom.mif file or the sram.mif file, you must recompile the computer.gdf file.
IN-LAB REQUIREMENTS
University of Florida EEL 3701— Fall 2002 Dr. Eric M. Schwartz Department of Electrical & Computer Engineerin g Professor in ECE Page 1/2 Revision 4 3-Dec-02—7:23 PM
The objectives of this lab are to learn how to simulate existing assembly code on the G-CPU and also how to write new assembly code for the G-CPU.
MATERIALS
INTRODUCTION With the knowledge gained in earlier labs, you now have a detailed understanding of the internal structure of a simple Central Processing Unit (CPU). Instead of continuing with your previous existing hardware designs, you are now given a more complete CPU, which is denoted as the General CPU or G-CPU. In this lab you will first dissect and simulate the assembly code that is given with the G-CPU. Then in the second part of the lab you will write new assembly code for creation of a new G-CPU program. This new program will then be simulated in MaxPlusII to observe the G- CPU bus and register changes during program execution.
SPECIFICATIONS
PART I. SIMULATING EXISTING CODE (Prelab)
be as follows: Address(es), Instruction, A, B, X, Y, Z, N, and PC. The columns labeled A-PC should be filled out assuming that the instruction has been completed