prod2u_p4_normal_v3_td_build_receipt.schema.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "prod2u-p4-normal-v3-td-build-receipt-v2",
  4. "type": "object",
  5. "propertyNames": {"not": {"pattern": "^build_(?:id|identity)$"}},
  6. "required": [
  7. "schema", "status", "build_mode", "resource_variant", "top", "top_module",
  8. "pin_profile", "profile", "runtime_profile", "verification_run_id", "safety"
  9. ],
  10. "properties": {
  11. "schema": {"const": "prod2u-p4-normal-v3-td-build-receipt-v2"},
  12. "status": {"type": "string"},
  13. "build_mode": {"const": "production"},
  14. "resource_variant": {"const": "minimal_production"},
  15. "top": {"const": "prod2u_p4_normal_v3"},
  16. "top_module": {"const": "prod2u_p4_normal_v3_top"},
  17. "pin_profile": {"const": "prod2u-p4-normal-v3"},
  18. "profile": {"const": "prod2u_p4_normal_v3"},
  19. "runtime_profile": {"const": "prod2u-p4-normal-actuator-binary921-v3"},
  20. "verification_run_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
  21. "run_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
  22. "work_root": {"type": "string", "pattern": "^[A-Za-z]:[\\\\/]"},
  23. "commit": {"type": "string", "pattern": "^[0-9a-f]{8}$"},
  24. "bitstream_sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
  25. "synthesis_input_hash": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
  26. "resources": {"type": ["object", "null"]},
  27. "timing": {"type": ["object", "null"]},
  28. "structural_gate": {"$ref": "#/$defs/structuralGate"},
  29. "timing_gate": {"type": "object"},
  30. "source_binding_gate": {"type": "object"},
  31. "pin_binding_gate": {"type": "object"},
  32. "post_route_pin_gate": {"type": "object"},
  33. "binding_gate": {"type": "object"},
  34. "syn": {"type": ["object", "null"]},
  35. "phy": {"type": ["object", "null"]},
  36. "bitgen": {"type": ["object", "null"]},
  37. "bitstream": {"type": ["object", "null"]},
  38. "error_summary": {"type": "object"},
  39. "resource_gate": {"type": "object"},
  40. "resource_delta": {"type": "object"},
  41. "safety": {
  42. "const": {"opens_serial": false, "programs_hardware": false, "installs_drivers": false}
  43. }
  44. },
  45. "allOf": [
  46. {
  47. "if": {"properties": {"status": {"const": "pass"}}, "required": ["status"]},
  48. "then": {
  49. "required": [
  50. "run_id", "work_root", "commit", "bitstream_sha256", "synthesis_input_hash", "resources", "timing",
  51. "structural_gate", "timing_gate", "source_binding_gate", "pin_binding_gate", "post_route_pin_gate",
  52. "binding_gate", "syn", "phy", "bitgen", "bitstream", "error_summary",
  53. "resource_gate", "resource_delta"
  54. ],
  55. "properties": {
  56. "bitstream_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
  57. "structural_gate": {"properties": {"status": {"const": "pass"}}},
  58. "timing_gate": {"properties": {"status": {"const": "pass"}}},
  59. "source_binding_gate": {"properties": {"status": {"const": "pass"}}},
  60. "pin_binding_gate": {"properties": {"status": {"const": "pass"}}},
  61. "post_route_pin_gate": {"properties": {"status": {"const": "pass"}}},
  62. "binding_gate": {"properties": {"status": {"const": "pass"}}}
  63. }
  64. }
  65. }
  66. ],
  67. "$defs": {
  68. "structuralGate": {
  69. "type": "object",
  70. "required": ["status", "resources", "pins", "cdc", "fsm_encoding", "failures"],
  71. "properties": {
  72. "status": {"enum": ["pass", "fail"]},
  73. "resources": {
  74. "type": "object",
  75. "required": ["status", "required", "failures"],
  76. "properties": {
  77. "status": {"enum": ["pass", "fail"]},
  78. "required": {
  79. "const": {
  80. "bram": "reported_nonnegative_integer",
  81. "bram32k": "reported_nonnegative_integer",
  82. "bram128k": "reported_nonnegative_integer",
  83. "bram256k": "reported_nonnegative_integer",
  84. "dsp": "reported_nonnegative_integer",
  85. "pad": 43,
  86. "ireg": 0
  87. }
  88. },
  89. "failures": {"type": "array", "items": {"type": "string"}}
  90. }
  91. },
  92. "pins": {
  93. "type": "object",
  94. "required": ["status", "row_count", "required", "observed", "forbidden_location", "failures"],
  95. "properties": {
  96. "status": {"enum": ["pass", "fail"]},
  97. "row_count": {"type": "integer", "minimum": 0},
  98. "required": {"type": "object"},
  99. "observed": {"type": "object"},
  100. "forbidden_location": {"const": "A5"},
  101. "failures": {"type": "array", "items": {"type": "string"}}
  102. }
  103. },
  104. "cdc": {
  105. "type": "object",
  106. "required": ["status", "async_reg", "input_registers", "retained_sync_registers", "first_stage_endpoints", "failures"],
  107. "properties": {
  108. "status": {"enum": ["pass", "fail"]},
  109. "async_reg": {"properties": {"used": {"const": 6}}},
  110. "input_registers": {"properties": {"used": {"const": 0}}},
  111. "retained_sync_registers": {"properties": {"used": {"const": 6}}},
  112. "first_stage_endpoints": {"properties": {"used": {"const": 3}}},
  113. "failures": {"type": "array", "items": {"type": "string"}}
  114. }
  115. },
  116. "fsm_encoding": {
  117. "type": "object",
  118. "required": ["status", "encoding", "axes", "td_log_marker", "reencoded_motion_phase_count", "failures"],
  119. "properties": {
  120. "status": {"enum": ["pass", "fail"]},
  121. "encoding": {"type": ["string", "null"]},
  122. "axes": {"const": {"x": 2, "y": 2}},
  123. "td_log_marker": {"type": "boolean"},
  124. "reencoded_motion_phase_count": {"type": "integer", "minimum": 0},
  125. "failures": {"type": "array", "items": {"type": "string"}}
  126. }
  127. },
  128. "failures": {"type": "array", "items": {"type": "string"}}
  129. }
  130. }
  131. },
  132. "additionalProperties": true
  133. }