文章目录 -> 和 if-else Example Implication Operator:-> Example -> 和 if-else SystemVerilog为我们提供了两个声明条件关系的结构-implication 和if-else。 下面的代码片段显示了这两种样式: // Implication operator "->" tells that len should be // greater than 10 when mode is equal to 2 constraint c_mode { mode == 2 -> len > 10; }