From: Andreas Hansson Date: Sun, 23 Mar 2014 15:12:10 +0000 (-0400) Subject: mem: Change memory defaults to be more representative X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dd1587afc48e8d2b870253de689bbe7262fcbe6;p=gem5.git mem: Change memory defaults to be more representative 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. --- diff --git a/configs/common/Options.py b/configs/common/Options.py index 209d24357..e5069dc84 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -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, diff --git a/src/mem/SimpleDRAM.py b/src/mem/SimpleDRAM.py index 514ff3664..5c705f14e 100644 --- a/src/mem/SimpleDRAM.py +++ b/src/mem/SimpleDRAM.py @@ -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 "