Skip to content

Commit

Permalink
Renamed instructions to comply with toolchain conventions
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Hower <[email protected]>
  • Loading branch information
dhower-qc committed Sep 24, 2024
1 parent 25a53b2 commit 62aed5d
Show file tree
Hide file tree
Showing 159 changed files with 162 additions and 162 deletions.
8 changes: 4 additions & 4 deletions cfgs/qc_iu/arch_overlay/csr/Xqciu/gen_mcliciX.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pend_template = <<~YAML
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json
mclicip<%= num %>:
qc.mclicip<%= num %>:
long_name: IRQ Pending <%= num %>
address: 0x<%= (0x7f0 + num).to_s(16) %>
length: 32
Expand All @@ -25,7 +25,7 @@
en_template = <<~YAML
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json
mclicie<%= num %>:
qc.mclicie<%= num %>:
long_name: IRQ Enable <%= num %>
address: 0x<%= (0x7f0 + num).to_s(16) %>
length: 32
Expand All @@ -47,10 +47,10 @@

erb = ERB.new(pend_template, trim_mode: '-')
8.times do |num|
File.write("#{root}/mclicip#{num}.yaml", erb.result(binding))
File.write("#{root}/qc.mclicip#{num}.yaml", erb.result(binding))
end

erb = ERB.new(en_template, trim_mode: '-')
8.times do |num|
File.write("#{root}/mclicie#{num}.yaml", erb.result(binding))
File.write("#{root}/qc.mclicie#{num}.yaml", erb.result(binding))
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie0:
qc.mclicie0:
long_name: IRQ Enable 0
address: 0x7f0
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie1:
qc.mclicie1:
long_name: IRQ Enable 1
address: 0x7f1
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie2:
qc.mclicie2:
long_name: IRQ Enable 2
address: 0x7f2
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie3:
qc.mclicie3:
long_name: IRQ Enable 3
address: 0x7f3
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie4:
qc.mclicie4:
long_name: IRQ Enable 4
address: 0x7f4
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie5:
qc.mclicie5:
long_name: IRQ Enable 5
address: 0x7f5
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie6:
qc.mclicie6:
long_name: IRQ Enable 6
address: 0x7f6
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicie7:
qc.mclicie7:
long_name: IRQ Enable 7
address: 0x7f7
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip0:
qc.mclicip0:
long_name: IRQ Pending 0
address: 0x7f0
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip1:
qc.mclicip1:
long_name: IRQ Pending 1
address: 0x7f1
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip2:
qc.mclicip2:
long_name: IRQ Pending 2
address: 0x7f2
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip3:
qc.mclicip3:
long_name: IRQ Pending 3
address: 0x7f3
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip4:
qc.mclicip4:
long_name: IRQ Pending 4
address: 0x7f4
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip5:
qc.mclicip5:
long_name: IRQ Pending 5
address: 0x7f5
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip6:
qc.mclicip6:
long_name: IRQ Pending 6
address: 0x7f6
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/csr_schema.json

mclicip7:
qc.mclicip7:
long_name: IRQ Pending 7
address: 0x7f7
length: 32
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.addai:
qc.48.addai:
long_name: Add immediate
description: |
Add a 32-bit immediate `imm` to the value in `rd`, and store the result back in `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.addi:
qc.48.addi:
long_name: Add immediate
description: |
Add a sign-extended 26-bit immediate `imm` to the value in `rs1`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.andai:
qc.48.andai:
long_name: And immediate
description: |
And a 32-bit immediate `imm` to the value in `rd`, and store the result back in `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.andi:
qc.48.andi:
long_name: Add immediate
description: |
And a sign-extended 26-bit immediate `imm` to the value in `rs1`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.beqi:
qc.48.beqi:
long_name: Branch on equal (immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is equal to the signed immediate `imm`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.bgei:
qc.48.bgei:
long_name: Branch on greater than or equal (immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is greater than or equal to the immediate `imm`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.bgeui:
qc.48.bgeui:
long_name: Branch on greater than or equal unsigned (immediate)
description: |
Branches to `PC` + `offset` if the unsigned value in `rs1` is greater than or equal to the unsigned immediate `imm`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.blti:
qc.48.blti:
long_name: Branch on less than (immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is less than the immediate `imm`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.bltui:
qc.48.bltui:
long_name: Branch on less than unsigned (immediate)
description: |
Branches to `PC` + `offset` if the unsigned value in `rs1` is less than the unsigned immediate `imm`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.bnei:
qc.48.bnei:
long_name: Branch on not equal (immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is not equal to the signed immediate `imm`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.j:
qc.48.j:
long_name: Jump
description: |
Jump to a PC-relative offset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.jal:
qc.48.jal:
long_name: Jump and link
description: |
Jump to a PC-relative offset and store the return
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.lb:
qc.48.lb:
long_name: Load byte
description: |
Load 8 bits of data into register `rd` from an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.lbu:
qc.48.lbu:
long_name: Load byte unsigned
description: |
Load 8 bits of data into register `rd` from an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.lh:
qc.48.lh:
long_name: Load halfword
description: |
Load 16 bits of data into register `rd` from an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.lhu:
qc.48.lhu:
long_name: Load halfword unsigned
description: |
Load 16 bits of data into register `rd` from an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.li:
qc.48.li:
long_name: Load immediate large
description: |
Loads the 32-bit immediate `imm` into `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.lw:
qc.48.lw:
long_name: Load word
description: |
Load 32 bits of data into register `rd` from an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.orai:
qc.48.orai:
long_name: Or immediate
description: |
Or a 32-bit immediate `imm` to the value in `rd`, and store the result back in `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.ori:
qc.48.ori:
long_name: Or immediate
description: |
Or a sign-extended 26-bit immediate `imm` to the value in `rs1`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.sb:
qc.48.sb:
long_name: Store byte
description: |
Store 8 bits of data from register `rs2` to an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.sh:
qc.48.sh:
long_name: Store halfword
description: |
Store 16 bits of data from register `rs2` to an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../schemas/inst_schema.json

qc48.sw:
qc.48.sw:
long_name: Store word
description: |
Store 32 bits of data from register `rs2` to an
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.xorai:
qc.48.xorai:
long_name: Exclusive Or immediate
description: |
Exclusive or a 32-bit immediate `imm` to the value in `rd`, and store the result back in `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc48.xori:
qc.48.xori:
long_name: Exclusive Or immediate
description: |
Exclusive or a sign-extended 26-bit immediate `imm` to the value in `rs1`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc32.addsat:
qc.addsat:
long_name: Saturating signed addition
description: |
Add signed values `rs1` and `rs2`, saturate the signed result, and write to `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc32.addusat:
qc.addusat:
long_name: Saturating unsigned addition
description: |
Add unsigned values `rs1` and `rs2`, saturate the unsigned result, and write to `rd`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc32.beqi:
qc.beqi:
long_name: Branch on equal (Immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is equal to the signed immediate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc32.bgei:
qc.bgei:
long_name: Branch on greater than or equal (immediate)
description: |
Branches to `PC` + `offset` if the value in `rs1` is greater than or equal to the immediate.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=../../../../../schemas/inst_schema.json

qc32.bgeui:
qc.bgeui:
long_name: Branch on greater than or equal unsigned (immediate)
description: |
Branches to `PC` + `offset` if the unsigned value in `rs1` is greater than or equal to the unsigned immediate.
Expand Down
Loading

0 comments on commit 62aed5d

Please sign in to comment.