ECE 353 Fall 2009 Lab C Pipeline Simulator. October 22, 2009. Aims of Lab C. Reinforce your understanding of pipelining Provide additional experience in C programming Managing queues Introduce you to time-driven simulation. Outline of Lab.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
October 22, 2009
fscanf(fp, “%s %d %d %d”, opcode, &field2, &field3,
where fp is a file pointer, opcode is a character array,
and field2, field3, and field4 are integers
Show a TA the following items:
enum OPCODE opcode; // What instruction is being run
enum REGISTERS field2; // Register to be written to
enum REGISTERS field3; // First register being referenced
enum REGISTERS field4; // Second register being referenced
enum STAGE stage; // Current stage of execution of this instruction
int resolved = 0; // Flag for “waiting for dependency”
struct instruction * next; // Pointer to the next struct in queue
struct instruction * prev; // Pointer to previous struct in queue