edacation 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/project/configuration.d.ts +153 -138
- package/dist/project/devices.js +29 -2
- package/dist/project/devices.js.map +1 -1
- package/dist/project/project.d.ts +49 -21
- package/dist/project/project.js +85 -10
- package/dist/project/project.js.map +1 -1
- package/package.json +9 -9
|
@@ -11,11 +11,12 @@ declare const schemaValueList: z.ZodObject<{
|
|
|
11
11
|
useGenerated?: boolean | undefined;
|
|
12
12
|
values?: string[] | undefined;
|
|
13
13
|
}>;
|
|
14
|
-
declare const schemaValueListTarget: z.ZodObject<{
|
|
14
|
+
declare const schemaValueListTarget: z.ZodObject<z.objectUtil.extendShape<{
|
|
15
15
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
16
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
17
|
+
}, {
|
|
17
18
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
-
}
|
|
19
|
+
}>, "strip", z.ZodTypeAny, {
|
|
19
20
|
useGenerated: boolean;
|
|
20
21
|
values: string[];
|
|
21
22
|
useDefault: boolean;
|
|
@@ -65,11 +66,12 @@ declare const schemaWorker: z.ZodObject<{
|
|
|
65
66
|
} | undefined;
|
|
66
67
|
}>;
|
|
67
68
|
declare const schemaWorkerTarget: z.ZodObject<{
|
|
68
|
-
inputFiles: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
inputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
69
70
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
70
71
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
+
}, {
|
|
71
73
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
72
|
-
}
|
|
74
|
+
}>, "strip", z.ZodTypeAny, {
|
|
73
75
|
useGenerated: boolean;
|
|
74
76
|
values: string[];
|
|
75
77
|
useDefault: boolean;
|
|
@@ -78,11 +80,12 @@ declare const schemaWorkerTarget: z.ZodObject<{
|
|
|
78
80
|
values?: string[] | undefined;
|
|
79
81
|
useDefault?: boolean | undefined;
|
|
80
82
|
}>>;
|
|
81
|
-
outputFiles: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
outputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
82
84
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
83
85
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
86
|
+
}, {
|
|
84
87
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
|
-
}
|
|
88
|
+
}>, "strip", z.ZodTypeAny, {
|
|
86
89
|
useGenerated: boolean;
|
|
87
90
|
values: string[];
|
|
88
91
|
useDefault: boolean;
|
|
@@ -140,28 +143,29 @@ declare const schemaYosys: z.ZodObject<{
|
|
|
140
143
|
optimize?: boolean | undefined;
|
|
141
144
|
}>>;
|
|
142
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
options?: {
|
|
147
|
+
optimize?: boolean | undefined;
|
|
148
|
+
} | undefined;
|
|
143
149
|
commands?: {
|
|
144
150
|
useGenerated: boolean;
|
|
145
151
|
values: string[];
|
|
146
152
|
} | undefined;
|
|
153
|
+
}, {
|
|
147
154
|
options?: {
|
|
148
155
|
optimize?: boolean | undefined;
|
|
149
156
|
} | undefined;
|
|
150
|
-
}, {
|
|
151
157
|
commands?: {
|
|
152
158
|
useGenerated?: boolean | undefined;
|
|
153
159
|
values?: string[] | undefined;
|
|
154
160
|
} | undefined;
|
|
155
|
-
options?: {
|
|
156
|
-
optimize?: boolean | undefined;
|
|
157
|
-
} | undefined;
|
|
158
161
|
}>;
|
|
159
162
|
declare const schemaYosysTarget: z.ZodObject<{
|
|
160
|
-
commands: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
commands: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
161
164
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
162
165
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
166
|
+
}, {
|
|
163
167
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
164
|
-
}
|
|
168
|
+
}>, "strip", z.ZodTypeAny, {
|
|
165
169
|
useGenerated: boolean;
|
|
166
170
|
values: string[];
|
|
167
171
|
useDefault: boolean;
|
|
@@ -178,23 +182,23 @@ declare const schemaYosysTarget: z.ZodObject<{
|
|
|
178
182
|
optimize?: boolean | undefined;
|
|
179
183
|
}>>;
|
|
180
184
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
options?: {
|
|
186
|
+
optimize?: boolean | undefined;
|
|
187
|
+
} | undefined;
|
|
181
188
|
commands?: {
|
|
182
189
|
useGenerated: boolean;
|
|
183
190
|
values: string[];
|
|
184
191
|
useDefault: boolean;
|
|
185
192
|
} | undefined;
|
|
193
|
+
}, {
|
|
186
194
|
options?: {
|
|
187
195
|
optimize?: boolean | undefined;
|
|
188
196
|
} | undefined;
|
|
189
|
-
}, {
|
|
190
197
|
commands?: {
|
|
191
198
|
useGenerated?: boolean | undefined;
|
|
192
199
|
values?: string[] | undefined;
|
|
193
200
|
useDefault?: boolean | undefined;
|
|
194
201
|
} | undefined;
|
|
195
|
-
options?: {
|
|
196
|
-
optimize?: boolean | undefined;
|
|
197
|
-
} | undefined;
|
|
198
202
|
}>;
|
|
199
203
|
declare const schemaNextpnrOptions: z.ZodObject<{
|
|
200
204
|
placedSvg: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -234,32 +238,33 @@ declare const schemaNextpnr: z.ZodObject<{
|
|
|
234
238
|
routedJson?: boolean | undefined;
|
|
235
239
|
}>>;
|
|
236
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
options?: {
|
|
242
|
+
placedSvg?: boolean | undefined;
|
|
243
|
+
routedSvg?: boolean | undefined;
|
|
244
|
+
routedJson?: boolean | undefined;
|
|
245
|
+
} | undefined;
|
|
237
246
|
arguments?: {
|
|
238
247
|
useGenerated: boolean;
|
|
239
248
|
values: string[];
|
|
240
249
|
} | undefined;
|
|
250
|
+
}, {
|
|
241
251
|
options?: {
|
|
242
252
|
placedSvg?: boolean | undefined;
|
|
243
253
|
routedSvg?: boolean | undefined;
|
|
244
254
|
routedJson?: boolean | undefined;
|
|
245
255
|
} | undefined;
|
|
246
|
-
}, {
|
|
247
256
|
arguments?: {
|
|
248
257
|
useGenerated?: boolean | undefined;
|
|
249
258
|
values?: string[] | undefined;
|
|
250
259
|
} | undefined;
|
|
251
|
-
options?: {
|
|
252
|
-
placedSvg?: boolean | undefined;
|
|
253
|
-
routedSvg?: boolean | undefined;
|
|
254
|
-
routedJson?: boolean | undefined;
|
|
255
|
-
} | undefined;
|
|
256
260
|
}>;
|
|
257
261
|
declare const schemaNextpnrTarget: z.ZodObject<{
|
|
258
|
-
arguments: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
arguments: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
259
263
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
260
264
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
265
|
+
}, {
|
|
261
266
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
262
|
-
}
|
|
267
|
+
}>, "strip", z.ZodTypeAny, {
|
|
263
268
|
useGenerated: boolean;
|
|
264
269
|
values: string[];
|
|
265
270
|
useDefault: boolean;
|
|
@@ -282,31 +287,31 @@ declare const schemaNextpnrTarget: z.ZodObject<{
|
|
|
282
287
|
routedJson?: boolean | undefined;
|
|
283
288
|
}>>;
|
|
284
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
options?: {
|
|
291
|
+
placedSvg?: boolean | undefined;
|
|
292
|
+
routedSvg?: boolean | undefined;
|
|
293
|
+
routedJson?: boolean | undefined;
|
|
294
|
+
} | undefined;
|
|
285
295
|
arguments?: {
|
|
286
296
|
useGenerated: boolean;
|
|
287
297
|
values: string[];
|
|
288
298
|
useDefault: boolean;
|
|
289
299
|
} | undefined;
|
|
300
|
+
}, {
|
|
290
301
|
options?: {
|
|
291
302
|
placedSvg?: boolean | undefined;
|
|
292
303
|
routedSvg?: boolean | undefined;
|
|
293
304
|
routedJson?: boolean | undefined;
|
|
294
305
|
} | undefined;
|
|
295
|
-
}, {
|
|
296
306
|
arguments?: {
|
|
297
307
|
useGenerated?: boolean | undefined;
|
|
298
308
|
values?: string[] | undefined;
|
|
299
309
|
useDefault?: boolean | undefined;
|
|
300
310
|
} | undefined;
|
|
301
|
-
options?: {
|
|
302
|
-
placedSvg?: boolean | undefined;
|
|
303
|
-
routedSvg?: boolean | undefined;
|
|
304
|
-
routedJson?: boolean | undefined;
|
|
305
|
-
} | undefined;
|
|
306
311
|
}>;
|
|
307
312
|
export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
308
313
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
309
|
-
yosys: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
yosys: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
310
315
|
inputFiles: z.ZodOptional<z.ZodObject<{
|
|
311
316
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
312
317
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -327,6 +332,7 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
327
332
|
useGenerated?: boolean | undefined;
|
|
328
333
|
values?: string[] | undefined;
|
|
329
334
|
}>>;
|
|
335
|
+
}, {
|
|
330
336
|
commands: z.ZodOptional<z.ZodObject<{
|
|
331
337
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
332
338
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -344,7 +350,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
344
350
|
}, {
|
|
345
351
|
optimize?: boolean | undefined;
|
|
346
352
|
}>>;
|
|
347
|
-
}
|
|
353
|
+
}>, "strip", z.ZodTypeAny, {
|
|
354
|
+
options?: {
|
|
355
|
+
optimize?: boolean | undefined;
|
|
356
|
+
} | undefined;
|
|
348
357
|
inputFiles?: {
|
|
349
358
|
useGenerated: boolean;
|
|
350
359
|
values: string[];
|
|
@@ -357,10 +366,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
357
366
|
useGenerated: boolean;
|
|
358
367
|
values: string[];
|
|
359
368
|
} | undefined;
|
|
369
|
+
}, {
|
|
360
370
|
options?: {
|
|
361
371
|
optimize?: boolean | undefined;
|
|
362
372
|
} | undefined;
|
|
363
|
-
}, {
|
|
364
373
|
inputFiles?: {
|
|
365
374
|
useGenerated?: boolean | undefined;
|
|
366
375
|
values?: string[] | undefined;
|
|
@@ -373,11 +382,8 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
373
382
|
useGenerated?: boolean | undefined;
|
|
374
383
|
values?: string[] | undefined;
|
|
375
384
|
} | undefined;
|
|
376
|
-
options?: {
|
|
377
|
-
optimize?: boolean | undefined;
|
|
378
|
-
} | undefined;
|
|
379
385
|
}>>;
|
|
380
|
-
nextpnr: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
nextpnr: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
381
387
|
inputFiles: z.ZodOptional<z.ZodObject<{
|
|
382
388
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
383
389
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -398,6 +404,7 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
398
404
|
useGenerated?: boolean | undefined;
|
|
399
405
|
values?: string[] | undefined;
|
|
400
406
|
}>>;
|
|
407
|
+
}, {
|
|
401
408
|
arguments: z.ZodOptional<z.ZodObject<{
|
|
402
409
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
403
410
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -421,7 +428,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
421
428
|
routedSvg?: boolean | undefined;
|
|
422
429
|
routedJson?: boolean | undefined;
|
|
423
430
|
}>>;
|
|
424
|
-
}
|
|
431
|
+
}>, "strip", z.ZodTypeAny, {
|
|
432
|
+
options?: {
|
|
433
|
+
placedSvg?: boolean | undefined;
|
|
434
|
+
routedSvg?: boolean | undefined;
|
|
435
|
+
routedJson?: boolean | undefined;
|
|
436
|
+
} | undefined;
|
|
425
437
|
inputFiles?: {
|
|
426
438
|
useGenerated: boolean;
|
|
427
439
|
values: string[];
|
|
@@ -434,12 +446,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
434
446
|
useGenerated: boolean;
|
|
435
447
|
values: string[];
|
|
436
448
|
} | undefined;
|
|
449
|
+
}, {
|
|
437
450
|
options?: {
|
|
438
451
|
placedSvg?: boolean | undefined;
|
|
439
452
|
routedSvg?: boolean | undefined;
|
|
440
453
|
routedJson?: boolean | undefined;
|
|
441
454
|
} | undefined;
|
|
442
|
-
}, {
|
|
443
455
|
inputFiles?: {
|
|
444
456
|
useGenerated?: boolean | undefined;
|
|
445
457
|
values?: string[] | undefined;
|
|
@@ -452,14 +464,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
452
464
|
useGenerated?: boolean | undefined;
|
|
453
465
|
values?: string[] | undefined;
|
|
454
466
|
} | undefined;
|
|
455
|
-
options?: {
|
|
456
|
-
placedSvg?: boolean | undefined;
|
|
457
|
-
routedSvg?: boolean | undefined;
|
|
458
|
-
routedJson?: boolean | undefined;
|
|
459
|
-
} | undefined;
|
|
460
467
|
}>>;
|
|
461
468
|
}, "strip", z.ZodTypeAny, {
|
|
462
469
|
yosys?: {
|
|
470
|
+
options?: {
|
|
471
|
+
optimize?: boolean | undefined;
|
|
472
|
+
} | undefined;
|
|
463
473
|
inputFiles?: {
|
|
464
474
|
useGenerated: boolean;
|
|
465
475
|
values: string[];
|
|
@@ -472,11 +482,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
472
482
|
useGenerated: boolean;
|
|
473
483
|
values: string[];
|
|
474
484
|
} | undefined;
|
|
475
|
-
options?: {
|
|
476
|
-
optimize?: boolean | undefined;
|
|
477
|
-
} | undefined;
|
|
478
485
|
} | undefined;
|
|
479
486
|
nextpnr?: {
|
|
487
|
+
options?: {
|
|
488
|
+
placedSvg?: boolean | undefined;
|
|
489
|
+
routedSvg?: boolean | undefined;
|
|
490
|
+
routedJson?: boolean | undefined;
|
|
491
|
+
} | undefined;
|
|
480
492
|
inputFiles?: {
|
|
481
493
|
useGenerated: boolean;
|
|
482
494
|
values: string[];
|
|
@@ -489,14 +501,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
489
501
|
useGenerated: boolean;
|
|
490
502
|
values: string[];
|
|
491
503
|
} | undefined;
|
|
492
|
-
options?: {
|
|
493
|
-
placedSvg?: boolean | undefined;
|
|
494
|
-
routedSvg?: boolean | undefined;
|
|
495
|
-
routedJson?: boolean | undefined;
|
|
496
|
-
} | undefined;
|
|
497
504
|
} | undefined;
|
|
498
505
|
}, {
|
|
499
506
|
yosys?: {
|
|
507
|
+
options?: {
|
|
508
|
+
optimize?: boolean | undefined;
|
|
509
|
+
} | undefined;
|
|
500
510
|
inputFiles?: {
|
|
501
511
|
useGenerated?: boolean | undefined;
|
|
502
512
|
values?: string[] | undefined;
|
|
@@ -509,11 +519,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
509
519
|
useGenerated?: boolean | undefined;
|
|
510
520
|
values?: string[] | undefined;
|
|
511
521
|
} | undefined;
|
|
512
|
-
options?: {
|
|
513
|
-
optimize?: boolean | undefined;
|
|
514
|
-
} | undefined;
|
|
515
522
|
} | undefined;
|
|
516
523
|
nextpnr?: {
|
|
524
|
+
options?: {
|
|
525
|
+
placedSvg?: boolean | undefined;
|
|
526
|
+
routedSvg?: boolean | undefined;
|
|
527
|
+
routedJson?: boolean | undefined;
|
|
528
|
+
} | undefined;
|
|
517
529
|
inputFiles?: {
|
|
518
530
|
useGenerated?: boolean | undefined;
|
|
519
531
|
values?: string[] | undefined;
|
|
@@ -526,11 +538,6 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
526
538
|
useGenerated?: boolean | undefined;
|
|
527
539
|
values?: string[] | undefined;
|
|
528
540
|
} | undefined;
|
|
529
|
-
options?: {
|
|
530
|
-
placedSvg?: boolean | undefined;
|
|
531
|
-
routedSvg?: boolean | undefined;
|
|
532
|
-
routedJson?: boolean | undefined;
|
|
533
|
-
} | undefined;
|
|
534
541
|
} | undefined;
|
|
535
542
|
}>>;
|
|
536
543
|
targets: z.ZodArray<z.ZodObject<{
|
|
@@ -541,12 +548,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
541
548
|
device: z.ZodString;
|
|
542
549
|
package: z.ZodString;
|
|
543
550
|
directory: z.ZodOptional<z.ZodString>;
|
|
544
|
-
yosys: z.ZodOptional<z.ZodObject<{
|
|
545
|
-
inputFiles: z.ZodOptional<z.ZodObject<{
|
|
551
|
+
yosys: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
552
|
+
inputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
546
553
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
547
554
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
555
|
+
}, {
|
|
548
556
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
549
|
-
}
|
|
557
|
+
}>, "strip", z.ZodTypeAny, {
|
|
550
558
|
useGenerated: boolean;
|
|
551
559
|
values: string[];
|
|
552
560
|
useDefault: boolean;
|
|
@@ -555,11 +563,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
555
563
|
values?: string[] | undefined;
|
|
556
564
|
useDefault?: boolean | undefined;
|
|
557
565
|
}>>;
|
|
558
|
-
outputFiles: z.ZodOptional<z.ZodObject<{
|
|
566
|
+
outputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
559
567
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
560
568
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
569
|
+
}, {
|
|
561
570
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
562
|
-
}
|
|
571
|
+
}>, "strip", z.ZodTypeAny, {
|
|
563
572
|
useGenerated: boolean;
|
|
564
573
|
values: string[];
|
|
565
574
|
useDefault: boolean;
|
|
@@ -568,11 +577,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
568
577
|
values?: string[] | undefined;
|
|
569
578
|
useDefault?: boolean | undefined;
|
|
570
579
|
}>>;
|
|
571
|
-
|
|
580
|
+
}, {
|
|
581
|
+
commands: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
572
582
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
573
583
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
584
|
+
}, {
|
|
574
585
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
575
|
-
}
|
|
586
|
+
}>, "strip", z.ZodTypeAny, {
|
|
576
587
|
useGenerated: boolean;
|
|
577
588
|
values: string[];
|
|
578
589
|
useDefault: boolean;
|
|
@@ -588,7 +599,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
588
599
|
}, {
|
|
589
600
|
optimize?: boolean | undefined;
|
|
590
601
|
}>>;
|
|
591
|
-
}
|
|
602
|
+
}>, "strip", z.ZodTypeAny, {
|
|
603
|
+
options?: {
|
|
604
|
+
optimize?: boolean | undefined;
|
|
605
|
+
} | undefined;
|
|
592
606
|
inputFiles?: {
|
|
593
607
|
useGenerated: boolean;
|
|
594
608
|
values: string[];
|
|
@@ -604,10 +618,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
604
618
|
values: string[];
|
|
605
619
|
useDefault: boolean;
|
|
606
620
|
} | undefined;
|
|
621
|
+
}, {
|
|
607
622
|
options?: {
|
|
608
623
|
optimize?: boolean | undefined;
|
|
609
624
|
} | undefined;
|
|
610
|
-
}, {
|
|
611
625
|
inputFiles?: {
|
|
612
626
|
useGenerated?: boolean | undefined;
|
|
613
627
|
values?: string[] | undefined;
|
|
@@ -623,16 +637,14 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
623
637
|
values?: string[] | undefined;
|
|
624
638
|
useDefault?: boolean | undefined;
|
|
625
639
|
} | undefined;
|
|
626
|
-
options?: {
|
|
627
|
-
optimize?: boolean | undefined;
|
|
628
|
-
} | undefined;
|
|
629
640
|
}>>;
|
|
630
|
-
nextpnr: z.ZodOptional<z.ZodObject<{
|
|
631
|
-
inputFiles: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
nextpnr: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
642
|
+
inputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
632
643
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
633
644
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
645
|
+
}, {
|
|
634
646
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
635
|
-
}
|
|
647
|
+
}>, "strip", z.ZodTypeAny, {
|
|
636
648
|
useGenerated: boolean;
|
|
637
649
|
values: string[];
|
|
638
650
|
useDefault: boolean;
|
|
@@ -641,11 +653,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
641
653
|
values?: string[] | undefined;
|
|
642
654
|
useDefault?: boolean | undefined;
|
|
643
655
|
}>>;
|
|
644
|
-
outputFiles: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
outputFiles: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
645
657
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
646
658
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
659
|
+
}, {
|
|
647
660
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
648
|
-
}
|
|
661
|
+
}>, "strip", z.ZodTypeAny, {
|
|
649
662
|
useGenerated: boolean;
|
|
650
663
|
values: string[];
|
|
651
664
|
useDefault: boolean;
|
|
@@ -654,11 +667,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
654
667
|
values?: string[] | undefined;
|
|
655
668
|
useDefault?: boolean | undefined;
|
|
656
669
|
}>>;
|
|
657
|
-
|
|
670
|
+
}, {
|
|
671
|
+
arguments: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
658
672
|
useGenerated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
659
673
|
values: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
674
|
+
}, {
|
|
660
675
|
useDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
661
|
-
}
|
|
676
|
+
}>, "strip", z.ZodTypeAny, {
|
|
662
677
|
useGenerated: boolean;
|
|
663
678
|
values: string[];
|
|
664
679
|
useDefault: boolean;
|
|
@@ -680,7 +695,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
680
695
|
routedSvg?: boolean | undefined;
|
|
681
696
|
routedJson?: boolean | undefined;
|
|
682
697
|
}>>;
|
|
683
|
-
}
|
|
698
|
+
}>, "strip", z.ZodTypeAny, {
|
|
699
|
+
options?: {
|
|
700
|
+
placedSvg?: boolean | undefined;
|
|
701
|
+
routedSvg?: boolean | undefined;
|
|
702
|
+
routedJson?: boolean | undefined;
|
|
703
|
+
} | undefined;
|
|
684
704
|
inputFiles?: {
|
|
685
705
|
useGenerated: boolean;
|
|
686
706
|
values: string[];
|
|
@@ -696,12 +716,12 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
696
716
|
values: string[];
|
|
697
717
|
useDefault: boolean;
|
|
698
718
|
} | undefined;
|
|
719
|
+
}, {
|
|
699
720
|
options?: {
|
|
700
721
|
placedSvg?: boolean | undefined;
|
|
701
722
|
routedSvg?: boolean | undefined;
|
|
702
723
|
routedJson?: boolean | undefined;
|
|
703
724
|
} | undefined;
|
|
704
|
-
}, {
|
|
705
725
|
inputFiles?: {
|
|
706
726
|
useGenerated?: boolean | undefined;
|
|
707
727
|
values?: string[] | undefined;
|
|
@@ -717,11 +737,6 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
717
737
|
values?: string[] | undefined;
|
|
718
738
|
useDefault?: boolean | undefined;
|
|
719
739
|
} | undefined;
|
|
720
|
-
options?: {
|
|
721
|
-
placedSvg?: boolean | undefined;
|
|
722
|
-
routedSvg?: boolean | undefined;
|
|
723
|
-
routedJson?: boolean | undefined;
|
|
724
|
-
} | undefined;
|
|
725
740
|
}>>;
|
|
726
741
|
}, "strip", z.ZodTypeAny, {
|
|
727
742
|
id: string;
|
|
@@ -730,8 +745,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
730
745
|
family: string;
|
|
731
746
|
device: string;
|
|
732
747
|
package: string;
|
|
733
|
-
directory?: string | undefined;
|
|
734
748
|
yosys?: {
|
|
749
|
+
options?: {
|
|
750
|
+
optimize?: boolean | undefined;
|
|
751
|
+
} | undefined;
|
|
735
752
|
inputFiles?: {
|
|
736
753
|
useGenerated: boolean;
|
|
737
754
|
values: string[];
|
|
@@ -747,11 +764,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
747
764
|
values: string[];
|
|
748
765
|
useDefault: boolean;
|
|
749
766
|
} | undefined;
|
|
750
|
-
options?: {
|
|
751
|
-
optimize?: boolean | undefined;
|
|
752
|
-
} | undefined;
|
|
753
767
|
} | undefined;
|
|
754
768
|
nextpnr?: {
|
|
769
|
+
options?: {
|
|
770
|
+
placedSvg?: boolean | undefined;
|
|
771
|
+
routedSvg?: boolean | undefined;
|
|
772
|
+
routedJson?: boolean | undefined;
|
|
773
|
+
} | undefined;
|
|
755
774
|
inputFiles?: {
|
|
756
775
|
useGenerated: boolean;
|
|
757
776
|
values: string[];
|
|
@@ -767,12 +786,8 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
767
786
|
values: string[];
|
|
768
787
|
useDefault: boolean;
|
|
769
788
|
} | undefined;
|
|
770
|
-
options?: {
|
|
771
|
-
placedSvg?: boolean | undefined;
|
|
772
|
-
routedSvg?: boolean | undefined;
|
|
773
|
-
routedJson?: boolean | undefined;
|
|
774
|
-
} | undefined;
|
|
775
789
|
} | undefined;
|
|
790
|
+
directory?: string | undefined;
|
|
776
791
|
}, {
|
|
777
792
|
id: string;
|
|
778
793
|
name: string;
|
|
@@ -780,8 +795,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
780
795
|
family: string;
|
|
781
796
|
device: string;
|
|
782
797
|
package: string;
|
|
783
|
-
directory?: string | undefined;
|
|
784
798
|
yosys?: {
|
|
799
|
+
options?: {
|
|
800
|
+
optimize?: boolean | undefined;
|
|
801
|
+
} | undefined;
|
|
785
802
|
inputFiles?: {
|
|
786
803
|
useGenerated?: boolean | undefined;
|
|
787
804
|
values?: string[] | undefined;
|
|
@@ -797,11 +814,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
797
814
|
values?: string[] | undefined;
|
|
798
815
|
useDefault?: boolean | undefined;
|
|
799
816
|
} | undefined;
|
|
800
|
-
options?: {
|
|
801
|
-
optimize?: boolean | undefined;
|
|
802
|
-
} | undefined;
|
|
803
817
|
} | undefined;
|
|
804
818
|
nextpnr?: {
|
|
819
|
+
options?: {
|
|
820
|
+
placedSvg?: boolean | undefined;
|
|
821
|
+
routedSvg?: boolean | undefined;
|
|
822
|
+
routedJson?: boolean | undefined;
|
|
823
|
+
} | undefined;
|
|
805
824
|
inputFiles?: {
|
|
806
825
|
useGenerated?: boolean | undefined;
|
|
807
826
|
values?: string[] | undefined;
|
|
@@ -817,12 +836,8 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
817
836
|
values?: string[] | undefined;
|
|
818
837
|
useDefault?: boolean | undefined;
|
|
819
838
|
} | undefined;
|
|
820
|
-
options?: {
|
|
821
|
-
placedSvg?: boolean | undefined;
|
|
822
|
-
routedSvg?: boolean | undefined;
|
|
823
|
-
routedJson?: boolean | undefined;
|
|
824
|
-
} | undefined;
|
|
825
839
|
} | undefined;
|
|
840
|
+
directory?: string | undefined;
|
|
826
841
|
}>, "many">;
|
|
827
842
|
}, "strip", z.ZodTypeAny, {
|
|
828
843
|
targets: {
|
|
@@ -832,8 +847,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
832
847
|
family: string;
|
|
833
848
|
device: string;
|
|
834
849
|
package: string;
|
|
835
|
-
directory?: string | undefined;
|
|
836
850
|
yosys?: {
|
|
851
|
+
options?: {
|
|
852
|
+
optimize?: boolean | undefined;
|
|
853
|
+
} | undefined;
|
|
837
854
|
inputFiles?: {
|
|
838
855
|
useGenerated: boolean;
|
|
839
856
|
values: string[];
|
|
@@ -849,11 +866,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
849
866
|
values: string[];
|
|
850
867
|
useDefault: boolean;
|
|
851
868
|
} | undefined;
|
|
852
|
-
options?: {
|
|
853
|
-
optimize?: boolean | undefined;
|
|
854
|
-
} | undefined;
|
|
855
869
|
} | undefined;
|
|
856
870
|
nextpnr?: {
|
|
871
|
+
options?: {
|
|
872
|
+
placedSvg?: boolean | undefined;
|
|
873
|
+
routedSvg?: boolean | undefined;
|
|
874
|
+
routedJson?: boolean | undefined;
|
|
875
|
+
} | undefined;
|
|
857
876
|
inputFiles?: {
|
|
858
877
|
useGenerated: boolean;
|
|
859
878
|
values: string[];
|
|
@@ -869,15 +888,14 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
869
888
|
values: string[];
|
|
870
889
|
useDefault: boolean;
|
|
871
890
|
} | undefined;
|
|
872
|
-
options?: {
|
|
873
|
-
placedSvg?: boolean | undefined;
|
|
874
|
-
routedSvg?: boolean | undefined;
|
|
875
|
-
routedJson?: boolean | undefined;
|
|
876
|
-
} | undefined;
|
|
877
891
|
} | undefined;
|
|
892
|
+
directory?: string | undefined;
|
|
878
893
|
}[];
|
|
879
894
|
defaults?: {
|
|
880
895
|
yosys?: {
|
|
896
|
+
options?: {
|
|
897
|
+
optimize?: boolean | undefined;
|
|
898
|
+
} | undefined;
|
|
881
899
|
inputFiles?: {
|
|
882
900
|
useGenerated: boolean;
|
|
883
901
|
values: string[];
|
|
@@ -890,11 +908,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
890
908
|
useGenerated: boolean;
|
|
891
909
|
values: string[];
|
|
892
910
|
} | undefined;
|
|
893
|
-
options?: {
|
|
894
|
-
optimize?: boolean | undefined;
|
|
895
|
-
} | undefined;
|
|
896
911
|
} | undefined;
|
|
897
912
|
nextpnr?: {
|
|
913
|
+
options?: {
|
|
914
|
+
placedSvg?: boolean | undefined;
|
|
915
|
+
routedSvg?: boolean | undefined;
|
|
916
|
+
routedJson?: boolean | undefined;
|
|
917
|
+
} | undefined;
|
|
898
918
|
inputFiles?: {
|
|
899
919
|
useGenerated: boolean;
|
|
900
920
|
values: string[];
|
|
@@ -907,11 +927,6 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
907
927
|
useGenerated: boolean;
|
|
908
928
|
values: string[];
|
|
909
929
|
} | undefined;
|
|
910
|
-
options?: {
|
|
911
|
-
placedSvg?: boolean | undefined;
|
|
912
|
-
routedSvg?: boolean | undefined;
|
|
913
|
-
routedJson?: boolean | undefined;
|
|
914
|
-
} | undefined;
|
|
915
930
|
} | undefined;
|
|
916
931
|
} | undefined;
|
|
917
932
|
}, {
|
|
@@ -922,8 +937,10 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
922
937
|
family: string;
|
|
923
938
|
device: string;
|
|
924
939
|
package: string;
|
|
925
|
-
directory?: string | undefined;
|
|
926
940
|
yosys?: {
|
|
941
|
+
options?: {
|
|
942
|
+
optimize?: boolean | undefined;
|
|
943
|
+
} | undefined;
|
|
927
944
|
inputFiles?: {
|
|
928
945
|
useGenerated?: boolean | undefined;
|
|
929
946
|
values?: string[] | undefined;
|
|
@@ -939,11 +956,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
939
956
|
values?: string[] | undefined;
|
|
940
957
|
useDefault?: boolean | undefined;
|
|
941
958
|
} | undefined;
|
|
942
|
-
options?: {
|
|
943
|
-
optimize?: boolean | undefined;
|
|
944
|
-
} | undefined;
|
|
945
959
|
} | undefined;
|
|
946
960
|
nextpnr?: {
|
|
961
|
+
options?: {
|
|
962
|
+
placedSvg?: boolean | undefined;
|
|
963
|
+
routedSvg?: boolean | undefined;
|
|
964
|
+
routedJson?: boolean | undefined;
|
|
965
|
+
} | undefined;
|
|
947
966
|
inputFiles?: {
|
|
948
967
|
useGenerated?: boolean | undefined;
|
|
949
968
|
values?: string[] | undefined;
|
|
@@ -959,15 +978,14 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
959
978
|
values?: string[] | undefined;
|
|
960
979
|
useDefault?: boolean | undefined;
|
|
961
980
|
} | undefined;
|
|
962
|
-
options?: {
|
|
963
|
-
placedSvg?: boolean | undefined;
|
|
964
|
-
routedSvg?: boolean | undefined;
|
|
965
|
-
routedJson?: boolean | undefined;
|
|
966
|
-
} | undefined;
|
|
967
981
|
} | undefined;
|
|
982
|
+
directory?: string | undefined;
|
|
968
983
|
}[];
|
|
969
984
|
defaults?: {
|
|
970
985
|
yosys?: {
|
|
986
|
+
options?: {
|
|
987
|
+
optimize?: boolean | undefined;
|
|
988
|
+
} | undefined;
|
|
971
989
|
inputFiles?: {
|
|
972
990
|
useGenerated?: boolean | undefined;
|
|
973
991
|
values?: string[] | undefined;
|
|
@@ -980,11 +998,13 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
980
998
|
useGenerated?: boolean | undefined;
|
|
981
999
|
values?: string[] | undefined;
|
|
982
1000
|
} | undefined;
|
|
983
|
-
options?: {
|
|
984
|
-
optimize?: boolean | undefined;
|
|
985
|
-
} | undefined;
|
|
986
1001
|
} | undefined;
|
|
987
1002
|
nextpnr?: {
|
|
1003
|
+
options?: {
|
|
1004
|
+
placedSvg?: boolean | undefined;
|
|
1005
|
+
routedSvg?: boolean | undefined;
|
|
1006
|
+
routedJson?: boolean | undefined;
|
|
1007
|
+
} | undefined;
|
|
988
1008
|
inputFiles?: {
|
|
989
1009
|
useGenerated?: boolean | undefined;
|
|
990
1010
|
values?: string[] | undefined;
|
|
@@ -997,11 +1017,6 @@ export declare const schemaProjectConfiguration: z.ZodObject<{
|
|
|
997
1017
|
useGenerated?: boolean | undefined;
|
|
998
1018
|
values?: string[] | undefined;
|
|
999
1019
|
} | undefined;
|
|
1000
|
-
options?: {
|
|
1001
|
-
placedSvg?: boolean | undefined;
|
|
1002
|
-
routedSvg?: boolean | undefined;
|
|
1003
|
-
routedJson?: boolean | undefined;
|
|
1004
|
-
} | undefined;
|
|
1005
1020
|
} | undefined;
|
|
1006
1021
|
} | undefined;
|
|
1007
1022
|
}>;
|
package/dist/project/devices.js
CHANGED
|
@@ -121,6 +121,7 @@ exports.VENDORS = {
|
|
|
121
121
|
QFN72: '72-pin QFN (10 x 10 mm)',
|
|
122
122
|
qn32: '32-pin QFN (5 x 5 mm)',
|
|
123
123
|
qn84: '84-pin QFNS (7 x 7 mm)',
|
|
124
|
+
sg48: '48-pin SG48 (7 x 7 mm)',
|
|
124
125
|
swg16tr: '16-ball WLCSP (1.40 x 1.48 mm)',
|
|
125
126
|
tq144: '144-pin TQFP (20 x 20 mm)',
|
|
126
127
|
'tq144:4k': '144-pin TQFP (20 x 20 mm)',
|
|
@@ -253,7 +254,7 @@ exports.VENDORS = {
|
|
|
253
254
|
},
|
|
254
255
|
lp4k: {
|
|
255
256
|
name: 'LP4K',
|
|
256
|
-
device: '
|
|
257
|
+
device: 'lp4k',
|
|
257
258
|
packages: ['cm81:4k', 'cm121:4k', 'cm225:4k']
|
|
258
259
|
},
|
|
259
260
|
lp8k: {
|
|
@@ -268,13 +269,39 @@ exports.VENDORS = {
|
|
|
268
269
|
},
|
|
269
270
|
hx4k: {
|
|
270
271
|
name: 'HX4K',
|
|
271
|
-
device: '
|
|
272
|
+
device: 'hx4k',
|
|
272
273
|
packages: ['cb132:4k', 'tq144:4k', 'bg121:4k']
|
|
273
274
|
},
|
|
274
275
|
hx8k: {
|
|
275
276
|
name: 'HX8K',
|
|
276
277
|
device: 'hx8k',
|
|
277
278
|
packages: ['cm225', 'cb132', 'bg121', 'ct256']
|
|
279
|
+
},
|
|
280
|
+
// https://github.com/YosysHQ/nextpnr/blob/b7f91e57a0caf40dd23e3bada52c8595d53eb625/ice40/arch.h#L360
|
|
281
|
+
up3k: {
|
|
282
|
+
name: 'UP3K',
|
|
283
|
+
device: 'up3k',
|
|
284
|
+
packages: ['sg48']
|
|
285
|
+
},
|
|
286
|
+
up5k: {
|
|
287
|
+
name: 'UP5K',
|
|
288
|
+
device: 'up5k',
|
|
289
|
+
packages: ['sg48']
|
|
290
|
+
},
|
|
291
|
+
u1k: {
|
|
292
|
+
name: 'U1K',
|
|
293
|
+
device: 'iCE5LP1K',
|
|
294
|
+
packages: ['sg48']
|
|
295
|
+
},
|
|
296
|
+
u2k: {
|
|
297
|
+
name: 'iCE5LP2K',
|
|
298
|
+
device: 'u2k',
|
|
299
|
+
packages: ['sg48']
|
|
300
|
+
},
|
|
301
|
+
u4k: {
|
|
302
|
+
name: 'iCE5LP4K',
|
|
303
|
+
device: 'u4k',
|
|
304
|
+
packages: ['sg48']
|
|
278
305
|
}
|
|
279
306
|
}
|
|
280
307
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/project/devices.ts"],"names":[],"mappings":";;;AAyBa,QAAA,OAAO,GAA2B;IAC3C,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,gEAAgE;QACrE,QAAQ,EAAE;YACN,OAAO,EAAE,SAAS;SACrB;QACD,QAAQ,EAAE;YACN,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;gBACvB,OAAO,EAAE;oBACL,OAAO,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,SAAS;wBACjB,QAAQ,EAAE,CAAC,SAAS,CAAC;qBACxB;iBACJ;aACJ;SACJ;KACJ;IACD,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,uBAAuB;QAC5B,QAAQ,EAAE;YACN,KAAK,EAAE,uBAAuB;YAC9B,KAAK,EAAE,qBAAqB;YAC5B,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,qBAAqB;YAC5B,IAAI,EAAE,sBAAsB;SAC/B;QACD,QAAQ,EAAE;YACN,SAAS,EAAE;gBACP,IAAI,EAAE,WAAW;gBACjB,YAAY,EAAE,OAAO;gBACrB,GAAG,EAAE,gDAAgD;gBACrD,OAAO,EAAE;oBACL,QAAQ,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,QAAQ;wBAChB,uHAAuH;wBACvH,QAAQ,EAAE,CAAC,MAAM,CAAC;qBACrB;oBACD,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;aACJ;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;gBACvB,GAAG,EAAE,qCAAqC;gBAC1C,OAAO,EAAE;oBACL,SAAS,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,KAAK;wBACb,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,OAAO,CAAC;qBACtB;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,MAAM,EAAE,KAAK;wBACb,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,OAAO,CAAC;qBACtB;oBACD,2GAA2G;oBAC3G,UAAU,EAAE;wBACR,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE,MAAM;wBACd,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,OAAO,CAAC;qBACtB;oBACD,4GAA4G;oBAC5G,UAAU,EAAE;wBACR,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE,MAAM;wBACd,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,SAAS,CAAC;qBACxB;oBACD,4GAA4G;oBAC5G,UAAU,EAAE;wBACR,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE,MAAM;wBACd,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,SAAS,CAAC;qBACxB;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE,MAAM;wBACd,yHAAyH;wBACzH,QAAQ,EAAE,CAAC,SAAS,CAAC;qBACxB;iBACJ;aACJ;SACJ;KACJ;CAC6B,CAAC"}
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { type ProjectConfiguration } from './configuration.js';
|
|
2
|
+
type ProjectTarget = ProjectConfiguration['targets'][number];
|
|
3
|
+
export interface ProjectOutputFileState {
|
|
4
|
+
path: string;
|
|
5
|
+
targetId: string | null;
|
|
6
|
+
stale: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class ProjectOutputFile {
|
|
9
|
+
private _project;
|
|
10
|
+
private _path;
|
|
11
|
+
private _targetId;
|
|
12
|
+
private _stale;
|
|
13
|
+
constructor(_project: Project, _path: string, _targetId?: string | null, _stale?: boolean);
|
|
14
|
+
get path(): string;
|
|
15
|
+
get targetId(): string | null;
|
|
16
|
+
set targetId(id: string | null);
|
|
17
|
+
get target(): ProjectTarget | null;
|
|
18
|
+
get stale(): boolean;
|
|
19
|
+
set stale(isStale: boolean);
|
|
20
|
+
static serialize(file: ProjectOutputFile): ProjectOutputFileState;
|
|
21
|
+
static deserialize(project: Project, data: ProjectOutputFileState | string, ..._args: unknown[]): ProjectOutputFile;
|
|
22
|
+
}
|
|
2
23
|
export interface ProjectState {
|
|
3
24
|
name: string;
|
|
4
25
|
inputFiles: string[];
|
|
5
|
-
outputFiles: string[];
|
|
26
|
+
outputFiles: ProjectOutputFileState[] | string[];
|
|
6
27
|
configuration: ProjectConfiguration;
|
|
7
28
|
}
|
|
8
29
|
export declare class Project {
|
|
@@ -10,16 +31,21 @@ export declare class Project {
|
|
|
10
31
|
private inputFiles;
|
|
11
32
|
private outputFiles;
|
|
12
33
|
private configuration;
|
|
13
|
-
constructor(name: string, inputFiles?: string[], outputFiles?: string[], configuration?: ProjectConfiguration);
|
|
34
|
+
constructor(name: string, inputFiles?: string[], outputFiles?: ProjectOutputFileState[] | string[], configuration?: ProjectConfiguration);
|
|
14
35
|
getName(): string;
|
|
15
36
|
getInputFiles(): string[];
|
|
16
37
|
hasInputFile(filePath: string): boolean;
|
|
17
38
|
addInputFiles(filePaths: string[]): void;
|
|
18
39
|
removeInputFiles(filePaths: string[]): void;
|
|
19
|
-
getOutputFiles():
|
|
40
|
+
getOutputFiles(): ProjectOutputFile[];
|
|
20
41
|
hasOutputFile(filePath: string): boolean;
|
|
21
|
-
|
|
42
|
+
getOutputFile(filePath: string): ProjectOutputFile | null;
|
|
43
|
+
addOutputFiles(files: {
|
|
44
|
+
path: string;
|
|
45
|
+
targetId: string;
|
|
46
|
+
}[]): void;
|
|
22
47
|
removeOutputFiles(filePaths: string[]): void;
|
|
48
|
+
expireOutputFiles(): void;
|
|
23
49
|
getConfiguration(): {
|
|
24
50
|
targets: {
|
|
25
51
|
id: string;
|
|
@@ -28,8 +54,10 @@ export declare class Project {
|
|
|
28
54
|
family: string;
|
|
29
55
|
device: string;
|
|
30
56
|
package: string;
|
|
31
|
-
directory?: string | undefined;
|
|
32
57
|
yosys?: {
|
|
58
|
+
options?: {
|
|
59
|
+
optimize?: boolean | undefined;
|
|
60
|
+
} | undefined;
|
|
33
61
|
inputFiles?: {
|
|
34
62
|
useGenerated: boolean;
|
|
35
63
|
values: string[];
|
|
@@ -45,11 +73,13 @@ export declare class Project {
|
|
|
45
73
|
values: string[];
|
|
46
74
|
useDefault: boolean;
|
|
47
75
|
} | undefined;
|
|
48
|
-
options?: {
|
|
49
|
-
optimize?: boolean | undefined;
|
|
50
|
-
} | undefined;
|
|
51
76
|
} | undefined;
|
|
52
77
|
nextpnr?: {
|
|
78
|
+
options?: {
|
|
79
|
+
placedSvg?: boolean | undefined;
|
|
80
|
+
routedSvg?: boolean | undefined;
|
|
81
|
+
routedJson?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
53
83
|
inputFiles?: {
|
|
54
84
|
useGenerated: boolean;
|
|
55
85
|
values: string[];
|
|
@@ -65,15 +95,14 @@ export declare class Project {
|
|
|
65
95
|
values: string[];
|
|
66
96
|
useDefault: boolean;
|
|
67
97
|
} | undefined;
|
|
68
|
-
options?: {
|
|
69
|
-
placedSvg?: boolean | undefined;
|
|
70
|
-
routedSvg?: boolean | undefined;
|
|
71
|
-
routedJson?: boolean | undefined;
|
|
72
|
-
} | undefined;
|
|
73
98
|
} | undefined;
|
|
99
|
+
directory?: string | undefined;
|
|
74
100
|
}[];
|
|
75
101
|
defaults?: {
|
|
76
102
|
yosys?: {
|
|
103
|
+
options?: {
|
|
104
|
+
optimize?: boolean | undefined;
|
|
105
|
+
} | undefined;
|
|
77
106
|
inputFiles?: {
|
|
78
107
|
useGenerated: boolean;
|
|
79
108
|
values: string[];
|
|
@@ -86,11 +115,13 @@ export declare class Project {
|
|
|
86
115
|
useGenerated: boolean;
|
|
87
116
|
values: string[];
|
|
88
117
|
} | undefined;
|
|
89
|
-
options?: {
|
|
90
|
-
optimize?: boolean | undefined;
|
|
91
|
-
} | undefined;
|
|
92
118
|
} | undefined;
|
|
93
119
|
nextpnr?: {
|
|
120
|
+
options?: {
|
|
121
|
+
placedSvg?: boolean | undefined;
|
|
122
|
+
routedSvg?: boolean | undefined;
|
|
123
|
+
routedJson?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
94
125
|
inputFiles?: {
|
|
95
126
|
useGenerated: boolean;
|
|
96
127
|
values: string[];
|
|
@@ -103,17 +134,14 @@ export declare class Project {
|
|
|
103
134
|
useGenerated: boolean;
|
|
104
135
|
values: string[];
|
|
105
136
|
} | undefined;
|
|
106
|
-
options?: {
|
|
107
|
-
placedSvg?: boolean | undefined;
|
|
108
|
-
routedSvg?: boolean | undefined;
|
|
109
|
-
routedJson?: boolean | undefined;
|
|
110
|
-
} | undefined;
|
|
111
137
|
} | undefined;
|
|
112
138
|
} | undefined;
|
|
113
139
|
};
|
|
114
140
|
updateConfiguration(configuration: Partial<ProjectConfiguration>): void;
|
|
141
|
+
getTarget(id: string): ProjectTarget | null;
|
|
115
142
|
static serialize(project: Project): ProjectState;
|
|
116
143
|
static deserialize(data: ProjectState, ..._args: unknown[]): Project;
|
|
117
144
|
static loadFromData(rawData: Uint8Array): Project;
|
|
118
145
|
static storeToData(project: Project): Uint8Array;
|
|
119
146
|
}
|
|
147
|
+
export {};
|
package/dist/project/project.js
CHANGED
|
@@ -1,13 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Project = void 0;
|
|
3
|
+
exports.Project = exports.ProjectOutputFile = void 0;
|
|
4
4
|
const util_js_1 = require("../util.js");
|
|
5
5
|
const configuration_js_1 = require("./configuration.js");
|
|
6
|
+
class ProjectOutputFile {
|
|
7
|
+
constructor(_project, _path, _targetId = null, _stale = false) {
|
|
8
|
+
this._project = _project;
|
|
9
|
+
this._path = _path;
|
|
10
|
+
this._targetId = _targetId;
|
|
11
|
+
this._stale = _stale;
|
|
12
|
+
}
|
|
13
|
+
get path() {
|
|
14
|
+
return this._path;
|
|
15
|
+
}
|
|
16
|
+
get targetId() {
|
|
17
|
+
return this._targetId;
|
|
18
|
+
}
|
|
19
|
+
set targetId(id) {
|
|
20
|
+
if (id !== null && this._project.getTarget(id) === null) {
|
|
21
|
+
throw new Error(`Invalid target id: ${id}`);
|
|
22
|
+
}
|
|
23
|
+
this._targetId = id;
|
|
24
|
+
}
|
|
25
|
+
get target() {
|
|
26
|
+
if (!this._targetId)
|
|
27
|
+
return null;
|
|
28
|
+
return this._project.getTarget(this._targetId);
|
|
29
|
+
}
|
|
30
|
+
get stale() {
|
|
31
|
+
return this._stale;
|
|
32
|
+
}
|
|
33
|
+
set stale(isStale) {
|
|
34
|
+
this._stale = isStale;
|
|
35
|
+
}
|
|
36
|
+
static serialize(file) {
|
|
37
|
+
return {
|
|
38
|
+
path: file.path,
|
|
39
|
+
targetId: file.targetId,
|
|
40
|
+
stale: file.stale
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static deserialize(project, data, ..._args) {
|
|
44
|
+
// Older versions of this module (<= 0.3.6) stored output files as an array of paths instead,
|
|
45
|
+
// so we need to migrate if data is a string (single output file).
|
|
46
|
+
if (typeof data === 'string') {
|
|
47
|
+
data = { path: data, targetId: null, stale: false };
|
|
48
|
+
}
|
|
49
|
+
return new ProjectOutputFile(project, data.path, data.targetId, data.stale);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ProjectOutputFile = ProjectOutputFile;
|
|
6
53
|
class Project {
|
|
7
54
|
constructor(name, inputFiles = [], outputFiles = [], configuration = configuration_js_1.DEFAULT_CONFIGURATION) {
|
|
8
55
|
this.name = name;
|
|
9
56
|
this.inputFiles = inputFiles;
|
|
10
|
-
this.outputFiles = outputFiles;
|
|
57
|
+
this.outputFiles = outputFiles.map((file) => ProjectOutputFile.deserialize(this, file));
|
|
11
58
|
const config = configuration_js_1.schemaProjectConfiguration.safeParse(configuration);
|
|
12
59
|
if (config.success) {
|
|
13
60
|
this.configuration = config.data;
|
|
@@ -15,6 +62,8 @@ class Project {
|
|
|
15
62
|
else {
|
|
16
63
|
throw new Error(`Failed to parse project configuration: ${config.error.toString()}`);
|
|
17
64
|
}
|
|
65
|
+
// Trigger a config 'update' to deploy any modifications it might want to make
|
|
66
|
+
this.updateConfiguration({});
|
|
18
67
|
}
|
|
19
68
|
getName() {
|
|
20
69
|
return this.name;
|
|
@@ -42,20 +91,37 @@ class Project {
|
|
|
42
91
|
return this.outputFiles;
|
|
43
92
|
}
|
|
44
93
|
hasOutputFile(filePath) {
|
|
45
|
-
return this.
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
94
|
+
return this.getOutputFile(filePath) !== null;
|
|
95
|
+
}
|
|
96
|
+
getOutputFile(filePath) {
|
|
97
|
+
return this.outputFiles.find((file) => file.path === filePath) ?? null;
|
|
98
|
+
}
|
|
99
|
+
addOutputFiles(files) {
|
|
100
|
+
for (const file of files) {
|
|
101
|
+
const existingOutFile = this.getOutputFile(file.path);
|
|
102
|
+
if (existingOutFile) {
|
|
103
|
+
// File already exists, so we don't want to add it again.
|
|
104
|
+
// But, we should make sure the target ID gets updated and set `stale` to false.
|
|
105
|
+
existingOutFile.targetId = file.targetId;
|
|
106
|
+
existingOutFile.stale = false;
|
|
107
|
+
continue;
|
|
51
108
|
}
|
|
109
|
+
const outputFile = new ProjectOutputFile(this, file.path, file.targetId);
|
|
110
|
+
if (outputFile.target === null)
|
|
111
|
+
throw new Error(`Invalid target ID: ${file.targetId}`);
|
|
112
|
+
this.outputFiles.push(outputFile);
|
|
52
113
|
}
|
|
53
114
|
this.outputFiles.sort((a, b) => {
|
|
54
115
|
return a < b ? -1 : 1;
|
|
55
116
|
});
|
|
56
117
|
}
|
|
57
118
|
removeOutputFiles(filePaths) {
|
|
58
|
-
this.outputFiles = this.outputFiles.filter((file) => !filePaths.includes(file));
|
|
119
|
+
this.outputFiles = this.outputFiles.filter((file) => !filePaths.includes(file.path));
|
|
120
|
+
}
|
|
121
|
+
expireOutputFiles() {
|
|
122
|
+
for (const file of this.outputFiles) {
|
|
123
|
+
file.stale = true;
|
|
124
|
+
}
|
|
59
125
|
}
|
|
60
126
|
getConfiguration() {
|
|
61
127
|
return this.configuration;
|
|
@@ -65,12 +131,21 @@ class Project {
|
|
|
65
131
|
...this.configuration,
|
|
66
132
|
...configuration
|
|
67
133
|
};
|
|
134
|
+
// Unset 'lingering' output file target IDs
|
|
135
|
+
for (const outFile of this.outputFiles) {
|
|
136
|
+
if (!outFile.target)
|
|
137
|
+
outFile.targetId = null;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
getTarget(id) {
|
|
141
|
+
const targets = this.configuration.targets;
|
|
142
|
+
return targets.find((target) => target.id === id) ?? null;
|
|
68
143
|
}
|
|
69
144
|
static serialize(project) {
|
|
70
145
|
return {
|
|
71
146
|
name: project.name,
|
|
72
147
|
inputFiles: project.inputFiles,
|
|
73
|
-
outputFiles: project.outputFiles,
|
|
148
|
+
outputFiles: project.outputFiles.map((file) => ProjectOutputFile.serialize(file)),
|
|
74
149
|
configuration: project.configuration
|
|
75
150
|
};
|
|
76
151
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/project/project.ts"],"names":[],"mappings":";;;AAAA,wCAAkD;AAElD,yDAAgH;
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/project/project.ts"],"names":[],"mappings":";;;AAAA,wCAAkD;AAElD,yDAAgH;AAUhH,MAAa,iBAAiB;IAC1B,YACY,QAAiB,EACjB,KAAa,EACb,YA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OAAO,CAAC,CAAC;QACxC,OAAO,IAAA,oBAAU,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ;AArJD,0BAqJC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "edacation",
|
|
3
3
|
"description": "Library and CLI for interacting with Yosys and nextpnr.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.7",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Danielle Huisman <danielle@huisman.me> (https://github.com/DanielleHuisman)",
|
|
8
8
|
"Mike Almeloo <git@mikealmel.ooo> (https://github.com/DismissedGuy)"
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
"dev": "node --loader ts-node/esm src/cli/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@types/node": "^20.11.0",
|
|
36
|
-
"@types/yargs": "^17.0.32",
|
|
37
35
|
"string-args-parser": "^1.0.4",
|
|
38
36
|
"yargs": "^17.7.2",
|
|
39
|
-
"zod": "^3.
|
|
37
|
+
"zod": "^3.23.8"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
40
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"eslint": "^
|
|
41
|
+
"@types/node": "^20.14.8",
|
|
42
|
+
"@types/yargs": "^17.0.32",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
44
|
+
"@typescript-eslint/parser": "^7.13.0",
|
|
45
|
+
"eslint": "^8.57.0",
|
|
46
46
|
"eslint-config-google": "^0.14.0",
|
|
47
47
|
"eslint-plugin-import": "^2.29.1",
|
|
48
|
-
"prettier": "^3.2
|
|
48
|
+
"prettier": "^3.3.2",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
|
-
"typescript": "^5.
|
|
50
|
+
"typescript": "^5.4.5"
|
|
51
51
|
}
|
|
52
52
|
}
|