Remove hard-coded subdirectory paths for configs

Previously, the subdirectories in which the sub-json files were searched
in were hardcoded. Now, DRAMSys simply searches in the directory of the
base config, making this approach more flexible.
This commit is contained in:
2025-04-07 13:26:47 +02:00
parent a97b676b92
commit 939fc90f98
34 changed files with 61 additions and 285 deletions

View File

@@ -288,12 +288,6 @@ TEST_F(ConfigurationTest, DumpConfiguration)
std::cout << json.dump(4) << std::endl;
}
TEST(Configuration, ResourceDirectory)
{
// Test should not throw exceptions
Configuration config = from_path("resources/ddr5-example.json");
}
TEST(Configuration, FromPath)
{
// Test should not throw exceptions

View File

@@ -135,7 +135,7 @@
"tracesetup": [
{
"clkMhz": 533,
"name": "trace_test2.stl"
"name": "traces/trace_test2.stl"
}
]
}

View File

@@ -146,7 +146,7 @@
"tracesetup": [
{
"clkMhz": 933,
"name": "trace_test3.stl"
"name": "traces/trace_test3.stl"
}
]
}

View File

@@ -158,7 +158,7 @@
"tracesetup": [
{
"clkMhz": 1600,
"name": "trace_test3.stl"
"name": "traces/trace_test3.stl"
}
]
}

View File

@@ -126,11 +126,11 @@
"tracesetup": [
{
"clkMhz": 1000,
"name": "trace1_test4.stl"
"name": "traces/trace1_test4.stl"
},
{
"clkMhz": 1000,
"name": "trace2_test4.stl"
"name": "traces/trace2_test4.stl"
}
]
}

View File

@@ -129,11 +129,11 @@
"tracesetup": [
{
"clkMhz": 1600,
"name": "trace1_test4.stl"
"name": "traces/trace1_test4.stl"
},
{
"clkMhz": 1600,
"name": "trace2_test4.stl"
"name": "traces/trace2_test4.stl"
}
]
}

View File

@@ -123,7 +123,7 @@
"tracesetup": [
{
"clkMhz": 1600,
"name": "trace_lpddr4.stl"
"name": "traces/trace_lpddr4.stl"
}
]
}

View File

@@ -134,7 +134,7 @@
"tracesetup": [
{
"clkMhz": 1600,
"name": "trace_lpddr5.stl"
"name": "traces/trace_lpddr5.stl"
}
]
}