CS 2734 Computer Organization II


Laboratory 9 [Nov 1, 3] Simulating a Register File and ALU

In this laboratory you will be writing code to simulate the register file and the ALU shown in PH Figure 5.6. Each will be implemented as a function in C. (You may also use C++ or Java if you wish.)

In each case there should be a header file with the function prototype (and any related function prototypes) and a souce file with the code to implement the function. The header files are given below and can be used as is. You need to supply code for simple driver programs to test each component separately.


Revision Date: 10/26/99