Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions specs/xilinx7/packets.t27
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading