-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Feature] always_*
blocks inside interface
#947
Labels
lang
Language design
Comments
AssignDeclaration should also be supported. |
I have no experience of these usage. Could you explain actual use case? |
For example, interface foo_if;
logic ready;
logic valid;
logic [7:0] data;
logic ack;
always_comb ack = ready && valid;
modport master (
input ready,
output valid,
output data,
input ack
);
modport slave (
output ready,
input valid,
input data,
input ack
);
endinterface And it can be used like below. always_ff @(posedge i_clk) begin
if (foo_if.ack) begin
data <= foo_if.data;
end
end I think this feature can help to increase readability and maintainability. |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SV interface can have
always_*
blocks.Veryl should also support this feature.
refs: #908
The text was updated successfully, but these errors were encountered: