p4lang / p4c-bm

Generates the JSON configuration for the behavioral-model (bmv2), as well as the C/C++ PD code
Apache License 2.0
24 stars 29 forks source link

Check for direct registers and fail #89

Closed antoninbas closed 7 years ago

antoninbas commented 7 years ago

Add a check for the presence of direct registers and exit compilation with an error message if there is one. Note that the register_write and register_read primitives are not defined for direct registers anyway, as the index parameter is mandatory.