From 61c38b95eafe3ab00973b12bd80f77183f44fd07 Mon Sep 17 00:00:00 2001 From: Dmitrii Vasilev Date: Fri, 30 Oct 2026 23:39:49 +0700 Subject: [PATCH] spec(xilinx7): pin packet constants to Vivado sources Pin SYNC, DUMMY, BUS_WIDTH_SYNC, BUS_WIDTH_DETECT, NOOP, TYPE1/2, OP_*, REG_* to external prjxray sources c9f02d857 to refuse silent hex drift. Refs #12835 --- specs/xilinx7/packets.t27 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/specs/xilinx7/packets.t27 b/specs/xilinx7/packets.t27 index 4cb54149e6..4d8087db4c 100644 --- a/specs/xilinx7/packets.t27 +++ b/specs/xilinx7/packets.t27 @@ -622,3 +622,37 @@ test seq_matches_xc7frames2bit_around_the_frames { assert step_word(35, 1, 0, 0) == 0x03BE0000; assert step_word(SEQ_STEPS - 2, 1, 0, 0) == CMD_DESYNC; } + +test packet_constants_pinned { + // external sources prjxray c9f02d857, configuration_packet.cc:101-167, + // configuration_register.h:61-83. + assert SYNC == 0xAA995566; + assert DUMMY == 0xFFFFFFFF; + assert BUS_WIDTH_SYNC == 0x000000BB; + assert BUS_WIDTH_DETECT == 0x11220044; + assert NOOP == 0x20000000; + assert TYPE1 == 1; + assert TYPE2 == 2; + assert OP_NOP == 0; + assert OP_READ == 1; + assert OP_WRITE == 2; + assert REG_CRC == 0x00; + assert REG_FAR == 0x01; + assert REG_FDRI == 0x02; + assert REG_FDRO == 0x03; + assert REG_CMD == 0x04; + assert REG_CTL0 == 0x05; + assert REG_MASK == 0x06; + assert REG_STAT == 0x07; + assert REG_LOUT == 0x08; + assert REG_COR0 == 0x09; + assert REG_MFWR == 0x0A; + assert REG_CBC == 0x0B; + assert REG_IDCODE == 0x0C; + assert REG_AXSS == 0x0D; + assert REG_COR1 == 0x0E; + assert REG_WBSTAR == 0x10; + assert REG_TIMER == 0x11; + assert REG_UNKNOWN == 0x13; + assert REG_BOOTSTS == 0x16; +}