mem: Change memory defaults to be more representative
authorAndreas Hansson <andreas.hansson@arm.com>
Sun, 23 Mar 2014 15:12:10 +0000 (11:12 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Sun, 23 Mar 2014 15:12:10 +0000 (11:12 -0400)
Make the default memory type DDR3-1600 x64, and use the open-adaptive
page policy. This change is aiming to ensure that users by default are
using a realistic memory system.

configs/common/Options.py
src/mem/SimpleDRAM.py

index 209d24357cc2636ba459b8626e1bb4ed674f5b95..e5069dc84a9b511627f240ff337e5a16547cbfcc 100644 (file)
@@ -85,7 +85,7 @@ def addCommonOptions(parser):
     parser.add_option("--list-mem-types",
                       action="callback", callback=_listMemTypes,
                       help="List available memory types")
-    parser.add_option("--mem-type", type="choice", default="simple_mem",
+    parser.add_option("--mem-type", type="choice", default="ddr3_1600_x64",
                       choices=MemConfig.mem_names(),
                       help = "type of memory to use")
     parser.add_option("--mem-channels", type="int", default=1,
index 514ff3664b1335c58b7e73bf77d4c8357735dd37..5c705f14e231a09d02b69aaf5eb134acf387b7b1 100644 (file)
@@ -72,7 +72,7 @@ class SimpleDRAM(AbstractMemory):
     port = SlavePort("Slave port")
 
     # the basic configuration of the controller architecture
-    write_buffer_size = Param.Unsigned(32, "Number of write queue entries")
+    write_buffer_size = Param.Unsigned(64, "Number of write queue entries")
     read_buffer_size = Param.Unsigned(32, "Number of read queue entries")
 
     # threshold in percent for when to forcefully trigger writes and
@@ -90,7 +90,7 @@ class SimpleDRAM(AbstractMemory):
     # scheduler, address map and page policy
     mem_sched_policy = Param.MemSched('frfcfs', "Memory scheduling policy")
     addr_mapping = Param.AddrMap('RoRaBaChCo', "Address mapping policy")
-    page_policy = Param.PageManage('open', "Page closure management policy")
+    page_policy = Param.PageManage('open_adaptive', "Page management policy")
 
     # enforce a limit on the number of accesses per row
     max_accesses_per_row = Param.Unsigned(16, "Max accesses per row before "