// Include counter interface. #include "counter.h" int main() { // Simulation cycle counter. int i; // Initialize the counter system. counter_init(); // Set the reset input to 1. Held high for all of simulation. counter.reset = 1; // Main simulation loop. Runs 2000 iterations. for (i = 2000; i > 0; i--) counter_cycle(); return 0; }