AHDL

Parameters Statement



The Parameters Statement allows you to declare one or more parameters that control the implementation of a parameterized megafunction or macrofunction. You can use parameters throughout a Text Design File (.tdf), for example, in If Generate Statements or when implementing macrofunctions or macrofunctions. The following example shows a Parameters Statement:

PARAMETERS
(
   FILENAME = "myfile.mif", -- optional default value follows "=" sign
   WIDTH,
   AD_WIDTH = 8, 
   NUMWORDS = 2^AD_WIDTH 
);

 

The Parameters Statement has the following characteristics:

 

Parameter Statements must conform to the following rules:

During compilation, the Compiler searches for parameter values as described in Parameter Value Search Order.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.