regzarr

dec_4s

Nov 7th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module dec_4s(
  2.   input [3:0]s,
  3.   input we,
  4.   output [15:0]o
  5.   );
  6.  
  7.   assign o = we ? (16'd1 << s) : 16'd0;
  8.  
  9. endmodule
Add Comment
Please, Sign In to add comment