1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
This commit is contained in:
jand 2003-05-16 08:33:46 +00:00
parent 28278e8d35
commit 6c0d327274

View File

@ -7,7 +7,7 @@ module bin2gray(B, G);
integer i;
wire [width:0] extB;
assign extB = {1'b0, B};
assign extB = {1'b0, B}; // zero-extend input
always @(extB) begin
for (i=0; i < width; i=i+1)