ID:12012 Port direction mismatch for entity "<name>" at port "<name>". Upper entity is expecting "<name>" pin while lower entity is using "<name>" pin.

CAUSE: You connected the specified upper entity at the specified port in a different direction than the direction of the specified lower entity pin. As a result, the Quartus Prime software cannot compile the design.

ACTION: Remove the illegal connection or connect the upper entity in the same direction as the lower entity pin.