2001-12-27 Frank Ch. Eigler <fche@redhat.com>
+ * cache.cxx (CacheListTypes, CacheCreate): Support hw-cache-buffer-8
+ component type.
+ * hw-cache.xml, hw-cache.txt: Modified accordingly.
+
+2001-12-27 Frank Ch. Eigler <fche@redhat.com>
+
* cache.cxx (cache_sizes): Add "1" and "2" kb support.
* hw-cache.xml, hw-cache.txt: Modified accordingly.
vector<string> types;
types.push_back ("hw-cache-basic");
+ types.push_back ("hw-cache-buffer-8");
for (unsigned i = 0; i < (sizeof (assocs) / sizeof (string)); i++)
for (unsigned j = 0; j < (sizeof (cache_sizes) / sizeof (string)); j++)
if (typeName == "hw-cache-basic")
return new cache_component (1, 16384, 32, null_replacement);
+
+ if (typeName == "hw-cache-buffer-8")
+ return new cache_component (0, 8, 8, null_replacement);
vector<string> parts = sidutil::tokenize (typeName, "-/");
Synopsis:
- This component models a variety of memory cache designs.
+ This component models a variety of memory cache designs. Many common
+ parameter groups (size, associativity, line-size, etc.) are exposed as
+ individual component types in this family, e.g.,
+ hw-cache-2way/16kb/32/random, hw-cache-direct/1kb/16. The
+ hw-cache-buffer-8 type is a special case containing just one 8-byte cache
+ line.
----------------------------------------------------------------------
| downstream | unrestricted | bus traffic |
+-------------------------------------------------+
+ Variant: hw-cache-buffer-8
+
+ Same as hw-cache-basic
+
----------------------------------------------------------------------
References:
<defattribute name="miss-latency" category="setting" legalvalues="numeric" defaultvalue="0" behaviors="memory latency" />
<defattribute name="dump!" category="setting" legalvalues="empty string" defaultvalue="empty" behaviors="internal diagnostics" />
+ <variants>
+ <defcomponent name="hw-cache-buffer-8" type="concrete" />
+ </variants>
</defcomponent>
<synop>
<p>
- This component models a variety of memory cache designs.</p>
+ This component models a variety of memory cache designs.
+ Many common parameter groups (size, associativity, line-size, etc.)
+ are exposed as individual component types in this family, e.g.,
+ <component>hw-cache-2way/16kb/32/random</component>,
+ <component>hw-cache-direct/1kb/16</component>.
+ The <component>hw-cache-buffer-8</component> type is a special case
+ containing just one 8-byte cache line.
+ </p>
</synop>
<func>