Forum Discussion
Altera_Forum
Honored Contributor
12 years agocreating delays for external inputs
I have a .bdf file [cyclone II], with gated logic symbols. There is an external switch which when switched ON requires a delay of 100ms before it reaches some other logic in the circuit. how do ...
Altera_Forum
Honored Contributor
12 years agoYou can use the 'lpm_counter' module - under megafunctions -> arithmetic - to count 100ms worth of clock cycles before triggering the logic you refer to. Your counter will start with switch on. You then look for a count value (dependant on your clock frequency) to indicate when 100ms has elapsed. A little logic on the output can then trigger the next block of logic.
Regards, Alex