scounteren

Supervisor Counter Enable

Delegates control of the hardware performance-monitoring counters to U-mode

Attributes

Defining Extension

  • S, version >= 0

CSR Address

0x106

Length

32-bit

Privilege Mode

S

Format

scounteren format
Figure 1. scounteren format

Field Summary

Name Location Type Reset Value

scounteren.CY

0

[when,"SCOUNTENABLE_EN[0]"] RW [when,"!(SCOUNTENABLE_EN[0])"] RO

[when,"SCOUNTENABLE_EN[0]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[0])"] 0

scounteren.TM

1

[when,"SCOUNTENABLE_EN[1]"] RW [when,"!(SCOUNTENABLE_EN[1])"] RO

[when,"SCOUNTENABLE_EN[1]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[1])"] 0

scounteren.IR

2

[when,"SCOUNTENABLE_EN[2]"] RW [when,"!(SCOUNTENABLE_EN[2])"] RO

[when,"SCOUNTENABLE_EN[2]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[2])"] 0

scounteren.HPM3

3

[when,"SCOUNTENABLE_EN[3]"] RW [when,"!(SCOUNTENABLE_EN[3])"] RO

[when,"SCOUNTENABLE_EN[3]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[3])"] 0

scounteren.HPM4

4

[when,"SCOUNTENABLE_EN[4]"] RW [when,"!(SCOUNTENABLE_EN[4])"] RO

[when,"SCOUNTENABLE_EN[4]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[4])"] 0

scounteren.HPM5

5

[when,"SCOUNTENABLE_EN[5]"] RW [when,"!(SCOUNTENABLE_EN[5])"] RO

[when,"SCOUNTENABLE_EN[5]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[5])"] 0

scounteren.HPM6

6

[when,"SCOUNTENABLE_EN[6]"] RW [when,"!(SCOUNTENABLE_EN[6])"] RO

[when,"SCOUNTENABLE_EN[6]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[6])"] 0

scounteren.HPM7

7

[when,"SCOUNTENABLE_EN[7]"] RW [when,"!(SCOUNTENABLE_EN[7])"] RO

[when,"SCOUNTENABLE_EN[7]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[7])"] 0

scounteren.HPM8

8

[when,"SCOUNTENABLE_EN[8]"] RW [when,"!(SCOUNTENABLE_EN[8])"] RO

[when,"SCOUNTENABLE_EN[8]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[8])"] 0

scounteren.HPM9

9

[when,"SCOUNTENABLE_EN[9]"] RW [when,"!(SCOUNTENABLE_EN[9])"] RO

[when,"SCOUNTENABLE_EN[9]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[9])"] 0

scounteren.HPM10

10

[when,"SCOUNTENABLE_EN[10]"] RW [when,"!(SCOUNTENABLE_EN[10])"] RO

[when,"SCOUNTENABLE_EN[10]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[10])"] 0

scounteren.HPM11

11

[when,"SCOUNTENABLE_EN[11]"] RW [when,"!(SCOUNTENABLE_EN[11])"] RO

[when,"SCOUNTENABLE_EN[11]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[11])"] 0

scounteren.HPM12

12

[when,"SCOUNTENABLE_EN[12]"] RW [when,"!(SCOUNTENABLE_EN[12])"] RO

[when,"SCOUNTENABLE_EN[12]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[12])"] 0

scounteren.HPM13

13

[when,"SCOUNTENABLE_EN[13]"] RW [when,"!(SCOUNTENABLE_EN[13])"] RO

[when,"SCOUNTENABLE_EN[13]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[13])"] 0

scounteren.HPM14

14

[when,"SCOUNTENABLE_EN[14]"] RW [when,"!(SCOUNTENABLE_EN[14])"] RO

[when,"SCOUNTENABLE_EN[14]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[14])"] 0

scounteren.HPM15

15

[when,"SCOUNTENABLE_EN[15]"] RW [when,"!(SCOUNTENABLE_EN[15])"] RO

[when,"SCOUNTENABLE_EN[15]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[15])"] 0

scounteren.HPM16

16

[when,"SCOUNTENABLE_EN[16]"] RW [when,"!(SCOUNTENABLE_EN[16])"] RO

[when,"SCOUNTENABLE_EN[16]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[16])"] 0

scounteren.HPM17

17

[when,"SCOUNTENABLE_EN[17]"] RW [when,"!(SCOUNTENABLE_EN[17])"] RO

[when,"SCOUNTENABLE_EN[17]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[17])"] 0

scounteren.HPM18

18

[when,"SCOUNTENABLE_EN[18]"] RW [when,"!(SCOUNTENABLE_EN[18])"] RO

[when,"SCOUNTENABLE_EN[18]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[18])"] 0

scounteren.HPM19

19

[when,"SCOUNTENABLE_EN[19]"] RW [when,"!(SCOUNTENABLE_EN[19])"] RO

[when,"SCOUNTENABLE_EN[19]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[19])"] 0

scounteren.HPM20

20

[when,"SCOUNTENABLE_EN[20]"] RW [when,"!(SCOUNTENABLE_EN[20])"] RO

[when,"SCOUNTENABLE_EN[20]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[20])"] 0

scounteren.HPM21

21

[when,"SCOUNTENABLE_EN[21]"] RW [when,"!(SCOUNTENABLE_EN[21])"] RO

[when,"SCOUNTENABLE_EN[21]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[21])"] 0

scounteren.HPM22

22

[when,"SCOUNTENABLE_EN[22]"] RW [when,"!(SCOUNTENABLE_EN[22])"] RO

[when,"SCOUNTENABLE_EN[22]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[22])"] 0

scounteren.HPM23

23

[when,"SCOUNTENABLE_EN[23]"] RW [when,"!(SCOUNTENABLE_EN[23])"] RO

[when,"SCOUNTENABLE_EN[23]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[23])"] 0

scounteren.HPM24

24

[when,"SCOUNTENABLE_EN[24]"] RW [when,"!(SCOUNTENABLE_EN[24])"] RO

[when,"SCOUNTENABLE_EN[24]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[24])"] 0

scounteren.HPM25

25

[when,"SCOUNTENABLE_EN[25]"] RW [when,"!(SCOUNTENABLE_EN[25])"] RO

[when,"SCOUNTENABLE_EN[25]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[25])"] 0

scounteren.HPM26

26

[when,"SCOUNTENABLE_EN[26]"] RW [when,"!(SCOUNTENABLE_EN[26])"] RO

[when,"SCOUNTENABLE_EN[26]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[26])"] 0

scounteren.HPM27

27

[when,"SCOUNTENABLE_EN[27]"] RW [when,"!(SCOUNTENABLE_EN[27])"] RO

[when,"SCOUNTENABLE_EN[27]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[27])"] 0

scounteren.HPM28

28

[when,"SCOUNTENABLE_EN[28]"] RW [when,"!(SCOUNTENABLE_EN[28])"] RO

[when,"SCOUNTENABLE_EN[28]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[28])"] 0

scounteren.HPM29

29

[when,"SCOUNTENABLE_EN[29]"] RW [when,"!(SCOUNTENABLE_EN[29])"] RO

[when,"SCOUNTENABLE_EN[29]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[29])"] 0

scounteren.HPM30

30

[when,"SCOUNTENABLE_EN[30]"] RW [when,"!(SCOUNTENABLE_EN[30])"] RO

[when,"SCOUNTENABLE_EN[30]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[30])"] 0

scounteren.HPM31

31

[when,"SCOUNTENABLE_EN[31]"] RW [when,"!(SCOUNTENABLE_EN[31])"] RO

[when,"SCOUNTENABLE_EN[31]"] UNDEFINED_LEGAL [when,"!(SCOUNTENABLE_EN[31])"] 0

Fields

CY

Location

0

Description

When both scounteren.CY and mcounteren.CY are set, the cycle CSR (an alias of mcycle) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.CY)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

TM

Location

1

Description

When both scounteren.TM and mcounteren.TM are set, the time CSR (an alias of mtime memory-mapped CSR) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.TM)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

IR

Location

2

Description

When both scounteren.IR and mcounteren.IR are set, the instret CSR (an alias of memory-mapped minstret) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.IR)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM3

Location

3

Description

When both scounteren.HPM3 and mcounteren.HPM3 are set, the hpmcounter3 CSR (an alias of mhpmcounter3) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM3)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM4

Location

4

Description

When both scounteren.HPM4 and mcounteren.HPM4 are set, the hpmcounter4 CSR (an alias of mhpmcounter4) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM4)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM5

Location

5

Description

When both scounteren.HPM5 and mcounteren.HPM5 are set, the hpmcounter5 CSR (an alias of mhpmcounter5) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM5)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM6

Location

6

Description

When both scounteren.HPM6 and mcounteren.HPM6 are set, the hpmcounter6 CSR (an alias of mhpmcounter6) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM6)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM7

Location

7

Description

When both scounteren.HPM7 and mcounteren.HPM7 are set, the hpmcounter7 CSR (an alias of mhpmcounter7) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM7)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM8

Location

8

Description

When both scounteren.HPM8 and mcounteren.HPM8 are set, the hpmcounter8 CSR (an alias of mhpmcounter8) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM8)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM9

Location

9

Description

When both scounteren.HPM9 and mcounteren.HPM9 are set, the hpmcounter9 CSR (an alias of mhpmcounter9) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM9)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM10

Location

10

Description

When both scounteren.HPM10 and mcounteren.HPM10 are set, the hpmcounter10 CSR (an alias of mhpmcounter10) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM10)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM11

Location

11

Description

When both scounteren.HPM11 and mcounteren.HPM11 are set, the hpmcounter11 CSR (an alias of mhpmcounter11) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM11)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM12

Location

12

Description

When both scounteren.HPM12 and mcounteren.HPM12 are set, the hpmcounter12 CSR (an alias of mhpmcounter12) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM12)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM13

Location

13

Description

When both scounteren.HPM13 and mcounteren.HPM13 are set, the hpmcounter13 CSR (an alias of mhpmcounter13) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM13)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM14

Location

14

Description

When both scounteren.HPM14 and mcounteren.HPM14 are set, the hpmcounter14 CSR (an alias of mhpmcounter14) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM14)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM15

Location

15

Description

When both scounteren.HPM15 and mcounteren.HPM15 are set, the hpmcounter15 CSR (an alias of mhpmcounter15) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM15)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM16

Location

16

Description

When both scounteren.HPM16 and mcounteren.HPM16 are set, the hpmcounter16 CSR (an alias of mhpmcounter16) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM16)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM17

Location

17

Description

When both scounteren.HPM17 and mcounteren.HPM17 are set, the hpmcounter17 CSR (an alias of mhpmcounter17) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM17)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM18

Location

18

Description

When both scounteren.HPM18 and mcounteren.HPM18 are set, the hpmcounter18 CSR (an alias of mhpmcounter18) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM18)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM19

Location

19

Description

When both scounteren.HPM19 and mcounteren.HPM19 are set, the hpmcounter19 CSR (an alias of mhpmcounter19) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM19)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM20

Location

20

Description

When both scounteren.HPM20 and mcounteren.HPM20 are set, the hpmcounter20 CSR (an alias of mhpmcounter20) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM20)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM21

Location

21

Description

When both scounteren.HPM21 and mcounteren.HPM21 are set, the hpmcounter21 CSR (an alias of mhpmcounter21) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM21)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM22

Location

22

Description

When both scounteren.HPM22 and mcounteren.HPM22 are set, the hpmcounter22 CSR (an alias of mhpmcounter22) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM22)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM23

Location

23

Description

When both scounteren.HPM23 and mcounteren.HPM23 are set, the hpmcounter23 CSR (an alias of mhpmcounter23) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM23)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM24

Location

24

Description

When both scounteren.HPM24 and mcounteren.HPM24 are set, the hpmcounter24 CSR (an alias of mhpmcounter24) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM24)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM25

Location

25

Description

When both scounteren.HPM25 and mcounteren.HPM25 are set, the hpmcounter25 CSR (an alias of mhpmcounter25) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM25)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM26

Location

26

Description

When both scounteren.HPM26 and mcounteren.HPM26 are set, the hpmcounter26 CSR (an alias of mhpmcounter26) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM26)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM27

Location

27

Description

When both scounteren.HPM27 and mcounteren.HPM27 are set, the hpmcounter27 CSR (an alias of mhpmcounter27) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM27)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM28

Location

28

Description

When both scounteren.HPM28 and mcounteren.HPM28 are set, the hpmcounter28 CSR (an alias of mhpmcounter28) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM28)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM29

Location

29

Description

When both scounteren.HPM29 and mcounteren.HPM29 are set, the hpmcounter29 CSR (an alias of mhpmcounter29) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM29)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM30

Location

30

Description

When both scounteren.HPM30 and mcounteren.HPM30 are set, the hpmcounter30 CSR (an alias of mhpmcounter30) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM30)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0

HPM31

Location

31

Description

When both scounteren.HPM31 and mcounteren.HPM31 are set, the hpmcounter31 CSR (an alias of mhpmcounter31) is accessible to U-mode <% if ext?(:H) %>(delegation to VS/VU mode is further handled by hcounteren.HPM31)<% end %>.

Type
RW
RO
Reset value
UNDEFINED_LEGAL
0