From 720ba4e3310d2cbe9cc5e497553e98a990294718 Mon Sep 17 00:00:00 2001 From: scorrea Date: Tue, 12 May 2020 21:10:47 +0200 Subject: [PATCH] SOLUTION field is now optional (AddrDecoder) --- .../configs/amconfigs/congen_extended.json | 3 +- .../amconfigs/congen_extended_solution.json | 98 +++++++++++++++++++ .../resources/simulations/ddr3-example.xml | 2 +- DRAMSys/library/src/common/AddressDecoder.cpp | 51 +++++----- 4 files changed, 126 insertions(+), 28 deletions(-) create mode 100644 DRAMSys/library/resources/configs/amconfigs/congen_extended_solution.json diff --git a/DRAMSys/library/resources/configs/amconfigs/congen_extended.json b/DRAMSys/library/resources/configs/amconfigs/congen_extended.json index 80e3450f..04f585b7 100644 --- a/DRAMSys/library/resources/configs/amconfigs/congen_extended.json +++ b/DRAMSys/library/resources/configs/amconfigs/congen_extended.json @@ -1,5 +1,5 @@ { - "CONGEN": [{ + "CONGEN": { "XOR":[ { "FIRST":13, @@ -46,5 +46,4 @@ ], "ID": 0 } - ] } diff --git a/DRAMSys/library/resources/configs/amconfigs/congen_extended_solution.json b/DRAMSys/library/resources/configs/amconfigs/congen_extended_solution.json new file mode 100644 index 00000000..a0e8c181 --- /dev/null +++ b/DRAMSys/library/resources/configs/amconfigs/congen_extended_solution.json @@ -0,0 +1,98 @@ +{ + "CONGEN": + {"SOLUTION":[{ + "XOR":[ + { + "FIRST":13, + "SECOND":16 + } + ], + "BYTE_BIT": [ + 0, + 1, + 2 + ], + "COLUMN_BIT": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ], + "BANK_BIT": [ + 13, + 14, + 15 + ], + "ROW_BIT": [ + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29 + ], + "ID": 0 + }, + { + "XOR":[ + { + "FIRST":13, + "SECOND":16 + } + ], + "BYTE_BIT": [ + 0, + 1, + 2 + ], + "COLUMN_BIT": [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12 + ], + "BANK_BIT": [ + 13, + 14, + 15 + ], + "ROW_BIT": [ + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29 + ], + "ID": 1 + }] + } +} diff --git a/DRAMSys/library/resources/simulations/ddr3-example.xml b/DRAMSys/library/resources/simulations/ddr3-example.xml index afdc7781..3e06bb4f 100644 --- a/DRAMSys/library/resources/simulations/ddr3-example.xml +++ b/DRAMSys/library/resources/simulations/ddr3-example.xml @@ -8,7 +8,7 @@ - +