Skip to content

Commit b7f93d8

Browse files
authored
inst_type/I: Add I-type instruction schema (#883)
In (#686), a new instruction schema was created for types/subtypes. This commit add the schema for the I-type. It is also part of effort in (#655). Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
1 parent 800102a commit b7f93d8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

spec/std/isa/inst_type/I.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2025 Usman Akinyemi
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# yaml-language-server: $schema=../../schemas/inst_type_schema.json#
5+
6+
$schema: inst_type_schema.json#
7+
kind: instruction_type
8+
name: I
9+
description: I-type instructions usually have one source register, an immediate value, and one destination register
10+
length: 32
11+
opcodes:
12+
funct3:
13+
location: 14-12
14+
opcode:
15+
location: 6-0
16+
variables:
17+
imm:
18+
location: 31-20
19+
rs1:
20+
location: 19-15
21+
rd:
22+
location: 11-7

0 commit comments

Comments
 (0)