Altera_Forum
Honored Contributor
15 years agoError (10170): Verilog HDL syntax error
Having trouble with my Verilog HDL file. Fairly new at this so hopefully this is simple.
Unable to compile because of this error: Error (10170): Verilog HDL syntax error at four_bit_addertb.v(11) near text "["; expecting ")" Line 11 is:four_bit_adder t1(.Cin(N_s), .A(A_s), .B(B_s), .A( C_s), .B( D_s), .A( E_s), .B( F_s), .A( G_s), .B( H_s), .S(S_s), .S(SS_s), .S(SSS_s), .S(SSSS_s), .Cout(O_s)); Now if I take out the [] brackets and just have A0, B0, A1...etc It compiles but does not simulate...I imagine since A0 doesn't refer to anything. The schematic (.bdf) file has the inputs labeled as A[0], B[0], A[1], B[1], and so on. How is this handled? I put quotes around it...no luck. The class I'm in has them labeled that way.