Add the CPU controller.
This commit is contained in:
9
edge_detector.sv
Normal file
9
edge_detector.sv
Normal file
@@ -0,0 +1,9 @@
|
||||
module edge_detector(input logic in, clk,
|
||||
output logic out);
|
||||
logic old_in;
|
||||
|
||||
always_ff@(posedge clk)
|
||||
old_in <= in;
|
||||
|
||||
assign out = in & ~old_in;
|
||||
endmodule
|
||||
Reference in New Issue
Block a user