Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好我关于cmd_ctrl有一处语法看不懂 #6

Open
lv2dog opened this issue Apr 9, 2023 · 1 comment
Open

你好我关于cmd_ctrl有一处语法看不懂 #6

lv2dog opened this issue Apr 9, 2023 · 1 comment

Comments

@lv2dog
Copy link

lv2dog commented Apr 9, 2023

94行 if(~busy) begin
if(start) busy <= '1;
。。。
end

我看了整个代码发现busy初值为0 唯一一个赋值为1的就在满足~busy时才执行
这样busy会不会没有变化导致触发不了呢

@ThinkCodeStudio
Copy link

没有问题, busy为"0", ~busy取反为 "1" if(~busy)是一直触发的, 直到 start 收到一个信号, busy赋值 "1", 跳出if(~busy)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants