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

using tick define for delay doesn't work #2232

Open
vanjoe opened this issue Aug 7, 2024 · 0 comments
Open

using tick define for delay doesn't work #2232

vanjoe opened this issue Aug 7, 2024 · 0 comments
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).

Comments

@vanjoe
Copy link

vanjoe commented Aug 7, 2024

Describe the bug

When I use a `define to specify a delay the parser says there is a syntax error.

To Reproduce
Run the following code through verible-verilog-syntax I

`ifndef ASSIGN_DELAY
 `define ASSIGN_DELAY #0
`endif
module test
#()
  (
   input a,clk,
   output b);
  reg bb;



  always_ff @(posedge clk) begin
    bb <= `ASSIGN_DELAY a;
  end
  assign b = bb;
endmodule

Actual behavior:

The command reports

test.v:14:25: syntax error at token "a"

Expected behavior

I expect no output indicating success.

@vanjoe vanjoe added the rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017). label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).
Projects
None yet
Development

No branches or pull requests

1 participant