Altera_Forum
Honored Contributor
12 years agoWhat is mean by output port has no driver???
Hi,
I'm currently a final year student. Could anyone please help me to solve this problem. When i key in the verilog code, there are somes warning say that my output port has no driver. Can I know what is the meaning? Here is my code.# ############################################################################################################ module FIR_interface(reset,clk,chipselect,writedata,readdata,x,selA,ld,Q); input reset,clk,chipselect; input [15:0]writedata,Q; output [15:0]readdata; output [7:0]x; output ld; output [2:0]selA; reg [7:0]x; reg [2:0]selA; reg ld; reg [15:0]readdata; reg [3:0] c; always @(posedge clk) begin if (reset==1) readdata <=16'd0; else if(chipselect) begin for(c=0;c<<4'd10;c=c+1) begin case (c) (0|2|4|6|8) : begin x <= writedata[7:0]; selA <= writedata[10:8]; ld <= writedata[15]; end (1|3|5|7|9) : readdata[15:0] <= Q; endcase end end end endmodule # ############################################################################################################ Thanks