vhdl求大神相助!\x05\x05\x05\x05\x05always @ (posedge left )\x05if(!RST_N)DATA1 <= 9'd0;\x05else\x05DATA1 <= flag 0:DATA1 + 1;\x05always @ (posedge right)\x05if(!RST_N)flag <= 0;\x05else flag = flag;
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/01 17:21:40
![vhdl求大神相助!\x05\x05\x05\x05\x05always @ (posedge left )\x05if(!RST_N)DATA1 <= 9'd0;\x05else\x05DATA1 <= flag 0:DATA1 + 1;\x05always @ (posedge right)\x05if(!RST_N)flag <= 0;\x05else flag = flag;](/uploads/image/z/12831267-3-7.jpg?t=vhdl%E6%B1%82%E5%A4%A7%E7%A5%9E%E7%9B%B8%E5%8A%A9%21%5Cx05%5Cx05%5Cx05%5Cx05%5Cx05always+%40+%28posedge+left+%29%5Cx05if%28%21RST_N%29DATA1+%26lt%3B%3D+9%26%2339%3Bd0%3B%5Cx05else%5Cx05DATA1+%26lt%3B%3D+flag+0%3ADATA1+%2B+1%3B%5Cx05always+%40+%28posedge+right%29%5Cx05if%28%21RST_N%29flag+%26lt%3B%3D+0%3B%5Cx05else+flag+%3D+flag%3B)
vhdl求大神相助!\x05\x05\x05\x05\x05always @ (posedge left )\x05if(!RST_N)DATA1 <= 9'd0;\x05else\x05DATA1 <= flag 0:DATA1 + 1;\x05always @ (posedge right)\x05if(!RST_N)flag <= 0;\x05else flag = flag;
vhdl求大神相助!
\x05\x05\x05\x05\x05
always @ (posedge left )
\x05if(!RST_N)DATA1 <= 9'd0;
\x05else
\x05DATA1 <= flag 0:DATA1 + 1;
\x05
always @ (posedge right)
\x05if(!RST_N)flag <= 0;
\x05else flag = flag;
vhdl求大神相助!\x05\x05\x05\x05\x05always @ (posedge left )\x05if(!RST_N)DATA1 <= 9'd0;\x05else\x05DATA1 <= flag 0:DATA1 + 1;\x05always @ (posedge right)\x05if(!RST_N)flag <= 0;\x05else flag = flag;
当posedge left变化时,(1)当!RST_N=’1‘则DATA1等于“000000000”,(2)当!RST_N=’0‘时,如果flag=1则将0赋予DATA1,flag=1则DATA1加1
当posedge right变化时,(1)当!RST_N=’1‘则flag赋予 0值,(2)当!RST_N=’0‘时,flag翻转(即0变1或者是1变0)