Platform
Solutions
Resources
Pricing
Sign in
Sign up
Nathaniel Schwass
jr tech writer @SiFive
Workspace
Fork
Public
By
Nathaniel Schwass
Edited
Mar 6, 2023
Fork of
RISC-V Sv57 Bit Fields
Insert cell
Insert cell
wd
(
{
reg
:
[
{
bits
:
12
,
name
:
'page offset'
}
,
{
bits
:
9
,
name
:
'VPN[0]'
}
,
{
bits
:
9
,
name
:
'VPN[1]'
}
,
{
bits
:
9
,
name
:
'VPN[2]'
}
,
{
bits
:
9
,
name
:
'VPN[3]'
}
,
{
bits
:
9
,
name
:
'VPN[4]'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
57
}
}
)
Insert cell
wd
(
{
reg
:
[
{
bits
:
12
,
name
:
'page offset'
}
,
{
bits
:
9
,
name
:
'PPN[0]'
}
,
{
bits
:
9
,
name
:
'PPN[1]'
}
,
{
bits
:
9
,
name
:
'PPN[2]'
}
,
{
bits
:
9
,
name
:
'PPN[3]'
}
,
{
bits
:
8
,
name
:
'PPN[4]'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
56
}
}
)
Insert cell
wd
(
{
reg
:
[
{
bits
:
1
,
name
:
'V'
}
,
{
bits
:
1
,
name
:
'R'
}
,
{
bits
:
1
,
name
:
'W'
}
,
{
bits
:
1
,
name
:
'X'
}
,
{
bits
:
1
,
name
:
'U'
}
,
{
bits
:
1
,
name
:
'G'
}
,
{
bits
:
1
,
name
:
'A'
}
,
{
bits
:
1
,
name
:
'D'
}
,
{
bits
:
2
,
name
:
'RSW'
}
,
{
bits
:
44
,
name
:
'PPN'
}
,
{
bits
:
7
,
name
:
'Reserved'
}
,
{
bits
:
2
,
name
:
'PBMT'
}
,
{
bits
:
1
,
name
:
'N'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
64
}
}
)
Insert cell
wd
(
{
reg
:
[
{
bits
:
10
,
name
:
''
}
,
{
bits
:
9
,
name
:
'PPN[0]'
}
,
{
bits
:
9
,
name
:
'PPN[1]'
}
,
{
bits
:
9
,
name
:
'PPN[2]'
}
,
{
bits
:
9
,
name
:
'PPN[3]'
}
,
{
bits
:
9
,
name
:
'PPN[4]'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
54
}
}
)
Insert cell
md
`# RISC-V Sv39 Bit FIelds`
Insert cell
Insert cell
Insert cell
wd
(
{
reg
:
[
{
bits
:
1
,
name
:
'CY'
}
,
{
bits
:
1
,
name
:
'TM'
}
,
{
bits
:
1
,
name
:
'IR'
}
,
{
bits
:
1
,
name
:
'HPM3'
}
,
{
bits
:
1
,
name
:
'HPM4'
}
,
{
bits
:
1
,
name
:
'HPM5'
}
,
{
bits
:
23
,
name
:
'...'
}
,
{
bits
:
1
,
name
:
'HPM29'
}
,
{
bits
:
1
,
name
:
'HMP30'
}
,
{
bits
:
1
,
name
:
'HPM31'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
32
}
}
)
Insert cell
Insert cell
Insert cell
wd
(
{
reg
:
[
{
bits
:
44
,
name
:
'PPN (WARL)'
}
,
{
bits
:
16
,
name
:
'ASID (WARL)'
}
,
{
bits
:
4
,
name
:
''
,
attr
:
'MODE (WARL)'
}
,
]
,
config
:
{
hspace
:
width
,
bits
:
64
}
}
)
Insert cell
Insert cell
onml
=
require
(
'onml'
)
Insert cell
bitField
=
require
(
'bit-field@1.3.5'
)
Insert cell
isa
=
(
obj
,
opt
)
=>
{
const
options
=
Object
.
assign
(
{
hspace
:
(
(
width
-
8
)
>>
5
)
<<
5
,
lanes
:
1
}
,
opt
)
;
const
ml
=
[
'div'
,
{
style
:
'background-color: white;'
}
,
bitField
.
render
(
obj
,
options
)
]
;
const
txt
=
onml
.
stringify
(
ml
)
;
const
el
=
DOM
.
element
(
'div:div'
,
{
}
)
;
el
.
innerHTML
=
txt
;
return
el
;
}
Insert cell
wavedrom
=
require
(
'wavedrom@2.6.8'
)
Insert cell
wd
=
source
=>
{
const
res
=
document
.
createElement
(
'div'
)
;
wavedrom
.
renderWaveElement
(
0
,
source
,
res
,
wavedrom
.
waveSkin
.
default
)
;
return
res
;
}
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
onml
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
bitField
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
isa
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wavedrom
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wd
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML