ABSTRACT | name library_name ( |
DESCRIPTION ( "description" ) | |
INTERFACE ( SERVICE ( service_name1, param1, ...), ... ) | |
PARAMS ( reference_parameters, ...) | |
) |
ENTITYLIB (
ABSTRACT clocked (
DESCRIPTION ("two phases clock entities")
INTERFACE(
SERVICE (pre)
SERVICE (phase0)
SERVICE (phase1)
)
)
Ordinary (concrete) entities can inherit the services offered by clocked (i.e. pre, phase0 and phase1) by including in their definition the statement
EXTENDS (clocked)
In the corresponding entity.hase file these services can be invoked as shown in the following example. Note however that an entity that does this must not use a body label since this would also be inherited from the abstract entity.
The code for clocked is as follows:
$class_decls
|
clocked.hase |