Functions and procedures should not be used in synthesis files. They should only be used in simulation files.