edge_detector
Edge detector
Parameters
| WIDTH | u32 | Data width |
|---|---|---|
| INITIAL_VALUE | bit<WIDTH> | Initial value of internal FF |
Ports
| i_clk | input | clock | Clock |
|---|---|---|---|
| i_rst | input | reset | Reset |
| i_clear | input | logic | Clear |
| i_data | input | logic<WIDTH> | Data |
| o_edge | output | logic<WIDTH> | Both edges |
| o_posedge | output | logic<WIDTH> | Positive edge |
| o_negedge | output | logic<WIDTH> | Negative edge |