Created
May 8, 2017 00:06
-
-
Save koyamalmsteen/1898b71e848b111fb097f989e65ee361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DFF2(switch, clk, led); // User can't re-define "DFF" because it is defined as Quartus II primitives. | |
input switch, clk; | |
output led; | |
reg q; | |
always @(posedge clk) begin | |
q = switch; | |
end | |
assign led = q; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment