请教,我用VerilogHDL写了个小的程序,没有几行,但是错误不少.现将程序与错误信息贴出来请高人指点.谢先! /****************************************************************************** VerilogHDL语言部分 ******************************************************************************/ module Bus_Expand(TRIG,SELECT,SAMPIN,SAMPOUT,DATA); input TRIG; //Signal that comes as trig from DSP input SELECT; //Select the data direction,1=SAMPIN 0=SAMPOUT input [15:0] SAMPIN; //Declaration of the Sample in signal,16 Channel output [15:0] SAMPOUT; //Declaration of the Sample out signal,16 Channel inout [15:0] DATA; //Channels for data exchange between DSP&CPLD reg [15:0] DATA; reg [15:0] SAMPOUT; reg [15:0] TEMP; always @(TRIG or SELECT) case({TRIG, SELECT}) 10:begin TEMP <=SAMPIN;DATA <=TEMP;end 11:begin TEMP <=DATA;SAMPOUT <=TEMP;end default:begin DATA <=16'bz;SAMPOUT <=16'bz;TEMP <=16'bz;end endcase endmodule
/****************************************************************************** 管脚分配部分 ******************************************************************************/在 Assignment Editor中,我按照硬件电路图将相应输入输出管脚分配给了DATA,SAMPIN,SAMPOUT,TRIG,SELECT等管脚,但是我不知道怎么将全局时钟,还有JTAG管脚分配给CPLD,因为在module中不需用到这些管脚,在编译时出现如下的错误信息:
/****************************************************************************** 编译错误信息 ******************************************************************************/ Warning (10199): Verilog HDL Case Statement warning at Bus_Expand.v(13): case item expression is ignored because it never applies
Warning (10199): Verilog HDL Case Statement warning at Bus_Expand.v(14): case item expression is ignored because it never applies
Warning: Design contains 18 input pin(s) that do not drive logic Warning: No output dependent on input pin "TRIG" Warning: No output dependent on input pin "SELECT" Warning: No output dependent on input pin "SAMPIN[0]" Warning: No output dependent on input pin "SAMPIN[1]" Warning: No output dependent on input pin "SAMPIN[2]" Warning: No output dependent on input pin "SAMPIN[3]" Warning: No output dependent on input pin "SAMPIN[4]" Warning: No output dependent on input pin "SAMPIN[5]" Warning: No output dependent on input pin "SAMPIN[6]" Warning: No output dependent on input pin "SAMPIN[7]" Warning: No output dependent on input pin "SAMPIN[8]" Warning: No output dependent on input pin "SAMPIN[9]" Warning: No output dependent on input pin "SAMPIN[10]" Warning: No output dependent on input pin "SAMPIN[11]" Warning: No output dependent on input pin "SAMPIN[12]" Warning: No output dependent on input pin "SAMPIN[13]" Warning: No output dependent on input pin "SAMPIN[14]" Warning: No output dependent on input pin "SAMPIN[15]"
|