Bryan M wrote
Can you show me how that would be written for the hdl code?
How what would be written?
You do not write truth tables in HDL, you wire together parts that implement a truth table.
Start by indicating which of the truth tables I've presented you want to implement.