1

Near "(": syntax error, unexpected '(', expecting ')'.

I have no idea why I got errors.

//P[0]------------------------------------------ 
//Y[0], A[0], B[0]  
    and32bit and_inst0(.Y(s0), .A(MCND), .B(32{MPLR[1]}));
    and32bit and_inst1(.Y({s1,LO[0]}), .A(MCND), .B(32{MPLR[0]}));
//(Y[0], w[0], A[0], B[0], CI)
    rc_add_32 fa0(.Y({s2,LO[1]}), .CO({s1,co}), .A(s0), .B({s1, LO[0]}), .CI(1'b0));

1 Answer 1

2

You have an error in replication operator, i.e. 32{MPLR[1]}. The correct syntax for this operator looks like following:

{n{m}} //Replicate value m, n times

As you can see, there are two {} brackets needed. In your code it would be {32{MPLR[1]}} and {32{MPLR[0]}}.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.