Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

tri state output for 8bit alu

Status
Not open for further replies.

ashwini jayaraman

Member level 2
Member level 2
Joined
Jan 17, 2013
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
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
 

How do I modify this code so that it has a three-state output controlled by an enable input?Can you tell me ??
 

Last edited:
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top