Skip to content

Instantly share code, notes, and snippets.

@uiur
Last active December 16, 2015 15:39
Show Gist options
  • Save uiur/5457885 to your computer and use it in GitHub Desktop.
Save uiur/5457885 to your computer and use it in GitHub Desktop.
module IR (i, ar, br, d);
input [15:0] i;
output [2:0] ar, br;
reg [2:0] ar, br;
output [7:0] d;
reg [7:0] d;
always @(i) begin
ar <= i[13:11];
br <= i[10:8];
d <= i[7:0];
end
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment