Skip to content

Commit 1baa9bc

Browse files
authored
Refactor static power calculation and combine static power data into component files - Part 1 (#247)
1 parent 518df04 commit 1baa9bc

25 files changed

+659
-434
lines changed

backend/etc/devices/mpw1/acpu.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
{ "name": "ACPU_LOW_LOAD_FACTOR" , "value": 6.22030740524698E-06 },
66
{ "name": "ACPU_MEDIUM_LOAD_FACTOR", "value": 7.03786731129023E-06 },
77
{ "name": "ACPU_HIGH_LOAD_FACTOR" , "value": 0.0000105978995482262 }
8+
],
9+
"static_power": [
10+
{
11+
"rail_type": "Vcc_core (A45)",
12+
"domain": "SOC",
13+
"scenarios": [
14+
{ "type": "worse", "coeffs": [0.00000000000008, -0.000000000004, 0.0000000004, 0.00000003, 0.000002, 0.00008], "factor": 1.0 },
15+
{ "type": "typical", "coeffs": [0.000000000006, -0.000000000006, -0.000000005, 0.0000007, 0.00002], "factor": 1.0 }
16+
]
17+
}
818
]
919
}

backend/etc/devices/mpw1/bcpu.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
{ "name": "BCPU_LOW_LOAD_FACTOR" , "value": 6.22030740524698E-06 },
66
{ "name": "BCPU_MEDIUM_LOAD_FACTOR", "value": 7.03786731129023E-06 },
77
{ "name": "BCPU_HIGH_LOAD_FACTOR" , "value": 0.0000105978995482262 }
8+
],
9+
"static_power": [
10+
{
11+
"rail_type": "Vcc_core (Config)",
12+
"domain": "SOC",
13+
"scenarios": [
14+
{ "type": "worse", "coeffs": [0.0000000001, -0.000000002, 0.000000004, 0.00002, 0.0007], "factor": 1.0 },
15+
{ "type": "typical", "coeffs": [0.0000000000005, -0.00000000002, 0.000000003, 0.0000002, 0.00001, 0.0013], "factor": 1.0 }
16+
]
17+
}
818
]
919
}

backend/etc/devices/mpw1/bram.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
{ "name": "BRAM_WRITE_CAP", "value": 0.000002 },
66
{ "name": "BRAM_READ_CAP" , "value": 0.0000025 },
77
{ "name": "BRAM_FIFO_CAP" , "value": 0.0000007 }
8+
],
9+
"static_power": [
10+
{
11+
"rail_type": "Vcc_core (BRAM)",
12+
"domain": "Core",
13+
"scenarios": [
14+
{ "type": "worse", "coeffs": [0.000000000001, -0.00000000003, 0.00000000006, 0.0000004, 0.00001], "factor": 1.0 },
15+
{ "type": "typical", "coeffs": [0.000000000001, -0.00000000006, 0.0000000005, 0.0000002, 0.000003], "factor": 1.0 }
16+
]
17+
}
818
]
919
}

backend/etc/devices/mpw1/ddr.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,23 @@
55
{ "name": "DDR_ACLK_FACTOR" , "value": 0.0000688892039916618 },
66
{ "name": "DDR_WRITE_FACTOR", "value": 0.0000421054185139638 },
77
{ "name": "DDR_READ_FACTOR" , "value": 0.0000397024214264236 }
8+
],
9+
"static_power": [
10+
{
11+
"rail_type": "Vcc_core (Mem_SS)",
12+
"domain": "SOC",
13+
"scenarios": [
14+
{ "type": "worse", "coeffs": [0.0000000001, -0.000000003, 0.000000005, 0.00003, 0.0009], "factor": 1.0 },
15+
{ "type": "typical", "coeffs": [0.0000000001, -0.000000006, 0.00000005, 0.00002, 0.0003], "factor": 1.0 }
16+
]
17+
},
18+
{
19+
"rail_type": "VCC_DDR_IO",
20+
"domain": "SOC",
21+
"scenarios": [
22+
{ "type": "worse", "coeffs": [0.000000000001, -0.00000000003, 0.00000000006, 0.0000003, 0.000009], "factor": 1.25 },
23+
{ "type": "typical", "coeffs": [0.000000000001, -0.00000000006, 0.0000000005, 0.0000002, 0.000003], "factor": 1.25 }
24+
]
25+
}
826
]
927
}

backend/etc/devices/mpw1/dsp.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@
44
{ "name": "DSP_MULT_CAP" , "value": 0.0000015 },
55
{ "name": "DSP_MULT_CAP2", "value": 0.00000007 },
66
{ "name": "DSP_INT_CAP" , "value": 0.0000001 }
7+
],
8+
"static_power": [
9+
{
10+
"rail_type": "Vcc_core (DSP)",
11+
"domain": "Core",
12+
"scenarios": [
13+
{ "type": "worse", "coeffs": [0.000000000002, -0.00000000004, 0.00000000008, 0.0000005, 0.00001], "factor": 1.0 },
14+
{ "type": "typical", "coeffs": [0.000000000002, -0.00000000008, 0.0000000007, 0.0000003, 0.000004], "factor": 1.0 }
15+
]
16+
}
717
]
818
}

backend/etc/devices/mpw1/fabric_le.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,15 @@
66
{ "name": "FF_CLK_CAP" , "value": 2.91375291375291E-09 },
77
{ "name": "LUT_INT_CAP", "value": 0.00000002 },
88
{ "name": "FF_INT_CAP" , "value": 0.00000004 }
9+
],
10+
"static_power": [
11+
{
12+
"rail_type": "Vcc_core (CLB)",
13+
"domain": "Core",
14+
"scenarios": [
15+
{ "type": "worse", "coeffs": [0.000000000000002, -0.0000000000001, 0.00000000001, 0.0000000008, 0.00000006, 0.000002], "factor": 1.0 },
16+
{ "type": "typical", "coeffs": [0.0000000000003, -0.00000000001, 0.0000000001, 0.00000006, 0.0000007], "factor": 1.0 }
17+
]
18+
}
919
]
1020
}

backend/etc/devices/mpw1/gige.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,23 @@
44
{ "name": "GIGE_CLK_FACTOR" , "value": 0.000124771586466165 },
55
{ "name": "GIGE_SWITCHING_FACTOR", "value": 0.00504040314066422 },
66
{ "name": "GIGE_IO_FACTOR" , "value": 0.000071487696 }
7+
],
8+
"static_power": [
9+
{
10+
"rail_type": "VCC_GIGE_IO",
11+
"domain": "SOC",
12+
"scenarios": [
13+
{ "type": "worse", "coeffs": [0.000000000001, -0.00000000003, 0.00000000006, 0.0000003, 0.000009], "factor": 1.25 },
14+
{ "type": "typical", "coeffs": [0.000000000001, -0.00000000006, 0.0000000005, 0.0000002, 0.000003], "factor": 1.25 }
15+
]
16+
},
17+
{
18+
"rail_type": "VCC_GIGE_AUX",
19+
"domain": "SOC",
20+
"scenarios": [
21+
{ "type": "worse", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.555555555555556 },
22+
{ "type": "typical", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.444444444444445 }
23+
]
24+
}
725
]
826
}

backend/etc/devices/mpw1/gpio.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,39 @@
44
{ "name": "GPIO_CLK_FACTOR" , "value": 0.0000773683364661654 },
55
{ "name": "GPIO_SWITCHING_FACTOR", "value": 5.89015486234265E-06 },
66
{ "name": "GPIO_IO_FACTOR" , "value": 0.0000001688475 }
7+
],
8+
"static_power": [
9+
{
10+
"rail_type": "VCC_BOOT_IO",
11+
"domain": "SOC",
12+
"scenarios": [
13+
{ "type": "worse", "coeffs": [0.000000000001, -0.00000000003, 0.00000000006, 0.0000003, 0.000009], "factor": 1.25 },
14+
{ "type": "typical", "coeffs": [0.000000000001, -0.00000000006, 0.0000000005, 0.0000002, 0.000003], "factor": 1.25 }
15+
]
16+
},
17+
{
18+
"rail_type": "VCC_SOC_IO",
19+
"domain": "SOC",
20+
"scenarios": [
21+
{ "type": "worse", "coeffs": [0.000000000001, -0.00000000003, 0.00000000006, 0.0000003, 0.000009], "factor": 1.25 },
22+
{ "type": "typical", "coeffs": [0.000000000001, -0.00000000006, 0.0000000005, 0.0000002, 0.000003], "factor": 1.25 }
23+
]
24+
},
25+
{
26+
"rail_type": "VCC_BOOT_AUX",
27+
"domain": "SOC",
28+
"scenarios": [
29+
{ "type": "worse", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.555555555555556 },
30+
{ "type": "typical", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.44444444444445 }
31+
]
32+
},
33+
{
34+
"rail_type": "VCC_SOC_AUX",
35+
"domain": "SOC",
36+
"scenarios": [
37+
{ "type": "worse", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.555555555555556 },
38+
{ "type": "typical", "coeffs": [0.0000000008, 0.0000002, 0.00001, 0.007], "factor": 0.44444444444445 }
39+
]
40+
}
741
]
842
}

backend/etc/devices/mpw1/noc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,15 @@
5858
{ "name": "dma.ocm", "value": 4.64649E-06 },
5959
{ "name": "dma.ocm", "value": 4.74549E-06 },
6060
{ "name": "dma.ocm", "value": 4.69132E-06 }
61+
],
62+
"static_power": [
63+
{
64+
"rail_type": "Vcc_core (NOC)",
65+
"domain": "SOC",
66+
"scenarios": [
67+
{ "type": "worse", "coeffs": [0.00000000005, -0.000000001, 0.000000002, 0.00001, 0.0003], "factor": 1.0 },
68+
{ "type": "typical", "coeffs": [0.00000000003, -0.000000001, 0.00000001, 0.000005, 0.00006], "factor": 1.0 }
69+
]
70+
}
6171
]
6272
}

backend/etc/devices/mpw1/power_data.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"static": {
3-
"$ref": "static_power_data.json"
4-
},
52
"components": [
63
{ "$ref": "clocking.json" },
74
{ "$ref": "dsp.json" },
@@ -21,6 +18,8 @@
2118
{ "$ref": "sram.json" },
2219
{ "$ref": "pwm.json" },
2320
{ "$ref": "noc.json" },
21+
{ "$ref": "puffcc.json" },
22+
{ "$ref": "rc_osc.json" },
2423
{ "$ref": "regulator.json" }
2524
]
2625
}

0 commit comments

Comments
 (0)