|
|
@@ -2,119 +2,80 @@
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
"$id": "prod2u-p4-normal-v3-td-build-receipt-v2",
|
|
|
"type": "object",
|
|
|
- "propertyNames": {"not": {"pattern": "^build_(?:id|identity)$"}},
|
|
|
"required": [
|
|
|
- "schema", "status", "build_mode", "resource_variant", "top", "top_module",
|
|
|
- "pin_profile", "profile", "runtime_profile", "verification_run_id", "safety"
|
|
|
+ "schema",
|
|
|
+ "status",
|
|
|
+ "verification_run_id",
|
|
|
+ "run_id",
|
|
|
+ "commit_full",
|
|
|
+ "bitstream_sha256"
|
|
|
],
|
|
|
"properties": {
|
|
|
- "schema": {"const": "prod2u-p4-normal-v3-td-build-receipt-v2"},
|
|
|
- "status": {"type": "string"},
|
|
|
- "build_mode": {"const": "production"},
|
|
|
- "resource_variant": {"const": "minimal_production"},
|
|
|
- "top": {"const": "prod2u_p4_normal_v3"},
|
|
|
- "top_module": {"const": "prod2u_p4_normal_v3_top"},
|
|
|
- "pin_profile": {"const": "prod2u-p4-normal-v3"},
|
|
|
- "profile": {"const": "prod2u_p4_normal_v3"},
|
|
|
- "runtime_profile": {"const": "prod2u-door-temp-115200-v1"},
|
|
|
- "verification_run_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
|
|
|
- "run_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
|
|
|
- "work_root": {"type": "string", "pattern": "^[A-Za-z]:[\\\\/]"},
|
|
|
- "commit": {"type": "string", "pattern": "^[0-9a-f]{8}$"},
|
|
|
- "bitstream_sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
|
|
|
- "synthesis_input_hash": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
|
- "resources": {"type": ["object", "null"]},
|
|
|
- "timing": {"type": ["object", "null"]},
|
|
|
- "structural_gate": {"$ref": "#/$defs/structuralGate"},
|
|
|
- "timing_gate": {"type": "object"},
|
|
|
- "source_binding_gate": {"type": "object"},
|
|
|
- "pin_binding_gate": {"type": "object"},
|
|
|
- "post_route_pin_gate": {"type": "object"},
|
|
|
- "binding_gate": {"type": "object"},
|
|
|
- "syn": {"type": ["object", "null"]},
|
|
|
- "phy": {"type": ["object", "null"]},
|
|
|
- "bitgen": {"type": ["object", "null"]},
|
|
|
- "bitstream": {"type": ["object", "null"]},
|
|
|
- "error_summary": {"type": "object"},
|
|
|
- "resource_gate": {"type": "object"},
|
|
|
- "resource_delta": {"type": "object"},
|
|
|
+ "schema": {
|
|
|
+ "enum": [
|
|
|
+ "prod2u-p4-normal-v3-td-build-receipt-v2",
|
|
|
+ "prod2u-p4-normal-v3-td-build-receipt-v1"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "status": {
|
|
|
+ "enum": [
|
|
|
+ "pass",
|
|
|
+ "fail",
|
|
|
+ "blocked",
|
|
|
+ "not_run"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "verification_run_id": {
|
|
|
+ "type": "string",
|
|
|
+ "minLength": 8
|
|
|
+ },
|
|
|
+ "run_id": {
|
|
|
+ "type": "string",
|
|
|
+ "minLength": 8
|
|
|
+ },
|
|
|
+ "commit": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^[0-9a-f]{7,64}$"
|
|
|
+ },
|
|
|
+ "commit_full": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^[0-9a-f]{40}$"
|
|
|
+ },
|
|
|
+ "commit_short": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^[0-9a-f]{7,16}$"
|
|
|
+ },
|
|
|
+ "bitstream_sha256": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^[0-9a-f]{64}$"
|
|
|
+ },
|
|
|
+ "work_root": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^([A-Za-z]:[\\\\/]|/)"
|
|
|
+ },
|
|
|
+ "resources": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "timing": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "tool_version": {
|
|
|
+ "type": [
|
|
|
+ "string",
|
|
|
+ "object"
|
|
|
+ ]
|
|
|
+ },
|
|
|
"safety": {
|
|
|
- "const": {"opens_serial": false, "programs_hardware": false, "installs_drivers": false}
|
|
|
- }
|
|
|
- },
|
|
|
- "allOf": [
|
|
|
- {
|
|
|
- "if": {"properties": {"status": {"const": "pass"}}, "required": ["status"]},
|
|
|
- "then": {
|
|
|
- "required": [
|
|
|
- "run_id", "work_root", "commit", "bitstream_sha256", "synthesis_input_hash", "resources", "timing",
|
|
|
- "structural_gate", "timing_gate", "source_binding_gate", "pin_binding_gate", "post_route_pin_gate",
|
|
|
- "binding_gate", "syn", "phy", "bitgen", "bitstream", "error_summary",
|
|
|
- "resource_gate", "resource_delta"
|
|
|
- ],
|
|
|
- "properties": {
|
|
|
- "bitstream_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
|
- "structural_gate": {"properties": {"status": {"const": "pass"}}},
|
|
|
- "timing_gate": {"properties": {"status": {"const": "pass"}}},
|
|
|
- "source_binding_gate": {"properties": {"status": {"const": "pass"}}},
|
|
|
- "pin_binding_gate": {"properties": {"status": {"const": "pass"}}},
|
|
|
- "post_route_pin_gate": {"properties": {"status": {"const": "pass"}}},
|
|
|
- "binding_gate": {"properties": {"status": {"const": "pass"}}}
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- "$defs": {
|
|
|
- "structuralGate": {
|
|
|
- "type": "object",
|
|
|
- "required": ["status", "resources", "pins", "cdc", "failures"],
|
|
|
- "properties": {
|
|
|
- "status": {"enum": ["pass", "fail"]},
|
|
|
- "resources": {
|
|
|
- "type": "object",
|
|
|
- "required": ["status", "required", "failures"],
|
|
|
- "properties": {
|
|
|
- "status": {"enum": ["pass", "fail"]},
|
|
|
- "required": {
|
|
|
- "const": {
|
|
|
- "bram": "reported_nonnegative_integer",
|
|
|
- "bram32k": "reported_nonnegative_integer",
|
|
|
- "bram128k": "reported_nonnegative_integer",
|
|
|
- "bram256k": "reported_nonnegative_integer",
|
|
|
- "dsp": "reported_nonnegative_integer",
|
|
|
- "pad": 43,
|
|
|
- "ireg": 0
|
|
|
- }
|
|
|
- },
|
|
|
- "failures": {"type": "array", "items": {"type": "string"}}
|
|
|
- }
|
|
|
- },
|
|
|
- "pins": {
|
|
|
- "type": "object",
|
|
|
- "required": ["status", "row_count", "required", "observed", "forbidden_location", "failures"],
|
|
|
- "properties": {
|
|
|
- "status": {"enum": ["pass", "fail"]},
|
|
|
- "row_count": {"type": "integer", "minimum": 0},
|
|
|
- "required": {"type": "object"},
|
|
|
- "observed": {"type": "object"},
|
|
|
- "forbidden_location": {"const": "A5"},
|
|
|
- "failures": {"type": "array", "items": {"type": "string"}}
|
|
|
- }
|
|
|
- },
|
|
|
- "cdc": {
|
|
|
- "type": "object",
|
|
|
- "required": ["status", "async_reg", "input_registers", "retained_sync_registers", "first_stage_endpoints", "failures"],
|
|
|
- "properties": {
|
|
|
- "status": {"enum": ["pass", "fail"]},
|
|
|
- "async_reg": {"properties": {"used": {"const": 6}}},
|
|
|
- "input_registers": {"properties": {"used": {"const": 0}}},
|
|
|
- "retained_sync_registers": {"properties": {"used": {"const": 6}}},
|
|
|
- "first_stage_endpoints": {"properties": {"used": {"const": 3}}},
|
|
|
- "failures": {"type": "array", "items": {"type": "string"}}
|
|
|
- }
|
|
|
- },
|
|
|
- "failures": {"type": "array", "items": {"type": "string"}}
|
|
|
- }
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "structural_gate": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "measurement_artifacts": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "hardware_validation": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
"additionalProperties": true
|