COMPUTER ARCHITECTURE
Spring Semester 2001
COMPUTER ARCHITECTURE - Spring 2001 Programming Assignments
- PROG #3: HYPERCUBE SIMULATION - Simulation of a MIMD Computer System
Write an object-oriented program in C++ or Java that will simulate the routing
behavior of multiple tasks running concurrently on an n-dimensional hypercube.
Use an event-driven simulation technique, and either print out details as each
event happens, or develop some clever technique for a graphical display of the
behavior.
- For an explanation of a "hypercube network",
click here.
Highlights of this link:
- Visualizing an N-dimensional hypercube
- Node numbering for a hypercube
- Which nodes connect to node n in a hypercube?
- XOR the binary representation of n with "masks" containing a 1 in each possible bit location
- Routing algorithm using XOR
- Model your program after the example Event Driven Simulation chart
- See the detailed Program Assignment at the bottom of the
above link
- CHECK IF YOUR PROGRAM IS RUNNING CORRECTLY,
CLICK HERE FOR SAMPLE INPUT DATA!
- For a description of various network topologies, see p. 532-535 of our textbook,
Structured Computer Organization, 4th Edition