llvm / circt

Circuit IR Compilers and Tools
https://circt.org
Other
1.57k stars 277 forks source link

[Moore] Add evenOp to handle event controls. #7154

Closed hailongSun2000 closed 2 weeks ago

hailongSun2000 commented 2 weeks ago

The moore.wait_event(EventOp) is aimed at handling event control, the delay control like #1ns will be implemented at another PR. And something like @(posedge clk) a <= b + c; will be handled by Value visit(const slang::ast::AssignmentExpression &expr){...}, so there are no error tests.

Thanks for the code review in advance! :smiley: