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.
1
module
rising_edge_detector
(
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
15
module
falling_edge_detector
(
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
falling_edge_detector
module falling_edge_detector(input clk, input in, output out)
Definition:
edge_detect.v:15
rising_edge_detector
module rising_edge_detector(input clk, input in, output out)
Definition:
edge_detect.v:1
always
always(posedge clk)
Definition:
uart_rx.v:86
usbserial
usb
edge_detect.v
Generated on Fri Jan 27 2023 16:39:57 for vt52-fpga by
1.9.1