Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

creating 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 i create a delay of 100ms on this .bdf file.

It has to be in symbol form.

Thanks in anticipation

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You 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