Packet Switch
Simulink® and Stateflow® model of a four input, four output packet switch. The model includes variable length packet generators, FIFO managers, a scheduler, and a crossbar.
Instructions: Unzip to a new folder, change the MATLAB current directory to this folder, then open the 'packet_switch' mdl file. Open the Stateflow charts inside the FIFO managers to view the switch's operation during the simulation.
This model is described in the animated demonstration called 'Packet Switch' on this page: http://www.mathworks.com/products/dsp_comm/demos.shtml