OSDN Git Service

2001-12-27 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche>
Fri, 28 Dec 2001 20:58:39 +0000 (20:58 +0000)
committerfche <fche>
Fri, 28 Dec 2001 20:58:39 +0000 (20:58 +0000)
* cache.cxx (CacheListTypes, CacheCreate): Support hw-cache-buffer-8
component type.
* hw-cache.xml, hw-cache.txt: Modified accordingly.

sid/component/cache/ChangeLog
sid/component/cache/cache.cxx
sid/component/cache/hw-cache.txt
sid/component/cache/hw-cache.xml

index 931d17c..5c06fa3 100644 (file)
@@ -1,5 +1,11 @@
 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.
 
index 71ecf8f..fa5bf4d 100644 (file)
@@ -654,6 +654,7 @@ CacheListTypes ()
   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++)
@@ -689,6 +690,9 @@ CacheCreate (const string& typeName)
 
   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, "-/");
 
index 5fcda7f..7133a09 100644 (file)
@@ -2,7 +2,12 @@
 
 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.
 
      ----------------------------------------------------------------------
 
@@ -332,6 +337,10 @@ Component Reference:
    | downstream    | unrestricted    | bus traffic   |
    +-------------------------------------------------+
 
+  Variant: hw-cache-buffer-8
+
+   Same as hw-cache-basic
+
      ----------------------------------------------------------------------
 
 References:
index 260750e..06ff88a 100644 (file)
     <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>