From: Luke Kenneth Casson Leighton Date: Tue, 25 Jun 2019 15:35:25 +0000 (+0100) Subject: crush table X-Git-Tag: convert-csv-opcode-to-binary~4418 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f8a098784af89e8dd43546b631de55d1266fd9e;p=libreriscv.git crush table --- diff --git a/simple_v_extension/sv_prefix_proposal.rst b/simple_v_extension/sv_prefix_proposal.rst index f1d93fc54..8122b9ace 100644 --- a/simple_v_extension/sv_prefix_proposal.rst +++ b/simple_v_extension/sv_prefix_proposal.rst @@ -111,31 +111,31 @@ is provided. 48-bit Instruction Encodings ============================ -In the following table, *Reserved* entries must be zero. RV32 equivalent +In the following table, *Rsvd* (reserved) entries must be zero. RV32 equivalent encodings included for side-by-side comparison (and listed below, separately). First, bits 17:0: -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| Encoding | 17 | 16 | 15 | 14 | 13 | 12 | 11:7 | 6 | 5:0 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-LD-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-ST-type |vitp7[6]| rs1[5] | rs2[5] | vs2 | vs1 | vitp7[5:0] | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-R-type | rd[5] | rs1[5] | rs2[5] | vs2 | vs1 | vitp6 | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+--------------------+------------+--------+ -| P48-I-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+--------------------+------------+--------+ -| P48-U-type | rd[5] | *Reserved* | *Reserved* | vd | *Reserved* | vitp6 | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-FR-type | rd[5] | rs1[5] | rs2[5] | vs2 | vs1 | *Reserved* | vtp5 | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-FI-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ -| P48-FR4-type | rd[5] | rs1[5] | rs2[5] | vs2 | rs3[5] | vs3 [#fr4]_ | vtp5 | 0 | 011111 | -+---------------+--------+------------+------------+-----+------------+-------------+------+------------+--------+ ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| Encoding | 17 | 16 | 15 | 14 | 13 | 12 | 11:7 | 6 | 5:0 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-LD-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-ST-type |vitp7[6]| rs1[5] | rs2[5] | vs2 | vs1 | vitp7[5:0] | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-R-type | rd[5] | rs1[5] | rs2[5] | vs2 | vs1 | vitp6 | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+--------------------+---+--------+ +| P48-I-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+--------------------+---+--------+ +| P48-U-type | rd[5] | *Rsvd* | *Rsvd* | vd | *Rsvd* | vitp6 | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-FR-type | rd[5] | rs1[5] | rs2[5] | vs2 | vs1 | *Rsvd* | vtp5 | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-FI-type | rd[5] | rs1[5] | vitp7[6] | vd | vs1 | vitp7[5:0] | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ +| P48-FR4-type | rd[5] | rs1[5] | rs2[5] | vs2 | rs3[5] | vs3 [#fr4]_ | vtp5 | 0 | 011111 | ++---------------+--------+--------+----------+-----+--------+-------------+------+---+--------+ .. [#fr4] Only vs2 and vs3 are included in the P48-FR4-type encoding because there is not enough space for vs1 as well, and because