Skip to content

Instantly share code, notes, and snippets.

@axayjha
Last active April 8, 2019 19:44
Show Gist options
  • Save axayjha/1e3435275362bdc8b10da88358e73be3 to your computer and use it in GitHub Desktop.
Save axayjha/1e3435275362bdc8b10da88358e73be3 to your computer and use it in GitHub Desktop.
module PIPO_R1 (dout, din, ld, clk);
input [15:0] din;
input ld, clk;
output reg [15:0] dout;
always @(posedge clk)
// if load signal is on, load new data
if (ld) dout <= din;
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment