The hints for this assignment are fairly extensive, so
if you want to really challenge yourself, stop reading here.
We provide a detailed skeleton of the finished program,
and the underlying data structures.
We also supply the code for input/output, since this can
be a tedious and un-gratifying task.
In doing so, we hope you can concentrate your
efforts on the fun and exciting part - the event driven simulation!
Your main challenge will be
to understand the code we provide, and write the guts of the
event-driven simulation code.
The program
simulator.c
is the main program.
The Queue ADT is copied directly from the lecture notes: QUEUE.h,
and queuearray.c.
There is no need to modify either of these files.
Part 3: Boolean data type
|
Part 4: Gate and Circuit data types
|
The interface and implementation files described below are:
CIRCUIT.h,
circuit.c.
Kevin Wayne