Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Обсуждение

Positive edge trigger for LPM_COUNTER reset pin

Altera_Forum
Почетный участник II
1 635Просмотр.

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 баллов
1 Ответить
Altera_Forum
Почетный участник II
928Просмотр.

 

--- 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)
Ответить