Simple Test Project which counts the width of an input square wave returning the time high, time low, and period.
This project works by counting the time high, time low, and period of the input signal. The design can be tested by feeding in a PWM signal and reading how the output changes.
No external hardware is required for this proejct ot function.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | freq_in | time_hi_lo_per[0] | uart_tx |
1 | out_sel[0] | time_hi_lo_per[1] | uart_rx |
2 | out_sel[1] | time_hi_lo_per[2] | uart_tx_ready |
3 | out_sel[2] | time_hi_lo_per[3] | uart_tx_valid |
4 | out_sel[3] | time_hi_lo_per[4] | uart_rx_valid |
5 | time_hi_lo_per[5] | uart_rx_ready | |
6 | time_hi_lo_per[6] | ||
7 | time_hi_lo_per[7] |