ENTITY - Architecture Entity Description

Synopsis

The ENTITY construct enables the creation of a basic type of the architecture.

Syntax

ENTITY entity_type_name library_name (
EXTENDS ( abstract_type )
DESCRIPTION ("description")
INCLUDE ("compilation options")
STATES (state1, ...)

PARAMS ( modifier reference_parameter, ... )
PORTS ( port, ... )
)

Example

ENTITY Cache (
DESCRIPTION ( "A generic parameterized cache" )
PARAMS (
RARRAY ( Memory, cache_contents )
RINT ( access_time, 2 )
RENUM ( Associativity, cache_assoc, 0 )
read_only RINT ( hit, 0 )
)
PORTS (
PORT ( to_cpu, LinkData, SOURCE )
PORT ( from_cpu, LinkData, DESTINATION )
PORT ( to_main_mem, LinkData, SOURCE )
PORT ( from_main_mem, LinkData, DESTINATION )
)
)
STRUCTURE (
AENTITY Cache CACHE1 (
DESCRIPTION ("Level 1 cache")
ATTRIB(RPARAM(clockName,CACHE_CLOCK)
)
)