mrdimm-wire.yaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. schema: prod2u-mrdimm-wire-v2
  2. product: mrdimm-chamber
  3. board: FCB V1.2
  4. device: EF2L45BG256B
  5. clock_hz: 25000000
  6. note: >-
  7. The one active wire protocol for the MRDIMM FCB V1.2 product. There is exactly
  8. one frame shape: A5 5A | TYPE:u8 | LENGTH:u8 | PAYLOAD | CRC_L | CRC_H.
  9. Total bytes = LENGTH + 6. There is no version field, no product id, no sequence
  10. number, no Tag, no TLV and no autodetection of any historical frame. The
  11. retired protocol (16-bit length frames, the old ACK/status/event types, the
  12. queue-write/control/keepalive/event commands, the host register interface and
  13. the unbounded motion commands) is not present anywhere in this product.
  14. frame:
  15. preamble: [0xA5, 0x5A]
  16. fields: [type: u8, length: u8, payload: bytes, crc: u16le]
  17. total_bytes: length_plus_6
  18. payload_byte_zero_is_request_ram_address_zero: true
  19. crc:
  20. name: CRC-16/CCITT-FALSE
  21. polynomial: 0x1021
  22. initial: 0xFFFF
  23. reflect_input: false
  24. reflect_output: false
  25. xor_output: 0
  26. coverage: type_length_payload
  27. wire_order: little
  28. excludes_header: true
  29. rx_and_tx_accumulators_are_independent: true
  30. length_width_bits: 8
  31. max_request_payload_bytes: 68
  32. max_response_payload_bytes: 63
  33. request_staging_bytes: 128
  34. inter_byte_timeout_clks: 250000
  35. inter_byte_timeout_us: 10000
  36. host_uart:
  37. baud: 921600
  38. format: 8N1
  39. clks_per_bit: 27
  40. rs232: {connector: CON78, tx_ball: M10, rx_ball: N11, status: confirmed}
  41. ttl:
  42. status: unbound
  43. note: >-
  44. The TTL branch shares the RS232 UART core and TX is a broadcast copy, but
  45. no V1.2 board evidence binds TTL pads. The production wrapper holds the
  46. input idle and does not export a ball; no ball is invented here. The
  47. retired 6400 CON30/B9/A10 row does not exist on V1.2. This is the only
  48. unbound host interface and it is recorded, not hidden.
  49. source_select: minimal_rx_source_select_with_broadcast_tx
  50. conflict_detection: none
  51. fair_arbitration: none
  52. reply_not_truncated_by_rx_idle_release: true
  53. parser_stays_enabled_during_reply_or_done: true
  54. bmc_uart:
  55. baud: 115200
  56. format: 8N1
  57. clks_per_bit: 217
  58. optional: true
  59. set_all_allowed_without_bmc: true
  60. poll_ascii: "ipmitool raw 0x36 0x6c 0xdf 0xdd 0x00 0x03"
  61. poll_line_terminator: 0x0A
  62. poll_command_bytes: 43
  63. response_hex_tokens: 48
  64. response_pairs: 24
  65. response_lines_typical: 3
  66. commands:
  67. SET_ALL:
  68. type: 0x01
  69. payload_length: 68
  70. response: SET_ACK
  71. feeds_watchdog: true
  72. admission: SET_ACCEPT_after_validation_and_queue_reservation
  73. payload_fields:
  74. - {name: fan_duty_percent, offset: 0, count: 4, minimum: 0, maximum: 100, unit: percent}
  75. - {name: ptc_duty_percent, offset: 4, count: 4, minimum: 0, maximum: 100, unit: percent}
  76. - name: axis_slots
  77. offset: 8
  78. count: 12
  79. stride: 5
  80. slot_layout:
  81. action: {offset: 0, type: u8}
  82. steps: {offset: 1, type: u16le}
  83. half_period_us: {offset: 3, type: u16le}
  84. actions:
  85. 0x00: NOTHING
  86. 0x01: PUSH_DOWN
  87. 0x02: PUSH_UP
  88. 0xFF: STOP_CLEAR
  89. action_semantics:
  90. NOTHING: the four following bytes take no part in the action; the SDK writes 0
  91. STOP_CLEAR: the four following bytes take no part in the action; the SDK writes 0
  92. PUSH_DOWN: finite downward segment, steps and half period apply
  93. PUSH_UP: finite upward segment, steps and half period apply
  94. push_steps_range: [1, 65535]
  95. push_half_period_us_range: [1, 65535]
  96. half_period_nonzero_required: true
  97. speed_hz: "500000 / half_period_us"
  98. max_half_period_hz: 7.63
  99. implemented_min_half_period_us: 10
  100. implemented_min_note: >-
  101. The contract can express 1..65535 us; the shared twelve-axis scanner
  102. places an edge at the first visit after the microsecond boundary, so the
  103. measured worst-case placement error is one rotation (480 ns). Halves below
  104. the measured minimum are rejected with BAD_VALUE rather than silently
  105. slowed, and are never a missed edge. The value is stated in this
  106. generating contract and in the SDK.
  107. every_axis_is_variable_speed: true
  108. stops_at_set_accept: true
  109. fan_duty_meaning: connector_requested_duty_not_rpm_not_airflow
  110. GET_ALL:
  111. type: 0x02
  112. payload_length: 0
  113. response: [GET_ACK, GET_DATA]
  114. response_order: ack_then_data_contiguous_group
  115. feeds_watchdog: true
  116. data_is_not_an_ack: true
  117. reads_most_recent_values_in_order_without_a_global_snapshot_lock: true
  118. UNLISTED_TYPES: UNSUPPORTED
  119. responses:
  120. SET_ACK: {type: 0x81, payload_length: 0}
  121. GET_ACK: {type: 0x82, payload_length: 0}
  122. GET_DATA: {type: 0x42, payload_length: 63, payload_contract: mrdimm-status.yaml}
  123. MOTOR_DONE:
  124. type: 0x50
  125. payload_length: 4
  126. payload_fields:
  127. - {name: axis, offset: 0, type: u8}
  128. - {name: reason, offset: 1, type: u8}
  129. - {name: steps_done, offset: 2, type: u16le}
  130. reasons: {0x00: steps_complete, 0x01: lower_limit, 0x02: upper_limit, 0x03: both_limits}
  131. steps_done_counts: final_output_step_rising_edges_not_planned_steps_not_cumulative_position
  132. ff_ff_steps_is_not_an_invalid_temperature: true
  133. one_waiting_done_slot_per_axis: true
  134. NACK:
  135. type: 0xC0
  136. payload_length: 2
  137. payload: [request_type, reason]
  138. reason: {UNSUPPORTED: 1, BAD_LENGTH: 2, BAD_VALUE: 3, QUEUE_FULL: 4, BUSY: 5}
  139. no_detail_strings: true
  140. no_field_index: true
  141. no_extra_fault_state: true
  142. RESPONSE_TYPES_ARE_REQUESTS: UNSUPPORTED
  143. host_response_order:
  144. SET_ALL: [SET_ACK]
  145. GET_ALL: [GET_ACK, GET_DATA]
  146. UNSUPPORTED: [NACK]
  147. invalid_behavior:
  148. bad_header_crc_partial_timeout_framing: silent_drop_and_recover
  149. complete_crc_valid_request: exactly_one_set_ack_get_ack_or_nack
  150. crc_valid_but_unsupported_or_bad_length_or_bad_value_or_queue_full: >-
  151. nack, take no effect, do not feed the watchdog, keep the command queue
  152. bounded and keep execution state unchanged
  153. declared_length_over_request_ram: consume_full_frame_and_crc_then_bad_length
  154. a55a_inside_payload: not_a_new_frame
  155. resync: next_real_frame_after_declared_extent
  156. half_frame: abandon_only_after_inter_byte_timeout
  157. outstanding_transactions: 1
  158. command_fifo: false
  159. watchdog:
  160. seconds: 30
  161. timebase: existing_shared_tick
  162. feed_on: [successful_set_accept, legal_get_accept]
  163. no_feed_on: [bad_request, nack, motor_done]
  164. starts_at: first_successful_set_or_get
  165. expiry:
  166. stop_all_axes: true
  167. invalidate_segments_queues_unsent_dones: true
  168. thermal_output_defaults_within: next_complete_500hz_pwm_period
  169. reset_uart_or_parser_or_fifo_or_tx: false
  170. already_started_reply_frames_finish: true
  171. old_done_completion_callback_restarts_work: false
  172. pre_expiry_settings_permanently_invalid: true
  173. default_validity_cleared_only_by_a_genuinely_applied_new_set: true
  174. get_continues_to_feed_while_returning_defaults: true
  175. same_value_set_after_expiry_recovers_directly: true
  176. different_value_set_after_expiry_recovers_directly: true
  177. retry_semantics:
  178. set_all_with_motor_segments: outcome_unknown_structured_no_auto_retry
  179. get_all: retryable_after_resync
  180. motor_done_is_not_a_host_request: true
  181. pwm:
  182. fan_hz: 500
  183. ptc_hz: 500
  184. phases: 100
  185. period_clks: 50000