An if-generate
statement activates specific parts of the HDL source code
based on a test result, and is supported for static (non-dynamic) conditions.
For example, when a generic indicates which device family is being targeted, the
if-generate
statement tests the value of the generic against a
specific device family and activates a section of the HDL source code written
specifically for that device family.