This project implements the circular queue as outlined in SWQUE: A Mode Switching Issue Queue with Priority-Correcting Circular Queue, independently of the Scarab simulator, as part of the final project for CSE220.
To see the actual implementation of the project, see this GitHub repo.
cmake .
cmake --build .
./bin/unit_tests
This proof-of-concept's implementation was heavily influenced by the ideas given in the Circular buffer Wikipedia page; refer to that page for more information on circular buffers.