| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- `ifndef PROD2U_6400_V1_PARAMS_VH
- `define PROD2U_6400_V1_PARAMS_VH
- // Generated manual contract SHA-256: d9b61d0e9532b1a450cea4d293f272158417581dd415eb0da81c794ecd1d06eb
- `define FB_CLOCK_HZ 25000000
- `define FB_PTC_COUNT 24
- `define FB_FRONT_FAN_COUNT 4
- `define FB_REAR_FAN_COUNT 4
- `define FB_OUTPUT_COUNT 32
- `define FB_BMC_COUNT 24
- `define FB_CT_COUNT 27
- `define FB_PRIMARY_COUNT 18
- `define FB_HOLDOUT_COUNT 6
- `define FB_HOST_BAUD 921600
- `define FB_BMC_BAUD 115200
- `define FB_HOST_FIXED_CLKS_PER_BIT 27
- `define FB_BMC_CLKS_PER_BIT 217
- `define FB_PWM_PHASES 100
- `define FB_PTC_PWM_HZ 500
- `define FB_FAN_PWM_HZ 500
- `define FB_PTC_PWM_PHASE_CLKS 500
- `define FB_FAN_PWM_PHASE_CLKS 500
- `define FB_PTC_PWM_PERIOD_CLKS 50000
- `define FB_FAN_PWM_PERIOD_CLKS 50000
- `define FAN_BOARD_INVERT_MASK 8'h0F
- `define FRONT_FAN_CONNECTOR_MAP "CON25.7,CON8.7,CON24.7,CON26.7"
- `define FRONT_FAN_FPGA_BALL_MAP "B1,C4,B5,A14"
- `define REAR_FAN_CONNECTOR_MAP "CON64.4,CON66.4,CON62.4,CON60.4"
- `define REAR_FAN_FPGA_BALL_MAP "P15,N15,M14,P5"
- `define FB_BOARD_ID "fcb_fpga_mcu_v1_1_20260625"
- `define FB_BOARD_EVIDENCE_SHA256 "db02938f7943b2ae532aa18208f61588364d32a70a0cc72f74b4a94aaab7e258"
- `define FB_TEMP_CHANNEL_CLAMP 7600
- `define FB_TEMP_LANE_HARD 7700
- `define FB_TEMP_LANE_RELEASE 7200
- `define FAN_SAFE_DUTY 20
- `define FAN_STANDBY_DUTY `FAN_SAFE_DUTY
- `define FB_FAN_RESET `FAN_STANDBY_DUTY
- `define FB_FAN_HARD 100
- `define CONTROL_WATCHDOG_SECONDS 30
- `define SET_ALL_WATCHDOG_SECONDS `CONTROL_WATCHDOG_SECONDS
- `define FB_OWNER_SAFE 3'd0
- `define FB_OWNER_MANUAL 3'd1
- // Unified 16-bit-length protocol (2026 contract). The historical 8-bit
- // length frames are retired; there is no wire autodetect.
- `define FB_FRAME_LENGTH_WIDTH 16
- `define FB_CMD_SET_ALL 8'h01
- `define FB_CMD_GET_ALL 8'h02
- `define FB_CMD_MOTOR_QUEUE_WRITE 8'h03
- `define FB_CMD_MOTOR_CONTROL 8'h04
- `define FB_CMD_OUTPUT_KEEPALIVE 8'h05
- `define FB_CMD_EVENT_READ 8'h08
- `define FB_CMD_EVENT_CLEAR 8'h09
- `define FB_RSP_ACK_NACK 8'h80
- `define FB_RSP_ALL_STATUS_DATA 8'h81
- `define FB_RSP_EVENT_DATA 8'h83
- `define FB_STATUS_OK 8'd0
- `define FB_STATUS_UNSUPPORTED 8'd1
- `define FB_STATUS_BAD_LENGTH 8'd2
- `define FB_STATUS_BAD_VALUE 8'd3
- `define FB_STATUS_BUSY 8'd4
- `define FB_STATUS_QUEUE_FULL 8'd5
- `define FB_STATUS_BAD_AXIS 8'd6
- `define FB_STATUS_BAD_MODE 8'd7
- `define FB_STATUS_BAD_REGISTER 8'd8
- `define FB_STATUS_NOT_READY 8'd9
- `define FB_MAX_REQUEST_PAYLOAD 256
- `define FB_MAX_RESPONSE_PAYLOAD 1024
- `define FB_SNAPSHOT_LENGTH 199
- `define FB_HOST_I2C_ADDRESS 7'h2A
- `define FB_HOST_I2C_REGISTER_WIDTH 16
- `define FB_SNAPSHOT_MODE_OFFSET 0
- `define FB_SNAPSHOT_FAULT_FLAGS_OFFSET 1
- `define FB_SNAPSHOT_WATCHDOG_ACTIVE_OFFSET 3
- `define FB_SNAPSHOT_WATCHDOG_REMAINING_OFFSET 4
- `define FB_SNAPSHOT_MANUAL_MODE_OFFSET 5
- `define FB_SNAPSHOT_BMC_VALID_OFFSET 6
- `define FB_SNAPSHOT_BMC_STALE_OFFSET 7
- `define FB_SNAPSHOT_CT_VALID_OFFSET 8
- `define FB_SNAPSHOT_CT_STALE_OFFSET 9
- `define FB_SNAPSHOT_HARD_PROTECT_OFFSET 10
- `define FB_SNAPSHOT_BMC_EPOCH_OFFSET 11
- `define FB_SNAPSHOT_CT_EPOCH_OFFSET 13
- `define FB_SNAPSHOT_CONTROL_EPOCH_OFFSET 15
- `define FB_SNAPSHOT_BMC_AGE_OFFSET 17
- `define FB_SNAPSHOT_CT_AGE_OFFSET 19
- `define FB_SNAPSHOT_BMC_RAW_OFFSET 21
- `define FB_SNAPSHOT_BMC_VALID_MASK_OFFSET 69
- `define FB_SNAPSHOT_CT_RAW_OFFSET 72
- `define FB_SNAPSHOT_CT_VALID_MASK_OFFSET 126
- `define FB_SNAPSHOT_PTC_REQUESTED_OFFSET 130
- `define FB_SNAPSHOT_PTC_APPLIED_OFFSET 154
- `define FB_SNAPSHOT_FRONT_REQUESTED_OFFSET 178
- `define FB_SNAPSHOT_FRONT_APPLIED_OFFSET 182
- `define FB_SNAPSHOT_REAR_REQUESTED_OFFSET 186
- `define FB_SNAPSHOT_REAR_APPLIED_OFFSET 190
- `define FB_SNAPSHOT_SAFETY_OVERRIDE_MASK_OFFSET 194
- `define FB_SNAPSHOT_LANE_FAULT_MASK_OFFSET 197
- `define FB_SNAPSHOT_GLOBAL_FAULT_OFFSET 198
- `endif
|