Skip to content

Instantly share code, notes, and snippets.

@cs8425
Created April 14, 2012 11:10
Show Gist options
  • Save cs8425/2383629 to your computer and use it in GitHub Desktop.
Save cs8425/2383629 to your computer and use it in GitHub Desktop.
gate2to4
module xbox( a, o );
input [1:0]a;
output [3:0]o;
assign o = 4'b0001 << a ;
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment