mirror of https://github.com/YosysHQ/yosys.git
Detect illegal port declaration, e.g input/output/inout keyword must be the first.
This commit is contained in:
parent
270c1814b5
commit
8b7580b0a1
|
@ -376,9 +376,10 @@ wire_type:
|
||||||
};
|
};
|
||||||
|
|
||||||
wire_type_token_list:
|
wire_type_token_list:
|
||||||
wire_type_token | wire_type_token_list wire_type_token;
|
wire_type_token | wire_type_token_list wire_type_token |
|
||||||
|
wire_type_token_io ;
|
||||||
|
|
||||||
wire_type_token:
|
wire_type_token_io:
|
||||||
TOK_INPUT {
|
TOK_INPUT {
|
||||||
astbuf3->is_input = true;
|
astbuf3->is_input = true;
|
||||||
} |
|
} |
|
||||||
|
@ -388,7 +389,9 @@ wire_type_token:
|
||||||
TOK_INOUT {
|
TOK_INOUT {
|
||||||
astbuf3->is_input = true;
|
astbuf3->is_input = true;
|
||||||
astbuf3->is_output = true;
|
astbuf3->is_output = true;
|
||||||
} |
|
};
|
||||||
|
|
||||||
|
wire_type_token:
|
||||||
TOK_WIRE {
|
TOK_WIRE {
|
||||||
} |
|
} |
|
||||||
TOK_REG {
|
TOK_REG {
|
||||||
|
|
Loading…
Reference in New Issue