From a5ac25535df054e2f364c15c005c0cd926c1d13d Mon Sep 17 00:00:00 2001 From: Patrick Urban Date: Tue, 8 Jul 2025 16:55:18 +0200 Subject: [PATCH] Add `CMD_CFGMODE` documentation --- docs/source/bitstream/commands.rst | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/source/bitstream/commands.rst b/docs/source/bitstream/commands.rst index a21cbb1..b076613 100644 --- a/docs/source/bitstream/commands.rst +++ b/docs/source/bitstream/commands.rst @@ -361,6 +361,44 @@ CMD_JUMP CMD_CFGMODE ------------ +.. list-table:: + :widths: 10 40 + :header-rows: 1 + + * - Byte + - Bit + - Description + * - 0 + - + - Number of CRC retries + * - 1 + - + - CRC error behaviour (0: checked, 1: ignored, 2: unused) + * - 2 + - 0..1 + - SPI bus IO width for `cmd` (0: single, 1: dual, 3: quad) + * - 2 + - 2..3 + - SPI bus IO width for `addr` (0: single, 1: dual, 3: quad) + * - 2 + - 4..5 + - SPI bus IO width for `mode` (0: single, 1: dual, 3: quad) + * - 2 + - 6..7 + - SPI bus IO width for `txdata` (0: single, 1: dual, 3: quad) + * - 3 + - 0..1 + - SPI bus IO width for `rxdata` (0: single, 1: dual, 3: quad) + * - 3 + - 2..7 + - Number of dummy cycles between `addr` and `rxdata` + * - 4 + - + - Flash `addr` field length + * - 5 + - + - Flash `READ` command + .. warning:: This command have data after payload, and it consists of 3 NOP bytes ``0x00 0x00 0x00``.