Skip to content

Commit cd2b85e

Browse files
committed
doc: update changelog and expected output of cpuinfo
Signed-off-by: qiujiandong <[email protected]>
1 parent 2e3bed1 commit cd2b85e

File tree

2 files changed

+93
-24
lines changed

2 files changed

+93
-24
lines changed

doc/source/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ This is release version of ``0.9.0`` of Nuclei SDK, which is still under develop
2121

2222
- Add new application :ref:`design_app_demo_eclic_umode` to show how to use U-Mode with ECLIC running in M-Mode
2323
- For FreeRTOS demo/smpdemo, now default use MSTATUS.MIE to do interrupt masking since default ``configMAX_SYSCALL_INTERRUPT_PRIORITY`` set to 255
24+
- Update ``cpuinfo`` to display additional CPU features, including prefetch capabilities, hardware performance configirations, supported ISAs, and more. See :ref:`design_app_cpuinfo`.
25+
- Add ``get_basic_cpuinfo`` in ``cpuinfo`` to get basic CPU information in a single string.
2426

2527
* OS
2628

@@ -49,6 +51,7 @@ This is release version of ``0.9.0`` of Nuclei SDK, which is still under develop
4951

5052
- Fix typo ``reuqests`` to ``requires`` in ``app.rst``
5153
- Update ``rtos.rst`` to mention about recent bugfix for RTOS porting, and other RTOSes supported but not in Nuclei SDK
54+
- Update the expected output of ``cpuinfo`` in ``app.rst``
5255

5356
* Tools
5457

doc/source/design/app.rst

Lines changed: 90 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ You can also use openocd to probe the cpu feature, see https://doc.nucleisys.com
130130
# Assume that you can set up the Tools and Nuclei SDK environment
131131
# cd to the helloworld directory
132132
cd application/baremetal/cpuinfo
133-
# Assume to run on UX900 SMPx8 CPU
133+
# Assume to run on UX1030 SMPx1 RVA23 CPU
134134
# Clean the application first
135135
make SOC=evalsoc DOWNLOAD=sram clean
136136
# Build and upload the application
@@ -140,33 +140,99 @@ You can also use openocd to probe the cpu feature, see https://doc.nucleisys.com
140140

141141
.. code-block:: console
142142
143-
Nuclei SDK Build Time: May 28 2024, 13:36:12
143+
Nuclei SDK Build Time: Sep 23 2025, 09:41:30
144144
Download Mode: SRAM
145-
CPU Frequency 50322800 Hz
145+
CPU Frequency 50327388 Hz
146146
CPU HartID: 0
147147
148148
-----Nuclei RISC-V CPU Configuration Information-----
149-
MARCHID: 0x900
150-
MIMPID: 0x30900
151-
ISA: RV64 A B C D F I M S U Zc Xxlcz
152-
MCFG: ECLIC PLIC ICACHE DCACHE SMP ZC_XLCZ_EXT IREGION No-Safety-Mechanism DLEN=VLEN/2
153-
ICACHE: 64 KB(set=512,way=2,lsize=64,ecc=0)
154-
DCACHE: 64 KB(set=512,way=2,lsize=64,ecc=0)
155-
TLB: MainTLB(set=256,way=4,entry=1,ecc=0) ITLB(entry=16) DTLB(entry=16)
156-
IREGION: 0x18000000 128 MB
157-
Unit Size Address
158-
INFO 64KB 0x18000000
159-
DEBUG 64KB 0x18010000
160-
ECLIC 64KB 0x18020000
161-
TIMER 64KB 0x18030000
162-
SMP 64KB 0x18040000
163-
CIDU 64KB 0x18050000
164-
PLIC 64MB 0x1c000000
165-
SMP_CFG: CC_PRESENT=1 SMP_NUM=8 IOCP_NUM=0 PMON_NUM=4
166-
ECLIC: VERSION=0x0 NUM_INTERRUPT=71 CLICINTCTLBITS=3 MTH=0 NLBITS=3
167-
L2CACHE: 2 MB(set=2048,way=16,lsize=64,ecc=0)
168-
INFO-Detail:
169-
mpasize : 32
149+
MARCHID: 0x1000
150+
MIMPID: 0x10300
151+
ISA: RV64 A B C D F H I M S U V
152+
MCFG: ECLIC PLIC ICACHE DCACHE SMP IREGION SSTC No-Safety-Mechanism DLEN=VLEN
153+
ICACHE: 128 KB(set=512,way=4,lsize=64,ecc=0)
154+
DCACHE: 128 KB(set=1024,way=2,lsize=64,ecc=0)
155+
TLB: MainTLB(entry=256,way=4,ecc=0) ITLB(entry=16) DTLB(entry=16)
156+
IREGION: 0x18000000 128 MB
157+
Unit Size Address
158+
INFO 64KB 0x18000000
159+
DEBUG 64KB 0x18010000
160+
ECLIC 64KB 0x18020000
161+
TIMER 64KB 0x18030000
162+
SMP 64KB 0x18040000
163+
PLIC 64MB 0x1c000000
164+
SMP_CFG: CC_PRESENT=1 SMP_NUM=1 IOCP_NUM=0 PMON_NUM=4
165+
ECLIC: VERSION=0x1 NUM_INTERRUPT=147 CLICINTCTLBITS=3 MTH=0 NLBITS=3
166+
L2CACHE: 2 MB(set=2048,way=16,lsize=64,ecc=0)
167+
INFO-Detail:
168+
mpasize : 35
169+
prefetch: present
170+
prefetch_mode: normal
171+
status: disable
172+
version=4
173+
l2_pf_lbuf_num=10
174+
l2_pf_dbuf_num=2
175+
l1d_ena=1
176+
cc_ena=1
177+
scalar_ena=1
178+
vector_ena=1
179+
write_pref_ena=1
180+
cross_page_pref_ena=1
181+
pref_conflict_stop_th=1
182+
pref_conflict_decr_sel=2
183+
degree_incr_th=0
184+
degree_decr_th=0
185+
next_line_ena_th=5
186+
write_noalloc_l1_th=0
187+
write_noalloc_l2_th=0
188+
max_stream_l1_degree=6
189+
max_stream_l2_degree=16
190+
max_stride_cplx_l1_degree=3
191+
max_stride_cplx_l2_degree=8
192+
isa supported: present
193+
extension_list: vector smepmp sscofpmf zfh zfa svnapot svpbmt svinval bf16 zimop zcmop zicond zihintntl zihintpause zihpm smcntrpmf zicntr zawrs
194+
vpu: present
195+
vpu_extension_list: vector_b zve64f zve64d zvfh
196+
noseg_noshuf=0
197+
elen64=1
198+
vlm: absent
199+
flash bus: absent
200+
mem_region0: absent
201+
mem_region1: absent
202+
cppi: absent
203+
cmo: present
204+
cbozero_size: 64 Bytes
205+
cmo_size: 64 Bytes
206+
cmo_prefetch=1
207+
hw performance: present
208+
bus: ICB
209+
fpu_cycle=5
210+
high_div=1
211+
dcache_2stage=1
212+
delay_branch_flush=0
213+
dual_issue=0
214+
cross_4k=0
215+
dlm_2stage=0
216+
lsu_cut_fwd=0
217+
dsp_cycle=0
218+
ifu_cut_timing=0
219+
mem_cut_timing=0
220+
dcache_prefetch=0
221+
dcache_lbuf_num=4
222+
mul_cyc=3
223+
vfpu_cyc=4
224+
bht_entry_width=2
225+
high_performance=1
226+
agu_quick_forward=1
227+
cau_fwd=0
228+
hpm_ver=2
229+
misc:
230+
ws_tmout_max=767
231+
nc_tmout_max=0
232+
dev_store_early_ret=0
233+
pf_access=0
234+
cache_csr_access=0
235+
pma_csr_access=0
170236
-----End of Nuclei CPU INFO-----
171237
172238
.. _design_app_demo_timer:

0 commit comments

Comments
 (0)