Skip to content

Instantly share code, notes, and snippets.

@SolraBizna
Last active November 10, 2018 07:13
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 SolraBizna/a07561efcd9d6a95322263f543c51581 to your computer and use it in GitHub Desktop.
Save SolraBizna/a07561efcd9d6a95322263f543c51581 to your computer and use it in GitHub Desktop.
module shifty(output debug_data, input debug_clock, input debug_strobe);
reg[15:0] shift;
assign debug_data = shift[15];
always @(posedge debug_clock) begin
if(debug_strobe) shift <= 16'h BEEF;
else shift <= {shift[14:0], 1'b1};
end
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment