vt52-fpga  1.0.0 Initial
vt52-fpga is a serial terminal implemented on a FPGA
edge_detect.v
Go to the documentation of this file.
2  input clk,
3  input in,
4  output out
5 );
6  reg in_q;
7 
8  always @(posedge clk) begin
9  in_q <= in;
10  end
11 
12  assign out = !in_q && in;
13 endmodule
14 
16  input clk,
17  input in,
18  output out
19 );
20  reg in_q;
21 
22  always @(posedge clk) begin
23  in_q <= in;
24  end
25 
26  assign out = in_q && !in;
27 endmodule
module falling_edge_detector(input clk, input in, output out)
Definition: edge_detect.v:15
module rising_edge_detector(input clk, input in, output out)
Definition: edge_detect.v:1
always(posedge clk)
Definition: uart_rx.v:86