Entity: oh_stretcher

Diagram

CYCLES clk in nreset out

Description

#############################################################################

Purpose: Stretches a pulse by N+1 clock cycles

Adds one cycle latency

#############################################################################

Author: Andreas Olofsson

License: MIT (see LICENSE file in OH! repository)

#############################################################################

Generics

Generic name Type Value Description
CYCLES 5 "wakeup" cycles

Ports

Port name Direction Type Description
clk input clock
in input input pulse
nreset input async active low reset
out output stretched output pulse

Signals

Name Type Description
valid reg [CYCLES-1:0]

Processes

Type: always