barefootnetworks / Open-Tofino

Other
314 stars 66 forks source link

How can I shift data in register? #25

Closed KatherineJXY closed 1 year ago

KatherineJXY commented 1 year ago

I have trouble when compiling my p4 program in tna. I want to left-shift data and write the result into the register. But I got the error information: "expression too complex for register action: reg_data = reg_data << LEFT_SHIFT;"

vgurevich commented 1 year ago

@KatherineJXY -- this repository exists so that we can publish our specifications and interfaces.

Any specific questions about Tofino hardware features, or features of its SDE or P4Studio, are best directed to Intel-specific forums created for this purpose. Please, use the following: