Altera_Forum
Honored Contributor
10 years agoHow to develop a verilog model for a Peak detector with various constraints
Develop a Verilog Code for a Peak detector the following functions:
Note: A threshold value is assigned to the sample ( noise barrier)- Finds the Maximum peak from a sample of 24 bits when the pulse goes above the threshold.
- Counter stores value when pulse goes over threshold.
- If during a sample there are two or more pulses combined to one-another each peak and counter values are to be saved.
- Counter stores value when pulse goes to threshold. counter calculates pulse width.
- Each sample arrives during clock cycles when data_in =1.
- All peak and pulse width values are sent to a FIFO.