ashwini jayaraman
Member level 2
- Joined
- Jan 17, 2013
- Messages
- 49
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,601
I am getting the following error continuously
Primitive output connection must be a scalar net.
please check the code below.what should I change in it.I should do only in dataflow modeling.
module alu_modify_tri(Y,A,B,E);
output [7:0] Y;
wire [7:0] F1,F2,F3,F4,F5,F6,F7,F8;
input [7:0] A,B;
input E;
tri [7:0] Y;
assign F1=8'h0;
assign F2=A&B;
assign F3=A|B;
assign F4=A^B;
assign F5=A+B;
assign F6=A-B;
assign F7= ~A;
assign F8=8'hFF;
bufif0 #10(Y,F1,E);
bufif0 #20(Y,F2,E);
bufif0 #30(Y,F3,E);
bufif0 #40(Y,F4,E);
bufif1 #50(Y,F5,E);
bufif1 #60(Y,F6,E);
bufif1 #70(Y,F7,E);
bufif1 #80(Y,F8,E);
endmodule
Primitive output connection must be a scalar net.
please check the code below.what should I change in it.I should do only in dataflow modeling.
module alu_modify_tri(Y,A,B,E);
output [7:0] Y;
wire [7:0] F1,F2,F3,F4,F5,F6,F7,F8;
input [7:0] A,B;
input E;
tri [7:0] Y;
assign F1=8'h0;
assign F2=A&B;
assign F3=A|B;
assign F4=A^B;
assign F5=A+B;
assign F6=A-B;
assign F7= ~A;
assign F8=8'hFF;
bufif0 #10(Y,F1,E);
bufif0 #20(Y,F2,E);
bufif0 #30(Y,F3,E);
bufif0 #40(Y,F4,E);
bufif1 #50(Y,F5,E);
bufif1 #60(Y,F6,E);
bufif1 #70(Y,F7,E);
bufif1 #80(Y,F8,E);
endmodule