Advertisement
regzarr

bvd_to_e3_conv

Nov 7th, 2019
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module bcd_to_e3_conv # (parameter k = 4) // number of digits
  2. ( input [4*k - 1 : 0] bcd,
  3.   output [4*k - 1 : 0] e3);
  4.  
  5. adder_4b conv[k - 1 : 0](
  6.     .x(bcd),
  7.     .y(4'd3),
  8.     .z(e3));
  9. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement