Hi,
while reading the verilog I am getting this Error:
"Error: Expected '(' but found '['"
for this line:
inv_lib_cell U1[2:0] ( .A(n2[2:0]), .Y(n1[2:0]));
What tool is giving you this error? It possible it doesn't support arrays of instances, something that was added to Verilog in 1995! You can try removing each set of []'s and see if you get a different error