I have been working on a CPLD project to run a state machine that will control a bunch of solenoids - I have mostly finished the hardware but now I'm moving onto the state machine. I can make the state machine conintually run, but what I really want is to implement a latching start/stop circuit that uses momentary pushbuttons... I want to be able to press start and have the state machine run (but I don't want to have to keep the start button pressed). I then want to press the stop button and make the state machine pause (again, i don't want to keep the stop button pressed). And finally, if I start the state machine but don't press the stop button, then I want the state machine to run to the last state and automatically stop. Thinking to years gone by, I kind of remember something about making a k-map for the start and stop inputs and building some s-r flip flop truth tables, but I can't remember and I also can't find exactly what I need on the web. I would be very grateful is someone could give me pointers on the method - I know I'm almost there but it's years since I was taught this stuff and I simply can't remember
Regards, MR.