data/full_repos/permissive/12139067/DE2-115/hexdisp_de2.v
data/verilator_xmls/b9841016-a95d-4b8a-9b02-2d2ded686c1d.xml
module hexdisp(inword, outword);

















   


   parameter HEX_DIGITS = 8;
   parameter SEGS_PER_DIGIT = 7;
   
   input [(HEX_DIGITS * 4 - 1):0] inword;

   output [(HEX_DIGITS * SEGS_PER_DIGIT - 1):0] outword;

   generate
      genvar 			   i;
      for (i = 0; i < HEX_DIGITS; i = i + 1)
	begin: for_digits
	   hexdigit7seg H(.nibble(inword[(4*i + 3):(4*i)]), .sseg(outword[(SEGS_PER_DIGIT*i + SEGS_PER_DIGIT - 1):(SEGS_PER_DIGIT*i)]));
	end
   endgenerate
   
endmodule
module hexdisp(inword, outword);


















   


   parameter HEX_DIGITS = 8;
   parameter SEGS_PER_DIGIT = 7;
   
   input [(HEX_DIGITS * 4 - 1):0] inword;

   output [(HEX_DIGITS * SEGS_PER_DIGIT - 1):0] outword;

   generate
      genvar 			   i;
      for (i = 0; i < HEX_DIGITS; i = i + 1)
	begin: for_digits
	   hexdigit7seg H(.nibble(inword[(4*i + 3):(4*i)]), .sseg(outword[(SEGS_PER_DIGIT*i + SEGS_PER_DIGIT - 1):(SEGS_PER_DIGIT*i)]));
	end
   endgenerate
   
endmodule