Open MaoJianwei opened 7 years ago
I recommend opening an issue with the p4c compiler once again. The backend should probably reject your program as bmv2 currently does not support compound types in registers. The backend could also generate JSON that goes around this limitation, using masking and shifting when doing reads / writes. That being said, I will leave this issue open in case there is a desire to add native support for this in bmv2 in the future.
ok, desire to see proceeding, thank you
When I declare neighber as a Struct or a header, it will fail while running simple_switch, as follow:
Declare is:
Read and write register in Ingress control, by:
If I declare register<bit<20>>(10) maoReg;, and modify Read and Write call respectively, it will work well.
The architecture model, has:
In my understanding, T can be anything including typical data-type, structure, header, etc. Is that right?