Skip to content

Instantly share code, notes, and snippets.

@koyamalmsteen
Created May 8, 2017 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koyamalmsteen/a460f6d1c4b9b717a4a340df25e42fb7 to your computer and use it in GitHub Desktop.
Save koyamalmsteen/a460f6d1c4b9b717a4a340df25e42fb7 to your computer and use it in GitHub Desktop.
module TFF2(switch, led);
input switch;
output led;
reg q;
always @(posedge switch) begin
q = ~q;
end
assign led = q;
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment