Skip to content

Commit

Permalink
Add minimal syntax highlighting for IDL; fix up issues with RV32 (#7)
Browse files Browse the repository at this point in the history
* Add minimal syntax highlighting for IDL; fix up issues with RV32

* Split ArchDef into config dependend/independent parts
  • Loading branch information
dhower-qc authored Jul 25, 2024
1 parent 4109d1c commit 25a202b
Show file tree
Hide file tree
Showing 93 changed files with 4,362 additions and 933 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.venv
gen
node_modules
_site
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr0:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 0
(or, if `pmp1cfg.A` == TOR, for PMP entry 1).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr1:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 1
(or, if `pmp2cfg.A` == TOR, for PMP entry 2).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr10:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 10
(or, if `pmp11cfg.A` == TOR, for PMP entry 11).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr11:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 11
(or, if `pmp12cfg.A` == TOR, for PMP entry 12).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr12:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 12
(or, if `pmp13cfg.A` == TOR, for PMP entry 13).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr13:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 13
(or, if `pmp14cfg.A` == TOR, for PMP entry 14).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr14:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 14
(or, if `pmp15cfg.A` == TOR, for PMP entry 15).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr15:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 15
(or, if `pmp16cfg.A` == TOR, for PMP entry 16).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr16:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 16
(or, if `pmp17cfg.A` == TOR, for PMP entry 17).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr17.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr17:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 17
(or, if `pmp18cfg.A` == TOR, for PMP entry 18).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr18:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 18
(or, if `pmp19cfg.A` == TOR, for PMP entry 19).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr19.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr19:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 19
(or, if `pmp20cfg.A` == TOR, for PMP entry 20).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr2:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 2
(or, if `pmp3cfg.A` == TOR, for PMP entry 3).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr20:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 20
(or, if `pmp21cfg.A` == TOR, for PMP entry 21).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr21:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 21
(or, if `pmp22cfg.A` == TOR, for PMP entry 22).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr22:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 22
(or, if `pmp23cfg.A` == TOR, for PMP entry 23).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr23:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 23
(or, if `pmp24cfg.A` == TOR, for PMP entry 24).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr24:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 24
(or, if `pmp25cfg.A` == TOR, for PMP entry 25).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr25:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 25
(or, if `pmp26cfg.A` == TOR, for PMP entry 26).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr26:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 26
(or, if `pmp27cfg.A` == TOR, for PMP entry 27).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr27:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 27
(or, if `pmp28cfg.A` == TOR, for PMP entry 28).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr28:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 28
(or, if `pmp29cfg.A` == TOR, for PMP entry 29).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr29.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr29:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 29
(or, if `pmp30cfg.A` == TOR, for PMP entry 30).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr3:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 3
(or, if `pmp4cfg.A` == TOR, for PMP entry 4).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr30.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr30:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 30
(or, if `pmp31cfg.A` == TOR, for PMP entry 31).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr31.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr31:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 31
(or, if `pmp32cfg.A` == TOR, for PMP entry 32).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr32:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 32
(or, if `pmp33cfg.A` == TOR, for PMP entry 33).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr33.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr33:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 33
(or, if `pmp34cfg.A` == TOR, for PMP entry 34).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr34.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr34:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 34
(or, if `pmp35cfg.A` == TOR, for PMP entry 35).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr35.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr35:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 35
(or, if `pmp36cfg.A` == TOR, for PMP entry 36).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr36.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr36:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 36
(or, if `pmp37cfg.A` == TOR, for PMP entry 37).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr37:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 37
(or, if `pmp38cfg.A` == TOR, for PMP entry 38).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr38:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 38
(or, if `pmp39cfg.A` == TOR, for PMP entry 39).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr39:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 39
(or, if `pmp40cfg.A` == TOR, for PMP entry 40).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr4:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 4
(or, if `pmp5cfg.A` == TOR, for PMP entry 5).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr40.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr40:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 40
(or, if `pmp41cfg.A` == TOR, for PMP entry 41).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr41.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr41:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 41
(or, if `pmp42cfg.A` == TOR, for PMP entry 42).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr42.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr42:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 42
(or, if `pmp43cfg.A` == TOR, for PMP entry 43).
Expand Down
3 changes: 2 additions & 1 deletion arch/csr/I/pmpaddr43.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ pmpaddr43:
definedBy: I
fields:
ADDR:
location: 63-0
location_rv32: 31-0
location_rv64: 63-0
description: |
Bits <%= PHYS_ADDR_WIDTH-1 %>:2 of the address specifier for PMP entry 43
(or, if `pmp44cfg.A` == TOR, for PMP entry 44).
Expand Down
Loading

0 comments on commit 25a202b

Please sign in to comment.