AHDL

Example of Using the Name Substitution Feature



OPTIONS NAME_SUBSTITUTION = ON;

PARAMETERS
(
   NAME = "ex1"
);
 
FUNCTION @NAME(a, b) RETURNS (c);

SUBDESIGN example
(
   a, b, c, d : INPUT;
   oa, ob: OUTPUT;
)
VARIABLE
   f : @NAME;
BEGIN
   oa = @NAME(a, b);
 
   f.a = c;
   f.b = d;
   ob = f.c;
END;


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.