public void Start(IProcessorComponent component, ProcessorContext context) { m_component = component; m_context = context; component.Initialize(context); m_timer.Start(); m_semStop.WaitOne(); }
public void Start(IProcessorComponent component, ProcessorContext context) { component.Initialize(context); while (!context.IsHalted) { context.IncrementCycle(); Console.WriteLine("-------------------- Cycle {0} --------------------", context.CurrentCycle); component.Pulse(); Console.WriteLine("-------------------- End Cycle --------------------\n"); } }