| 回lz: 这个问题很麻烦,如果只适用于仿真的行为级模型,这很简单,用trans门八两个双向接在一起就可以了。
 如果你要变现的话就麻烦了。
 既然是个双向信号,你必须译出它的方向控制信号。
 写个例子吧
 // PAD1,in1,out1,oe1  : the first pad
 // PAD2,in2,out2,oe2  : the second pad
 // sig_control : the direction control of signal,1: send to CPLD(PA1),
 //                                                                    0: receive from CPLD(PAD1)
 assign oe1 = ~sig_control ;
 assign out1 = in2 ;
 assign oe2 = sig_control ;
 assign out2 = in1 ;
 |