两个按钮来加减同个变量的问题!到底错在哪?
时间:10-02
整理:3721RD
点击:
无知新人求问题出在那?
- module x1121_chip( U, d ,Code_A,RESET);
- input U, d;
- input RESET;
- output [1:4]Code_A;
- reg [1:4]A;
- always@(posedge U,posedge d, posedge RESET ) // the block of A
- begin //the number will be up_overflow and auto become 0;
- if(RESET)
- A=8;
- else if(U)
- A=A+1;
- else
- A=A-1;
- end
- assign Code_A=A;
- endmodule
受不鸟了..求大神指点..(单击图片可放大)
有哪位可以解救下的嘛
posedge U,posedge d, posedge RESET
我的天啊!还是回去看看verilog书吧,版上大牛是不屑于给你指出问题的~
你这个逻辑写得太不规范了
