parameterized cpu/gpu/ddr scaling and some cleaning/merging