Add the CPU controller.

This commit is contained in:
2018-06-05 22:57:01 -07:00
parent bfe4b65788
commit 81c9baade2
3 changed files with 102 additions and 0 deletions

9
edge_detector.sv Normal file
View 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