Skip to content

Commit c66f300

Browse files
authored
Add optional DRC disable flags to platformConfig (#608)
1 parent 7193bae commit c66f300

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,9 @@ export interface PlatformConfig {
18871887
routingDisabled?: boolean;
18881888
schematicDisabled?: boolean;
18891889
partsEngineDisabled?: boolean;
1890+
netlistDrcChecksDisabled?: boolean;
1891+
routingDrcChecksDisabled?: boolean;
1892+
placementDrcChecksDisabled?: boolean;
18901893

18911894
spiceEngineMap?: Record<string, SpiceEngine>;
18921895

generated/PROPS_OVERVIEW.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,9 @@ export interface PlatformConfig {
16261626
routingDisabled?: boolean
16271627
schematicDisabled?: boolean
16281628
partsEngineDisabled?: boolean
1629+
netlistDrcChecksDisabled?: boolean
1630+
routingDrcChecksDisabled?: boolean
1631+
placementDrcChecksDisabled?: boolean
16291632

16301633
spiceEngineMap?: Record<string, SpiceEngine>
16311634

lib/platformConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ export interface PlatformConfig {
7575
routingDisabled?: boolean
7676
schematicDisabled?: boolean
7777
partsEngineDisabled?: boolean
78+
netlistDrcChecksDisabled?: boolean
79+
routingDrcChecksDisabled?: boolean
80+
placementDrcChecksDisabled?: boolean
7881

7982
spiceEngineMap?: Record<string, SpiceEngine>
8083

@@ -205,6 +208,9 @@ export const platformConfig = z.object({
205208
routingDisabled: z.boolean().optional(),
206209
schematicDisabled: z.boolean().optional(),
207210
partsEngineDisabled: z.boolean().optional(),
211+
netlistDrcChecksDisabled: z.boolean().optional(),
212+
routingDrcChecksDisabled: z.boolean().optional(),
213+
placementDrcChecksDisabled: z.boolean().optional(),
208214
spiceEngineMap: z.record(z.string(), spiceEngineZod).optional(),
209215
footprintLibraryMap: z
210216
.record(
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { expect, test } from "bun:test"
2+
import { platformConfig } from "lib/platformConfig"
3+
4+
test("platformConfig accepts optional DRC check disable flags", () => {
5+
const config = platformConfig.parse({
6+
netlistDrcChecksDisabled: true,
7+
routingDrcChecksDisabled: false,
8+
placementDrcChecksDisabled: true,
9+
})
10+
11+
expect(config.netlistDrcChecksDisabled).toBe(true)
12+
expect(config.routingDrcChecksDisabled).toBe(false)
13+
expect(config.placementDrcChecksDisabled).toBe(true)
14+
})

0 commit comments

Comments
 (0)