HassanStar commited on
Commit
4e14875
·
verified ·
1 Parent(s): d48dbd3

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +559 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Dse Cva6
3
- emoji: 🏢
4
- colorFrom: indigo
5
  colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: dse-cva6
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
  colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,559 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AutoML for RISC-V CVA6 DSE | Performance vs Power Analysis</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ riscv: '#3a7ca5',
15
+ riscvDark: '#2c3e50',
16
+ accent: '#f39c12',
17
+ }
18
+ }
19
+ }
20
+ }
21
+ </script>
22
+ <style>
23
+ .gradient-bg {
24
+ background: linear-gradient(135deg, #3a7ca5 0%, #2c3e50 100%);
25
+ }
26
+ .chart-container {
27
+ position: relative;
28
+ height: 400px;
29
+ width: 100%;
30
+ }
31
+ .tooltip {
32
+ position: absolute;
33
+ padding: 8px;
34
+ background: rgba(0, 0, 0, 0.8);
35
+ color: white;
36
+ border-radius: 4px;
37
+ pointer-events: none;
38
+ font-size: 12px;
39
+ z-index: 10;
40
+ display: none;
41
+ }
42
+ .parameter-slider {
43
+ -webkit-appearance: none;
44
+ width: 100%;
45
+ height: 8px;
46
+ border-radius: 4px;
47
+ background: #e0e0e0;
48
+ outline: none;
49
+ }
50
+ .parameter-slider::-webkit-slider-thumb {
51
+ -webkit-appearance: none;
52
+ appearance: none;
53
+ width: 18px;
54
+ height: 18px;
55
+ border-radius: 50%;
56
+ background: #3a7ca5;
57
+ cursor: pointer;
58
+ }
59
+ </style>
60
+ </head>
61
+ <body class="bg-gray-100 font-sans">
62
+ <!-- Header -->
63
+ <header class="gradient-bg text-white shadow-lg">
64
+ <div class="container mx-auto px-4 py-6">
65
+ <div class="flex flex-col md:flex-row justify-between items-center">
66
+ <div class="flex items-center mb-4 md:mb-0">
67
+ <i class="fas fa-microchip text-3xl mr-3"></i>
68
+ <h1 class="text-2xl font-bold">RISC-V CVA6 AutoML DSE</h1>
69
+ </div>
70
+ <nav class="flex space-x-6">
71
+ <a href="#overview" class="hover:text-accent transition">Overview</a>
72
+ <a href="#explore" class="hover:text-accent transition">Explore</a>
73
+ <a href="#predict" class="hover:text-accent transition">Predict</a>
74
+ <a href="#about" class="hover:text-accent transition">About</a>
75
+ </nav>
76
+ </div>
77
+ </div>
78
+ </header>
79
+
80
+ <!-- Main Content -->
81
+ <main class="container mx-auto px-4 py-8">
82
+ <!-- Hero Section -->
83
+ <section id="overview" class="mb-16">
84
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
85
+ <div class="md:flex">
86
+ <div class="md:w-1/2 p-8">
87
+ <h2 class="text-3xl font-bold text-riscvDark mb-4">Automated Design Space Exploration for RISC-V CVA6</h2>
88
+ <p class="text-gray-600 mb-6">
89
+ Our AutoML platform enables rapid exploration of the performance-power trade-offs in RISC-V CVA6 processors using Dhrystone benchmark metrics.
90
+ Optimize your processor configuration with machine learning predictions.
91
+ </p>
92
+ <div class="flex space-x-4">
93
+ <button class="bg-riscv hover:bg-riscvDark text-white px-6 py-2 rounded-lg transition">
94
+ <i class="fas fa-rocket mr-2"></i> Quick Start
95
+ </button>
96
+ <button class="border border-riscv text-riscv hover:bg-gray-100 px-6 py-2 rounded-lg transition">
97
+ <i class="fas fa-book mr-2"></i> Documentation
98
+ </button>
99
+ </div>
100
+ </div>
101
+ <div class="md:w-1/2 bg-gray-100 flex items-center justify-center p-8">
102
+ <img src="https://via.placeholder.com/500x300?text=RISC-V+CVA6+Architecture" alt="RISC-V CVA6 Architecture" class="rounded-lg shadow-sm">
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </section>
107
+
108
+ <!-- Key Metrics -->
109
+ <section class="mb-16">
110
+ <h2 class="text-2xl font-bold text-riscvDark mb-8 text-center">Key Design Space Metrics</h2>
111
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
112
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
113
+ <div class="text-accent text-4xl mb-4">
114
+ <i class="fas fa-tachometer-alt"></i>
115
+ </div>
116
+ <h3 class="font-bold text-lg mb-2">Performance</h3>
117
+ <p class="text-gray-600">
118
+ Dhrystone MIPS (DMIPS) and IPC (Instructions Per Cycle) metrics across different configurations.
119
+ </p>
120
+ </div>
121
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
122
+ <div class="text-accent text-4xl mb-4">
123
+ <i class="fas fa-bolt"></i>
124
+ </div>
125
+ <h3 class="font-bold text-lg mb-2">Power Efficiency</h3>
126
+ <p class="text-gray-600">
127
+ Power consumption (mW) and energy per instruction (EPI) measurements.
128
+ </p>
129
+ </div>
130
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition">
131
+ <div class="text-accent text-4xl mb-4">
132
+ <i class="fas fa-project-diagram"></i>
133
+ </div>
134
+ <h3 class="font-bold text-lg mb-2">Microarchitecture</h3>
135
+ <p class="text-gray-600">
136
+ Pipeline depth, cache sizes, branch prediction, and other key parameters.
137
+ </p>
138
+ </div>
139
+ </div>
140
+ </section>
141
+
142
+ <!-- Design Space Explorer -->
143
+ <section id="explore" class="mb-16 bg-white rounded-xl shadow-md p-6">
144
+ <h2 class="text-2xl font-bold text-riscvDark mb-6">Design Space Explorer</h2>
145
+
146
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
147
+ <!-- Parameter Controls -->
148
+ <div class="bg-gray-50 p-4 rounded-lg">
149
+ <h3 class="font-semibold mb-4 text-riscvDark">Configuration Parameters</h3>
150
+
151
+ <div class="space-y-6">
152
+ <div>
153
+ <label class="block text-sm font-medium text-gray-700 mb-1">Pipeline Depth</label>
154
+ <input type="range" min="5" max="15" value="10" class="parameter-slider" id="pipelineDepth">
155
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
156
+ <span>5 stages</span>
157
+ <span>15 stages</span>
158
+ </div>
159
+ </div>
160
+
161
+ <div>
162
+ <label class="block text-sm font-medium text-gray-700 mb-1">L1 Cache Size</label>
163
+ <input type="range" min="8" max="64" value="32" class="parameter-slider" id="l1Cache">
164
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
165
+ <span>8KB</span>
166
+ <span>64KB</span>
167
+ </div>
168
+ </div>
169
+
170
+ <div>
171
+ <label class="block text-sm font-medium text-gray-700 mb-1">Branch Predictor</label>
172
+ <select class="w-full p-2 border rounded-md">
173
+ <option>Static</option>
174
+ <option selected>Dynamic 1-bit</option>
175
+ <option>Dynamic 2-bit</option>
176
+ <option>Tournament</option>
177
+ </select>
178
+ </div>
179
+
180
+ <div>
181
+ <label class="block text-sm font-medium text-gray-700 mb-1">Clock Frequency</label>
182
+ <input type="range" min="500" max="2500" value="1500" class="parameter-slider" id="clockFreq">
183
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
184
+ <span>500MHz</span>
185
+ <span>2.5GHz</span>
186
+ </div>
187
+ </div>
188
+ </div>
189
+
190
+ <button class="mt-6 w-full bg-riscv hover:bg-riscvDark text-white py-2 rounded-md transition">
191
+ <i class="fas fa-calculator mr-2"></i> Evaluate Configuration
192
+ </button>
193
+ </div>
194
+
195
+ <!-- Visualization -->
196
+ <div class="lg:col-span-2">
197
+ <div class="bg-gray-50 p-4 rounded-lg h-full">
198
+ <div class="flex justify-between items-center mb-4">
199
+ <h3 class="font-semibold text-riscvDark">Performance-Power Trade-off</h3>
200
+ <div class="flex space-x-2">
201
+ <button class="px-3 py-1 bg-gray-200 rounded-md text-sm">DMIPS</button>
202
+ <button class="px-3 py-1 bg-gray-200 rounded-md text-sm">IPC</button>
203
+ <button class="px-3 py-1 bg-accent text-white rounded-md text-sm">Power</button>
204
+ </div>
205
+ </div>
206
+
207
+ <div class="chart-container">
208
+ <canvas id="designSpaceChart"></canvas>
209
+ <div class="tooltip" id="chartTooltip"></div>
210
+ </div>
211
+
212
+ <div class="mt-4 flex justify-center space-x-4">
213
+ <div class="text-center">
214
+ <div class="text-2xl font-bold text-riscv">4.2 DMIPS/MHz</div>
215
+ <div class="text-sm text-gray-500">Performance</div>
216
+ </div>
217
+ <div class="text-center">
218
+ <div class="text-2xl font-bold text-accent">18.7 mW</div>
219
+ <div class="text-sm text-gray-500">Power</div>
220
+ </div>
221
+ <div class="text-center">
222
+ <div class="text-2xl font-bold text-gray-700">0.87 nJ/instr</div>
223
+ <div class="text-sm text-gray-500">Energy Efficiency</div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+
230
+ <div class="bg-gray-50 p-4 rounded-lg">
231
+ <h3 class="font-semibold mb-4 text-riscvDark">Pareto Frontier Analysis</h3>
232
+ <div class="chart-container">
233
+ <canvas id="paretoChart"></canvas>
234
+ </div>
235
+ </div>
236
+ </section>
237
+
238
+ <!-- Prediction Section -->
239
+ <section id="predict" class="mb-16 bg-white rounded-xl shadow-md p-6">
240
+ <h2 class="text-2xl font-bold text-riscvDark mb-6">AutoML Prediction Engine</h2>
241
+
242
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
243
+ <div>
244
+ <h3 class="font-semibold mb-4 text-riscvDark">Optimization Target</h3>
245
+
246
+ <div class="space-y-4">
247
+ <div class="flex items-center">
248
+ <input type="radio" id="optPerf" name="optimization" class="mr-2" checked>
249
+ <label for="optPerf" class="font-medium">Maximize Performance (DMIPS)</label>
250
+ </div>
251
+ <div class="flex items-center">
252
+ <input type="radio" id="optPower" name="optimization" class="mr-2">
253
+ <label for="optPower" class="font-medium">Minimize Power Consumption</label>
254
+ </div>
255
+ <div class="flex items-center">
256
+ <input type="radio" id="optEfficiency" name="optimization" class="mr-2">
257
+ <label for="optEfficiency" class="font-medium">Maximize Energy Efficiency</label>
258
+ </div>
259
+
260
+ <div class="mt-6">
261
+ <label class="block text-sm font-medium text-gray-700 mb-1">Power Constraint (mW)</label>
262
+ <input type="range" min="5" max="50" value="20" class="parameter-slider" id="powerConstraint">
263
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
264
+ <span>5mW</span>
265
+ <span>50mW</span>
266
+ </div>
267
+ </div>
268
+
269
+ <button class="mt-6 w-full bg-accent hover:bg-yellow-700 text-white py-2 rounded-md transition">
270
+ <i class="fas fa-brain mr-2"></i> Run AutoML Optimization
271
+ </button>
272
+ </div>
273
+ </div>
274
+
275
+ <div>
276
+ <h3 class="font-semibold mb-4 text-riscvDark">Recommended Configuration</h3>
277
+
278
+ <div class="bg-gray-50 p-4 rounded-lg">
279
+ <div class="grid grid-cols-2 gap-4 mb-4">
280
+ <div>
281
+ <div class="text-sm text-gray-500">Pipeline Depth</div>
282
+ <div class="font-bold">12 stages</div>
283
+ </div>
284
+ <div>
285
+ <div class="text-sm text-gray-500">L1 Cache</div>
286
+ <div class="font-bold">32KB</div>
287
+ </div>
288
+ <div>
289
+ <div class="text-sm text-gray-500">Branch Predictor</div>
290
+ <div class="font-bold">Tournament</div>
291
+ </div>
292
+ <div>
293
+ <div class="text-sm text-gray-500">Clock Frequency</div>
294
+ <div class="font-bold">1.8GHz</div>
295
+ </div>
296
+ </div>
297
+
298
+ <div class="border-t pt-4">
299
+ <div class="text-sm text-gray-500">Predicted Metrics</div>
300
+ <div class="grid grid-cols-3 gap-2 mt-2">
301
+ <div class="bg-riscv text-white text-center p-2 rounded">
302
+ <div class="text-xl font-bold">4.8</div>
303
+ <div class="text-xs">DMIPS/MHz</div>
304
+ </div>
305
+ <div class="bg-accent text-white text-center p-2 rounded">
306
+ <div class="text-xl font-bold">19.2</div>
307
+ <div class="text-xs">mW</div>
308
+ </div>
309
+ <div class="bg-gray-700 text-white text-center p-2 rounded">
310
+ <div class="text-xl font-bold">0.72</div>
311
+ <div class="text-xs">nJ/instr</div>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </div>
316
+
317
+ <button class="mt-4 w-full border border-riscv text-riscv hover:bg-gray-50 py-2 rounded-md transition">
318
+ <i class="fas fa-download mr-2"></i> Export Configuration
319
+ </button>
320
+ </div>
321
+ </div>
322
+ </section>
323
+
324
+ <!-- About Section -->
325
+ <section id="about" class="mb-16 bg-white rounded-xl shadow-md p-6">
326
+ <h2 class="text-2xl font-bold text-riscvDark mb-6">About This Project</h2>
327
+
328
+ <div class="prose max-w-none">
329
+ <p>
330
+ This AutoML platform for RISC-V CVA6 Design Space Exploration (DSE) was developed to help computer architects and
331
+ hardware designers quickly evaluate performance-power trade-offs using the Dhrystone benchmark.
332
+ </p>
333
+
334
+ <h3 class="text-xl font-semibold mt-6 text-riscvDark">Methodology</h3>
335
+ <p>
336
+ Our system uses machine learning models trained on extensive simulation data to predict processor metrics across
337
+ the design space without requiring time-consuming RTL simulations for every configuration.
338
+ </p>
339
+
340
+ <h3 class="text-xl font-semibold mt-6 text-riscvDark">Technical Details</h3>
341
+ <ul class="list-disc pl-5 space-y-2">
342
+ <li>Based on the open-source CVA6 (formerly Ariane) RISC-V core</li>
343
+ <li>Dhrystone benchmark as the performance metric</li>
344
+ <li>Power estimation using industry-standard models</li>
345
+ <li>Gradient boosting and neural network prediction models</li>
346
+ <li>Multi-objective optimization for Pareto frontier analysis</li>
347
+ </ul>
348
+
349
+ <div class="mt-8 p-4 bg-gray-50 rounded-lg">
350
+ <h3 class="font-semibold text-riscvDark mb-2">Get Involved</h3>
351
+ <p class="mb-4">This is an open-source project. Contributions are welcome!</p>
352
+ <button class="bg-gray-800 hover:bg-black text-white px-4 py-2 rounded-md transition">
353
+ <i class="fab fa-github mr-2"></i> View on GitHub
354
+ </button>
355
+ </div>
356
+ </div>
357
+ </section>
358
+ </main>
359
+
360
+ <!-- Footer -->
361
+ <footer class="gradient-bg text-white py-8">
362
+ <div class="container mx-auto px-4">
363
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
364
+ <div>
365
+ <h3 class="text-lg font-semibold mb-4">RISC-V CVA6 AutoML</h3>
366
+ <p class="text-gray-300">
367
+ Automated design space exploration for RISC-V processors using machine learning techniques.
368
+ </p>
369
+ </div>
370
+ <div>
371
+ <h3 class="text-lg font-semibold mb-4">Quick Links</h3>
372
+ <ul class="space-y-2">
373
+ <li><a href="#" class="text-gray-300 hover:text-white transition">Documentation</a></li>
374
+ <li><a href="#" class="text-gray-300 hover:text-white transition">API Reference</a></li>
375
+ <li><a href="#" class="text-gray-300 hover:text-white transition">Tutorials</a></li>
376
+ </ul>
377
+ </div>
378
+ <div>
379
+ <h3 class="text-lg font-semibold mb-4">Contact</h3>
380
+ <ul class="space-y-2">
381
+ <li class="flex items-center">
382
+ <i class="fas fa-envelope mr-2"></i>
383
+ <span class="text-gray-300">contact@riscv-automl.org</span>
384
+ </li>
385
+ <li class="flex items-center">
386
+ <i class="fab fa-twitter mr-2"></i>
387
+ <span class="text-gray-300">@riscv_automl</span>
388
+ </li>
389
+ </ul>
390
+ </div>
391
+ </div>
392
+ <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
393
+ <p>&copy; 2023 RISC-V AutoML DSE Project. All rights reserved.</p>
394
+ </div>
395
+ </div>
396
+ </footer>
397
+
398
+ <!-- Chart.js for visualizations -->
399
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
400
+ <script>
401
+ // Initialize design space chart
402
+ const designSpaceCtx = document.getElementById('designSpaceChart').getContext('2d');
403
+ const designSpaceChart = new Chart(designSpaceCtx, {
404
+ type: 'scatter',
405
+ data: {
406
+ datasets: [{
407
+ label: 'Design Points',
408
+ data: [
409
+ {x: 3.2, y: 5.1},
410
+ {x: 3.8, y: 7.3},
411
+ {x: 4.1, y: 12.5},
412
+ {x: 4.5, y: 18.7},
413
+ {x: 4.8, y: 25.2},
414
+ {x: 3.5, y: 8.4},
415
+ {x: 3.9, y: 10.2},
416
+ {x: 4.2, y: 15.8},
417
+ {x: 4.6, y: 22.1},
418
+ {x: 4.0, y: 11.3}
419
+ ],
420
+ backgroundColor: 'rgba(58, 124, 165, 0.7)',
421
+ borderColor: 'rgba(58, 124, 165, 1)',
422
+ borderWidth: 1,
423
+ pointRadius: 6,
424
+ pointHoverRadius: 8
425
+ }]
426
+ },
427
+ options: {
428
+ responsive: true,
429
+ maintainAspectRatio: false,
430
+ scales: {
431
+ x: {
432
+ title: {
433
+ display: true,
434
+ text: 'Performance (DMIPS/MHz)'
435
+ }
436
+ },
437
+ y: {
438
+ title: {
439
+ display: true,
440
+ text: 'Power Consumption (mW)'
441
+ }
442
+ }
443
+ },
444
+ plugins: {
445
+ tooltip: {
446
+ callbacks: {
447
+ label: function(context) {
448
+ return `DMIPS: ${context.parsed.x.toFixed(2)}, Power: ${context.parsed.y.toFixed(2)}mW`;
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ });
455
+
456
+ // Initialize pareto frontier chart
457
+ const paretoCtx = document.getElementById('paretoChart').getContext('2d');
458
+ const paretoChart = new Chart(paretoCtx, {
459
+ type: 'line',
460
+ data: {
461
+ labels: ['Config A', 'Config B', 'Config C', 'Config D', 'Config E'],
462
+ datasets: [
463
+ {
464
+ label: 'Performance (DMIPS/MHz)',
465
+ data: [3.2, 3.8, 4.1, 4.5, 4.8],
466
+ borderColor: 'rgba(58, 124, 165, 1)',
467
+ backgroundColor: 'rgba(58, 124, 165, 0.1)',
468
+ borderWidth: 2,
469
+ fill: true,
470
+ yAxisID: 'y'
471
+ },
472
+ {
473
+ label: 'Power (mW)',
474
+ data: [5.1, 7.3, 12.5, 18.7, 25.2],
475
+ borderColor: 'rgba(243, 156, 18, 1)',
476
+ backgroundColor: 'rgba(243, 156, 18, 0.1)',
477
+ borderWidth: 2,
478
+ fill: true,
479
+ yAxisID: 'y1'
480
+ }
481
+ ]
482
+ },
483
+ options: {
484
+ responsive: true,
485
+ maintainAspectRatio: false,
486
+ interaction: {
487
+ mode: 'index',
488
+ intersect: false,
489
+ },
490
+ scales: {
491
+ y: {
492
+ type: 'linear',
493
+ display: true,
494
+ position: 'left',
495
+ title: {
496
+ display: true,
497
+ text: 'Performance (DMIPS/MHz)'
498
+ }
499
+ },
500
+ y1: {
501
+ type: 'linear',
502
+ display: true,
503
+ position: 'right',
504
+ title: {
505
+ display: true,
506
+ text: 'Power (mW)'
507
+ },
508
+ grid: {
509
+ drawOnChartArea: false,
510
+ },
511
+ }
512
+ }
513
+ }
514
+ });
515
+
516
+ // Slider interactivity
517
+ const sliders = document.querySelectorAll('.parameter-slider');
518
+ sliders.forEach(slider => {
519
+ slider.addEventListener('input', function() {
520
+ // In a real application, this would update the charts and predictions
521
+ console.log(`${this.id} updated to ${this.value}`);
522
+ });
523
+ });
524
+
525
+ // Tooltip for design space chart
526
+ const chartContainer = document.querySelector('.chart-container');
527
+ const tooltip = document.getElementById('chartTooltip');
528
+
529
+ chartContainer.addEventListener('mousemove', function(e) {
530
+ const rect = designSpaceChart.canvas.getBoundingClientRect();
531
+ const x = e.clientX - rect.left;
532
+ const y = e.clientY - rect.top;
533
+
534
+ const points = designSpaceChart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false);
535
+
536
+ if (points.length) {
537
+ const point = points[0];
538
+ const dataset = designSpaceChart.data.datasets[point.datasetIndex];
539
+ const data = dataset.data[point.index];
540
+
541
+ tooltip.style.display = 'block';
542
+ tooltip.style.left = `${x + 10}px`;
543
+ tooltip.style.top = `${y + 10}px`;
544
+ tooltip.innerHTML = `
545
+ <strong>Configuration ${point.index + 1}</strong><br>
546
+ DMIPS: ${data.x.toFixed(2)}<br>
547
+ Power: ${data.y.toFixed(2)}mW
548
+ `;
549
+ } else {
550
+ tooltip.style.display = 'none';
551
+ }
552
+ });
553
+
554
+ chartContainer.addEventListener('mouseout', function() {
555
+ tooltip.style.display = 'none';
556
+ });
557
+ </script>
558
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=HassanStar/dse-cva6" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
559
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ make automl site for semiconductore risc-v cva6 performance vs power DSE desgin space exploration for dhrystone bench space app demo prediction