Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20792 Discussions

creating delays for external inputs

Altera_Forum
Honored Contributor II
1,294 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
267 Views

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
0 Kudos
Reply