- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page