wangwenjia 发表于 2011-9-4 16:51:28

关于报错 cannot test for both positive and negative edges of variable “xxxx”

always @(posedge in or negedge in)
begin
        if(!in)
            。。。。。;
        else。。。。。;
end

如上代码便会报错
cannot test for both positive and negative edges of variable “in”

可是我又要实现 上面那样的功能,要怎么写呢 ?
谢谢!
页: [1]
查看完整版本: 关于报错 cannot test for both positive and negative edges of variable “xxxx”