Shyam Joe
Junior Member level 3
- Joined
- Aug 21, 2013
- Messages
- 28
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 322
this is my coding
i got this error..
=========================================================================
WARNING:HDLCompilers:261 - "fpunit.v" line 23 Connection to output port 'v' does not match port size
ERROR:HDLCompilers:246 - "fpunit.v" line 47 Reference to module 'notb' is not a legal net lvalue
ERROR:HDLCompilers:102 - "fpunit.v" line 47 Connection to output port 'y' must be a net lvalue
WARNING:HDLCompilers:259 - "fpunit.v" line 56 Connection to input port 'a' does not match port size
WARNING:HDLCompilers:259 - "fpunit.v" line 62 Connection to input port 'a' does not match port size
plz help to rectify it
Code:
module fpunit(p,co,clk,a,b);
input [255:0] p;
input co;
input clk;
inout [255:0] a,b;
wire c1,c2,c3,c4;
wire [255:0] t1,t2,u,s1,s2,s3,s4,s5,s6;
wire [256:0] v1,w1,v2,w2;
parallelreg a1(
.din (256'b0),
.clk (clk),
.rst (1'b1),
.dout (s1)
);
parallelreg a2(
.din (256'b0),
.clk (clk),
.rst (1'b1),
.dout (s2)
);
flp a4(
.u (u),
.v (v1)
);
notb a5(
.a (s2),
.y (s3)
);
muxb a6(
.a (s1),
.b (s3),
.s (co),
.y (s4)
);
bitadd a7(
.a (s1),
.b (s4),
.cin (co),
.c (v2)
);
notg a8(
.a (co),
.b (c3)
);
notb a9(
.a (p),
.y (a5)
);
muxb a10(
.a (p),
.b (s5),
.s (c3),
.y (s6)
);
bitadd a12(
.a (v1),
.b (s6),
.cin (1'b1),
.c (w1)
);
bitadd a13(
.a (v2),
.b (s6),
.cin (c3),
.c (w2)
);
org a14(
.a (w1[256]),
.b (v1[256]),
.y (c1)
);
org a15(
.a (w2[256]),
.b (v2[256]),
.y (c4)
);
muxg a16(
.a (v2[256]),
.b (c4),
.s (c3),
.y (c2)
);
muxb a17(
.a (w1[255:0]),
.b (v1[255:0]),
.s (c1),
.y (t1)
);
muxb a18(
.a (w2[255:0]),
.b (v2[255:0]),
.s (c2),
.y (t2)
);
parallelreg a21(
.din (a),
.clk (clk),
.rst (1'b0),
.dout (s1)
);
parallelreg a22(
.din (b),
.clk (clk),
.rst (1'b0),
.dout (s2)
);
generate
genvar i;
for(i=255;i>=0;i=i-1)
begin: ABC
muxb a3(
.a (s1),
.b (s2),
.s (b[i]),
.y (u)
);
muxb a19(
.a (t1),
.b (t2),
.s (b[i]),
.y (a)
);
muxb a20(
.a (t2),
.b (t1),
.s (b[i]),
.y (b)
);
end
endgenerate
endmodule
=========================================================================
WARNING:HDLCompilers:261 - "fpunit.v" line 23 Connection to output port 'v' does not match port size
ERROR:HDLCompilers:246 - "fpunit.v" line 47 Reference to module 'notb' is not a legal net lvalue
ERROR:HDLCompilers:102 - "fpunit.v" line 47 Connection to output port 'y' must be a net lvalue
WARNING:HDLCompilers:259 - "fpunit.v" line 56 Connection to input port 'a' does not match port size
WARNING:HDLCompilers:259 - "fpunit.v" line 62 Connection to input port 'a' does not match port size
plz help to rectify it