Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

Positive edge trigger for LPM_COUNTER reset pin

Altera_Forum
Honored Contributor II
1,634 Views

Hi, 

 

I want to reset the LPM_COUNTER on positive edge of an input pin. 

For example when the input signal rises to logic ‘1’, I want the counter to reset to zero and start counting, and don’t stuck at reset state while the input signal is still logic ’1’. 

I'm not sure if i should design an custom counter or i can use the LPM_COUNTER with some additional logic combination attached to the reset input. 

I'm kind of new in this area. 

 

Please give me some suggestions.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
927 Views

 

--- Quote Start ---  

Hi, 

 

I want to reset the LPM_COUNTER on positive edge of an input pin. 

For example when the input signal rises to logic ‘1’, I want the counter to reset to zero and start counting, and don’t stuck at reset state while the input signal is still logic ’1’. 

I'm not sure if i should design an custom counter or i can use the LPM_COUNTER with some additional logic combination attached to the reset input. 

I'm kind of new in this area. 

 

Please give me some suggestions. 

--- Quote End ---  

 

 

depends on what you mean by edge 

 

try this: 

 

clocked process 

reset_d <= reset; 

... 

 

reset_final <= reset and not reset_d; 

would give you one pulse of reset (one clock period)
0 Kudos
Reply