We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
module dff( input clk, input res_n, input d, output reg q ); wire test; always@(posedge clk or negedge res_n) begin if(!res_n) q <= 0; else if (res_high) begin q <= 1; test <= 1'b1; //wire 赋值不会报错 end else q <= d; end assign q = res_n; //对reg assign 不会报错 assign test3 = q; //对未声明的test3 可以随意使用 endmodule
The text was updated successfully, but these errors were encountered:
Windows11,其余语法检查正常生效
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: