Re: [Gems-users] Howto add new component to Chip


Date: Mon, 16 Jun 2008 19:47:24 -0500
From: "Mike Marty" <mike.marty@xxxxxxxxx>
Subject: Re: [Gems-users] Howto add new component to Chip
On Mon, Jun 16, 2008 at 3:57 PM, wei wang <apollo.mobility@xxxxxxxxx> wrote:
> hi,
>
> could anyone briefly explain how the Chip.C is generated? i know it's
> generated by Slicc, specifically from file SymbolTable.C. So if i want to
> add a new component to the Chip, i.e. a Vicitim Cache, a HW prefetcher, how
> should i do it? suppose i'd like to create a victim cache for L2 cache, do i
> need to put something like:
> VictimCache L2victimCache, template_hack="<L2Cache_Entry>",
> constructor_hack='L2_VICTIM_CACHE_NUM_ENTRIES, MachineType_VictimCache);
>
> to the protocol definition file?

Yes.  Objects defined in protocol definition files will be
instantiated in Chip.C

> and do i need to add anything to the
> SymbolTable.C ? Thanks.
>

You usually do not need to modify any SLICC files to add new objects
to controllers (Chip.C).

--Mike
[← Prev in Thread] Current Thread [Next in Thread→]