I keep getting this error at the bottom of the window that says “ Number of argu
ID: 2290933 • Letter: I
Question
I keep getting this error at the bottom of the window that says “ Number of arguments (97) doesn’t match .subckt definition for xor2 (need multiple of 3)” How do I go about in fixing this error? JSim 2.0.28 ALUShifter Comparison Boolean Adder nominal.jsim lab3shifter jsim lab3compare.jsim * circuit for Lab#3 .include "nominal.jsim" include stdce1().im include "lab3adder.jsim s component of FA subckt comps abcs xg1 a b d xor2 xg2 dc s xor2 .ends co component of FA subckt compco a b cin co xgo a b u nand2 xgl a cin w nand2 xg2 b cin y nand2 xg3 u w y co nand3 .ends Full adder .subckt FA a b cin s co xgo a b cin s comps xgi a b cin co compco ends *32 bit nor gate subckt nor32 al31:0] z Xgo at7:01 at15:81 a(23:161 at 31:241 y17:01 nor 4 xg2 yt91 y[81 z nor? .ends 32 bit negator .subckt neg32 al 31:01 alufno z(31:01 xgla [31:0] alutno#32 z13110] xorz .ends 32 bit adder .subckt adder32 ALUPNI0] A31:0] BI31:01 SI31:0) zvn negation of b xnegate B131:01 ALUFNI0] bxI 31:01 neg32 adder comp Number of arguments (97) doesn't match.subckt definition for xor2 (need multiple of 3)Explanation / Answer
There should be 2 inputs and 1 output for xor2 . So, you should be having 3 arguments of one bit. As you are trying to use 32 bit xor you should give other input also of 32bit. so, that it should give out 32 bit output. so, alufno should be of 32 bit. i.e, [31:0].