Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
619 lines (554 loc) · 66.3 KB
/
Copy pathMakefile
File metadata and controls
619 lines (554 loc) · 66.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
# SPDX-FileCopyrightText: 2026 Huang Rui <vowstar@gmail.com>
# SPDX-License-Identifier: MIT
.PHONY: config check rtl software verify-software verify-data-software verify-supervisor-software zephyr verify-zephyr verify-zephyr-long verify-signoff verify-simulation verify-production verify-cache verify-platform verify-user verify-data-cache verify-supervisor verify-formal verify-scalar-formal verify-user-formal verify-data-formal verify-supervisor-formal verify-translation verify-translation-formal verify-translation-software verify-translation-cache verify-translation-cache-formal verify-translation-cache-software clean
.PHONY: verify-burst verify-burst-formal verify-burst-software verify-widths verify-width-software
.PHONY: verify-data-line verify-data-line-software verify-read-capacity verify-read-software
.PHONY: verify-writeback verify-writeback-software verify-scalar-isa verify-compressed-isa verify-bitmanip-isa verify-floating-isa
HART_COUNTS ?= 2 3 15 16
SCALAR_OUTPUT ?= result/scalar-isa/gate
BITMANIP_OUTPUT ?= result/bitmanip-isa
FLOATING_OUTPUT ?= result/floating-isa
COMPRESSED_OUTPUT ?= result/compressed-isa
COMPRESSED_CASES := $(addprefix compressed_,integer boundary illegal breakpoint groups control)
COMPRESSED_ARGS = $(foreach name,$(COMPRESSED_CASES),--case $(name))
MULDIV_CASES := $(addprefix muldiv_,0 1 2 3 4 5 6 7 0w 4w 5w 6w 7w)
ATOMIC_CASES := $(foreach size,2 3,$(addsuffix _$(size),$(addprefix atomic_,0 1 4 8 12 16 20 24 28) atomic_reservation))
SCALAR_CASES := $(MULDIV_CASES) $(ATOMIC_CASES) integer_reserved integer_breakpoint
SCALAR_EXTENSION_CASES := $(addprefix scalar_,zicond zimop zihintpause zihintntl)
FLOATING_HALF_CASES := $(addprefix floating_half_,memory read_fault write_fault)
SCALAR_CACHE := --icache-bytes 8192 --dcache-bytes 8192 --dcache-writeback --l2-cache-bytes 131072
ICACHE_CASES := pipeline_reuse pipeline_integer_stream pipeline_dependency_stream pipeline_dependency_chain cache_replacement fence_ordering fence_i_prefetch synchronization atomic_ordering atomic_denied atomic_retry bus_fetch pipeline_redirect pmp_fetch pmp_update interrupt_fence interrupt_fence_i interrupt_fetch_fault
PIPELINE_CASES := memory_groups memory_group_alignment memory_group_bus_read memory_group_bus_write pipeline_recovery pipeline_recovery_fault
USER_CASES := user_access user_system user_wait user_protection user_fetch user_mprv
SUPERVISOR_CASES := supervisor_traps supervisor_csr supervisor_mprv
TRANSLATION_CASES := sv39_data sv39_atomic exceptions narrow_memory atomic_denied lrsc_denied sv39_reuse sv39_protection sv39_large sv39_gigantic sv39_accessed sv39_dirty sv39_user_denied sv39_sum sv39_mxr sv39_canonical sv39_context
SOFTWARE_HARTS ?= 2
SOFTWARE_CONFIG ?= software/platform.json
SOFTWARE_OUTPUT ?= result/software
SOFTWARE_JOBS ?= 1
COUNTER_OUTPUT ?= result/counters
HYPERVISOR_OUTPUT ?= result/hypervisor
HYPERVISOR_SEEDS ?= 1 17
SOFTWARE_ICACHE_BYTES ?= $(if $(filter 16,$(SOFTWARE_HARTS)),8192,0)
SOFTWARE_DCACHE_BYTES ?= 0
SOFTWARE_PROFILE = --config $(SOFTWARE_CONFIG) --harts $(SOFTWARE_HARTS) --icache-bytes $(SOFTWARE_ICACHE_BYTES) --dcache-bytes $(SOFTWARE_DCACHE_BYTES) --console-base 0x10000000
ZEPHYR_TRANSACTIONS_1 := 280000
ZEPHYR_TRANSACTIONS_2 := 480000
ZEPHYR_TRANSACTIONS_16 := 2500000
ZEPHYR_TIMEOUT_1 := 600
ZEPHYR_TIMEOUT_2 := 600
ZEPHYR_TIMEOUT_16 := 5400
config:
configure-ditdah-a1 --output result/ditdah_a1_config.json
check:
configure-ditdah-a1 --check
rtl:
build-ditdah-a1
software:
for program in software/tests/console.S software/tests/integer.c; do \
name=$${program##*/}; name=$${name%.*}; \
python3 scripts/build_software.py $(SOFTWARE_PROFILE) --program $$program --stack-bytes 512 --output $(SOFTWARE_OUTPUT)/harts$(SOFTWARE_HARTS)/$$name || exit $$?; \
done
verify-software: software
for name in console integer; do \
image=$(SOFTWARE_OUTPUT)/harts$(SOFTWARE_HARTS)/$$name; \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done
verify-data-software:
for count in 1 2 16; do $(MAKE) verify-software SOFTWARE_HARTS=$$count SOFTWARE_DCACHE_BYTES=8192 SOFTWARE_OUTPUT=$(SOFTWARE_OUTPUT)/data-cache || exit $$?; done
verify-supervisor-software:
for count in 1 2 16; do for cache in 0 8192; do \
image=$(SOFTWARE_OUTPUT)/supervisor/harts$$count-cache$$cache; \
python3 scripts/build_software.py --config $(SOFTWARE_CONFIG) --supervisor-mode --expected-interrupt 1 --harts $$count --icache-bytes $$cache --dcache-bytes $$cache --console-base 0x10000000 --program software/tests/supervisor.S --stack-bytes 512 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done; done
.PHONY: verify-counters verify-counter-software
verify-counters:
python3 test/verify.py --width 64 --issue-width 3 --supervisor-mode --counters --hpm-counters 2 --sstc --case pipeline_integer_stream --output $(COUNTER_OUTPUT)/native
python3 test/formal.py --rtl $(COUNTER_OUTPUT)/native/irq-pmp16-axi64/rtl --output $(COUNTER_OUTPUT)/formal --modules CounterCsr CounterBackend --jobs $(FORMAL_JOBS)
$(MAKE) verify-counter-software
verify-counter-software:
for pair in 1:1 2:2 16:3; do \
count=$${pair%:*}; width=$${pair#*:}; cache=$$((count == 1 ? 0 : 8192)); image=$(COUNTER_OUTPUT)/software/h$$count-w$$width; \
python3 scripts/build_software.py --config $(SOFTWARE_CONFIG) --counters --hpm-counters 1 --sstc --supervisor-mode --harts $$count --issue-width $$width --icache-bytes $$cache --stack-bytes 512 --console-base 0x10000000 --program software/tests/counters.S --expected-interrupt 5 --expected-interrupt 5 --expected-interrupt 13 --expected-interrupt 13 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done
zephyr:
@test -n "$(ZEPHYR_TRANSACTIONS_$(SOFTWARE_HARTS))" || { echo 'Select SOFTWARE_HARTS=1, 2 or 16'; exit 1; }
python3 scripts/build_zephyr.py $(SOFTWARE_PROFILE) --timebase-hz 10000000 --output $(SOFTWARE_OUTPUT)/zephyr-harts$(SOFTWARE_HARTS)
verify-zephyr: zephyr
python3 test/verify.py --elf $(SOFTWARE_OUTPUT)/zephyr-harts$(SOFTWARE_HARTS)/software.elf --config $(SOFTWARE_OUTPUT)/zephyr-harts$(SOFTWARE_HARTS)/input.json --output $(SOFTWARE_OUTPUT)/zephyr-harts$(SOFTWARE_HARTS)/verification --software-transactions $(ZEPHYR_TRANSACTIONS_$(SOFTWARE_HARTS)) --software-timeout $(ZEPHYR_TIMEOUT_$(SOFTWARE_HARTS)) --jobs $(SOFTWARE_JOBS)
verify-zephyr-long:
for count in 1 2 16; do $(MAKE) verify-zephyr SOFTWARE_HARTS=$$count || exit $$?; done
verify-signoff: verify-debug-core verify-jtag verify-debug-module verify-debug-system verify-platform-system verify-writeback verify-formal
$(MAKE) verify-misaligned
$(MAKE) verify-memory-contracts
$(MAKE) verify-scalar-isa
$(MAKE) verify-compressed-isa
$(MAKE) verify-bitmanip-isa
$(MAKE) verify-floating-isa
$(MAKE) verify-counters
$(MAKE) verify-widths
$(MAKE) verify-data-line
$(MAKE) verify-read-capacity
$(MAKE) verify-memory-concurrency
$(MAKE) verify-prediction
$(MAKE) verify-cache-configuration
$(MAKE) verify-shared-cache
$(MAKE) verify-translation-context SOFTWARE_CONFIG=$(SHARED_OUTPUT)/software/w3-h16/input.json
$(MAKE) verify-supervisor-memory
$(MAKE) verify-hypervisor
.PHONY: verify-hypervisor verify-hypervisor-software verify-hypervisor-formal
verify-hypervisor: verify-hypervisor-formal
verify-hypervisor-software:
python3 test/verify.py --software-hypervisor-matrix --config $(SOFTWARE_CONFIG) --output $(HYPERVISOR_OUTPUT)/software --seeds $(HYPERVISOR_SEEDS) --software-timeout 1800 --jobs $(SOFTWARE_JOBS)
verify-hypervisor-formal: verify-hypervisor-software
for count in 1 2 16; do \
python3 test/formal.py --rtl $(HYPERVISOR_OUTPUT)/software/h$$count/verification/rtl --output $(HYPERVISOR_OUTPUT)/formal/h$$count --modules CounterCsr HypervisorCsr HypervisorBackend LsuContext HypervisorTranslation --jobs $(FORMAL_JOBS) || exit $$?; \
done
python3 test/formal.py --rtl $(HYPERVISOR_OUTPUT)/software/debug/rtl --output $(HYPERVISOR_OUTPUT)/formal/debug --modules DebugCsr --jobs $(FORMAL_JOBS)
SUPERVISOR_MEMORY_OUTPUT ?= result/supervisor-memory
SUPERVISOR_MEMORY_CASES = pbmt_nc_device pbmt_io_device pbmt_nc_atomic pbmt_io_atomic pbmt_nc_integer_stream pbmt_io_integer_stream svinval_context svinval_asid svinval_working_set pointer_pmm0_prv0_mxr0_tagaa pointer_pmm2_prv0_mxr0_tagaa pointer_pmm2_prv0_mxr1_tagaa pointer_pmm2_prv1_mxr0_tagaa pointer_pmm2_prv3_mxr0_tagaa pointer_pmm2_prv0_mxr0_tagab pointer_pmm2_prv0_mxr0_tag0 pointer_order_prv0_fiom00 pointer_order_prv0_fiom01 pointer_order_prv0_fiom10 pointer_order_prv0_fiom11 pointer_order_prv1_fiom00 pointer_order_prv1_fiom10
SUPERVISOR_MEMORY_CASES += sv39_high_fetch pointer_cbo_fault $(foreach kind,success missing pmp,pointer_sv39_misaligned_$(kind) $(foreach bits,32 64,pointer_floating_sv39_$(bits)_misaligned_$(kind)))
SUPERVISOR_MEMORY_CASES += pbmt_io_fetch_success pbmt_io_fetch_fault pointer_user_select
SUPERVISOR_MEMORY_ARGS = --svpbmt --svnapot --svinval --ssnpm --no-m --width 64 --pmp-entries 16 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 2 --floating-point-bits 64 --scalar Zicbom --misaligned --tlb-entries 4 --i-tlb-entries 4 --d-tlb-entries 4 --asid-bits 4 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --l2-cache-bytes 131072
.PHONY: verify-supervisor-memory
verify-supervisor-memory:
python3 test/verify.py $(SUPERVISOR_MEMORY_ARGS) $(foreach name,$(SUPERVISOR_MEMORY_CASES),--case $(name)) --output $(SUPERVISOR_MEMORY_OUTPUT)/native
python3 test/verify.py $(SUPERVISOR_MEMORY_ARGS) --compressed $(foreach name,pbmt_nc_integer_stream pbmt_io_integer_stream pbmt_io_fetch_success pbmt_io_fetch_fault compressed_boundary,--case $(name)) --output $(SUPERVISOR_MEMORY_OUTPUT)/compressed
python3 test/formal.py --rtl $(SUPERVISOR_MEMORY_OUTPUT)/compressed/irq-pmp16-axi64/rtl --output $(SUPERVISOR_MEMORY_OUTPUT)/compressed-formal --modules Pmp --jobs $(FORMAL_JOBS)
python3 test/formal.py --rtl $(SUPERVISOR_MEMORY_OUTPUT)/native/irq-pmp16-axi64/rtl --output $(SUPERVISOR_MEMORY_OUTPUT)/formal --modules IntegerDecode FloatingCsr SupervisorCsr SupervisorExecute Translation Axi ReadQueue --jobs $(FORMAL_JOBS)
python3 test/verify.py --ssnpm --svinval --misaligned --no-m --width 64 --pmp-entries 0 --case pointer_pmm2_prv0_mxr0_tagaa --case pointer_pmm2_prv0_mxr1_tagaa --case pointer_order_prv0_fiom00 $(foreach prv,0 1 3,$(foreach tvm,0 1,--case svinval_p$(prv)_tvm$(tvm))) --output $(SUPERVISOR_MEMORY_OUTPUT)/bare
python3 test/formal.py --rtl $(SUPERVISOR_MEMORY_OUTPUT)/bare/irq-axi64/rtl --output $(SUPERVISOR_MEMORY_OUTPUT)/bare-formal --modules LsuFragments SupervisorCsr SupervisorExecute IntegerDecode --jobs $(FORMAL_JOBS)
for count in 1 2 16; do \
image=$(SUPERVISOR_MEMORY_OUTPUT)/software/harts$$count; mkdir -p $$image; \
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); d=d.get("parameters",d); h=int(sys.argv[2]); e=0 if h==1 else 2 if h==2 else 4; \
d.update(hartCount=h, issueWidth=min(h,3), enableM=False, enableA=True, enableC=False, enableCounters=False, hpmCounters=0, enableSstc=False, enableJtag=False, \
enableSupervisorMode=True, enableUserMode=True, enableInterrupts=True, virtualAddressBits=39, floatingPointBits=64, enableMisaligned=True, \
enableSvinval=True, enableSvpbmt=True, enableSvnapot=True, enableSsnpm=True, enableZicbom=True, tlbEntries=e, iTlbEntries=e, dTlbEntries=e, asidBits=4 if e else 0, \
axiDataBits=64, iCacheBytes=8192 if e else 0, dCacheBytes=8192 if e else 0, dCacheWays=2 if h==2 else 1, dCacheWriteback=bool(e), \
enableBurstRefill=bool(e), dCacheRefillBytes=64 if e else 8, l2CacheBytes=131072 if h==16 else 0, loadQueueEntries=2, fabricReadSlots=2); \
next(r for r in d["memoryRegions"] if int(r["base"])==int(d["resetVector"]) and r["writable"] and r["executable"])["size"]=str(1048576 if h==16 else 524288); json.dump(d,open(sys.argv[3],"w"))' $(SOFTWARE_CONFIG) $$count $$image/source.json && \
python3 scripts/build_software.py --config $$image/source.json --program software/tests/virtual_memory.S --isa rv64iafd --scalar Zicbom --harts $$count --expected-interrupt 3 --console-base 0x10000000 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --software-transactions $$(((count==16 ? 16384 : 8192)*count)) --jobs $(SOFTWARE_JOBS) || exit $$?; \
done
MEMORY_OUTPUT ?= result/memory-contracts
CBO_CASES = cbo_clean cbo_inval cbo_flush cbo_clean_readonly cbo_inval_readonly cbo_flush_readonly cbo_clean_device cbo_inval_device cbo_flush_device cbo_clean_denied cbo_inval_denied cbo_flush_denied cbo_zero
WRS_CASES = wrs_nto_valid wrs_sto_valid wrs_nto_cleared wrs_sto_cleared wrs_nto_u_tw1_valid wrs_nto_s_tw1_valid wrs_nto_mprv wrs_sto_mprv
.PHONY: verify-memory-contracts
verify-memory-contracts:
python3 test/verify.py --multicore-only --harts 2 --no-m --no-a --width 128 --pmp-entries 0 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 4 --case store_buffering --case store_buffering_fence --output $(MEMORY_OUTPUT)/ordering
python3 test/verify.py --multicore-only --harts 2 --no-m --no-a --width 128 --pmp-entries 0 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 4 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --l2-cache-bytes 131072 --case store_buffering --case store_buffering_fence --output $(MEMORY_OUTPUT)/ordering-writeback
python3 test/verify.py --no-m --no-a --width 64 --pmp-entries 0 --case cbo_disabled --case wrs_nto_none --case wrs_sto_none --output $(MEMORY_OUTPUT)/disabled
python3 test/verify.py --no-m --no-a --scalar Zicboz --width 64 --pmp-entries 0 --case cbo_zero --case cbo_clean --output $(MEMORY_OUTPUT)/zero
python3 test/verify.py --no-m --no-a --scalar Zicbom --width 64 --pmp-entries 0 $(foreach name,$(CBO_CASES),--case $(name)) --output $(MEMORY_OUTPUT)/management
python3 test/verify.py --no-m --scalar Zawrs --supervisor-mode --width 64 --pmp-entries 0 $(foreach name,$(WRS_CASES),--case $(name)) --output $(MEMORY_OUTPUT)/wait
for profile in single supervisor; do python3 test/debug.py --profile $$profile --zawrs --case wrs_nto --case wrs_sto --case step_wrs_nto --case step_wrs_sto --output $(MEMORY_OUTPUT)/debug-$$profile || exit $$?; done
python3 test/verify.py --software-memory-matrix --config $(SOFTWARE_CONFIG) --output $(MEMORY_OUTPUT)/software --jobs $(SOFTWARE_JOBS)
python3 scripts/build_software.py --config $(MEMORY_OUTPUT)/software/sv39-h2/input.json --isa rv64ia --scalar Zawrs --program software/tests/reservation.S --stack-bytes 512 --console-base 0x10000000 --output $(MEMORY_OUTPUT)/reservation/software
python3 test/verify.py --elf $(MEMORY_OUTPUT)/reservation/software/software.elf --config $(MEMORY_OUTPUT)/software/sv39-h2/input.json --software-transactions 8192 --output $(MEMORY_OUTPUT)/reservation/verification --jobs $(SOFTWARE_JOBS)
.PHONY: verify-misaligned
verify-misaligned:
python3 test/verify.py --no-m --no-a --width 64 --pmp-entries 0 --case narrow_memory --case narrow_bus_read --case narrow_bus_write --output result/misaligned/disabled
python3 test/verify.py --misaligned --user-mode --no-m --no-a --floating-point-bits 64 --scalar Zfhmin --width 64 --pmp-entries 0 --case floating_misaligned_16_memory --case floating_misaligned_32_memory --case floating_misaligned_64_memory --case floating_misaligned_16_read --case floating_misaligned_32_write --case floating_misaligned_64_write --output result/misaligned/floating
for cache in wt wb; do extra=; test "$$cache" != wb || extra=--dcache-writeback; python3 test/verify.py --misaligned --user-mode --floating-point-bits 64 --scalar Zfhmin --width 64 --pmp-entries 0 --issue-width 2 --load-queue-entries 2 --fabric-read-slots 2 --dcache-bytes 8192 --dcache-refill-bytes 64 $$extra --case floating_misaligned_16_memory --case floating_misaligned_32_memory --case floating_misaligned_64_memory --case floating_misaligned_16_read --case floating_misaligned_32_write --case floating_misaligned_64_write --output result/misaligned/$$cache || exit $$?; done
python3 test/verify.py --misaligned --sv39 --floating-point-bits 64 --scalar Zfhmin --width 64 --pmp-entries 16 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 2 --icache-bytes 8192 --dcache-bytes 8192 --dcache-refill-bytes 64 --l2-cache-bytes 131072 --tlb-entries 4 --i-tlb-entries 4 --d-tlb-entries 2 --case sv39_misaligned_success --case sv39_misaligned_missing --case sv39_misaligned_accessed --case sv39_misaligned_dirty --case sv39_misaligned_readonly --case sv39_misaligned_pmp --case sv39_sum --case sv39_mxr --case sv39_context $(foreach width,16 32 64,$(foreach kind,success missing pmp,--case floating_sv39_$(width)_misaligned_$(kind))) --output result/misaligned/translated-floating
python3 test/formal.py --rtl result/misaligned/translated-floating/irq-pmp16-axi64/rtl --output result/misaligned/translation-formal --modules TranslationCore --jobs $(FORMAL_JOBS)
python3 test/verify.py --misaligned --interrupts --width 64 --pmp-entries 0 --load-queue-entries 2 --fabric-read-slots 2 --case misaligned_memory --case misaligned_read --case misaligned_write --case interrupt_read_pending --case interrupt_multiply --output result/misaligned/interrupt
python3 test/formal.py --rtl result/misaligned/interrupt/irq-axi64/rtl --output result/misaligned/formal --modules LsuFragments PipelineBackend InterruptBackend --jobs $(FORMAL_JOBS)
.PHONY: verify-debug-core
JTAG_OUTPUT ?= result/jtag-signoff
.PHONY: verify-jtag
verify-jtag:
python3 test/jtag.py --output $(JTAG_OUTPUT)
python3 test/formal.py --rtl $(JTAG_OUTPUT)/bridge --output $(JTAG_OUTPUT)/formal --modules DmiBridge
DEBUG_MODULE_OUTPUT ?= result/debug-module-signoff
DEBUG_SYSTEM_OUTPUT ?= result/debug-system-signoff
DEBUG_SYSTEM_PROFILES ?= single pair compressed supervisor coherent shared float32 float64 smp
OPENOCD ?= openocd
RISCV_GDB ?= riscv64-none-elf-gdb
PLATFORM_OUTPUT ?= result/platform-system
.PHONY: verify-platform-system
verify-platform-system:
python3 test/platform_system.py --output $(PLATFORM_OUTPUT)/endpoint
for count in 1 16; do \
python3 scripts/build_platform.py --config $(SOFTWARE_CONFIG) --harts $$count --clock-hz 10000000 --jtag-idcode 0xa126afff --output $(PLATFORM_OUTPUT)/h$$count/rtl || exit $$?; \
python3 test/platform_system.py --rtl $(PLATFORM_OUTPUT)/h$$count/rtl --output $(PLATFORM_OUTPUT)/h$$count/run --openocd $(OPENOCD) --gdb $(RISCV_GDB) || exit $$?; \
python3 test/formal.py --rtl $(PLATFORM_OUTPUT)/h$$count/rtl --output $(PLATFORM_OUTPUT)/h$$count/formal --modules PlatformMemory || exit $$?; \
done
python3 test/platform_system.py --rtl $(PLATFORM_OUTPUT)/h1/rtl --output $(PLATFORM_OUTPUT)/atomic-negative --mutation exclusive-read --openocd $(OPENOCD) --gdb $(RISCV_GDB)
python3 test/platform_system.py --virtual-memory --output $(PLATFORM_OUTPUT)/virtual --openocd $(OPENOCD) --gdb $(RISCV_GDB)
.PHONY: verify-debug-system
verify-debug-system:
for profile in $(DEBUG_SYSTEM_PROFILES); do \
python3 test/debug_system.py --profile $$profile --output $(DEBUG_SYSTEM_OUTPUT)/$$profile --openocd $(OPENOCD) --gdb $(RISCV_GDB) || exit $$?; \
python3 test/formal.py --rtl $(DEBUG_SYSTEM_OUTPUT)/$$profile/rtl --output $(DEBUG_SYSTEM_OUTPUT)/$$profile/formal --modules DebugModule DmiBridge DebugCsr || exit $$?; \
done
python3 test/formal.py --rtl $(DEBUG_SYSTEM_OUTPUT)/single/rtl --output $(DEBUG_SYSTEM_OUTPUT)/origin --modules Fetch Lsu MemoryArbiter
.PHONY: verify-debug-module
verify-debug-module:
for count in 1 3 16; do \
python3 test/debug_module.py --harts $$count --output $(DEBUG_MODULE_OUTPUT)/h$$count || exit $$?; \
python3 test/formal.py --rtl $(DEBUG_MODULE_OUTPUT)/h$$count/module --output $(DEBUG_MODULE_OUTPUT)/h$$count/formal --modules DebugModule || exit $$?; \
done
DEBUG_OUTPUT ?= result/debug-core-signoff
DEBUG_PROFILES ?= single wide floating supervisor
verify-debug-core:
for profile in $(DEBUG_PROFILES); do \
python3 test/debug.py --profile $$profile --output $(DEBUG_OUTPUT)/$$profile $$(test $$profile != wide || echo --mutations) || exit $$?; \
python3 test/formal.py --rtl $(DEBUG_OUTPUT)/$$profile/rtl --output $(DEBUG_OUTPUT)/$$profile/formal --modules DebugCsr --jobs 2 || exit $$?; \
done
.PHONY: verify-shared-cache
SHARED_OUTPUT ?= result/shared-cache-signoff
SHARED_ARGS = --load-queue-entries 2 --fabric-read-slots 4 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback
verify-shared-cache:
python3 test/verify.py --shared-cache-arrays --output $(SHARED_OUTPUT)/arrays
for bus in 256 512; do python3 test/formal.py --rtl $(SHARED_OUTPUT)/arrays/axi$$bus/rtl --output $(SHARED_OUTPUT)/formal$$bus --modules SharedCache || exit $$?; done
for profile in 2:128:2 16:512:3; do \
count=$${profile%%:*}; rest=$${profile#*:}; bus=$${rest%%:*}; width=$${rest#*:}; \
python3 test/verify.py $(SHARED_ARGS) --l2-cache-bytes 131072 --multicore-only --harts $$count --width $$bus --issue-width $$width --output $(SHARED_OUTPUT)/harts$$count --case data_coherence --case writeback_retry --case synchronization --case cache_reservation --case atomic_lrsc_shared --case atomic_interrupt || exit $$?; \
done
python3 test/verify.py $(SHARED_ARGS) --fabric-read-slots 3 --l2-cache-bytes 131072 --user-mode --interrupts --width 512 --issue-width 3 --output $(SHARED_OUTPUT)/protected --case user_mprv --case pmp_update --case pmp_permissions --case interrupt_read_pending --case synchronization --case fence_i_prefetch --case fence_ordering
python3 test/verify.py $(SHARED_ARGS) --fabric-read-slots 3 --l2-cache-bytes 131072 --sv39 --tlb-entries 4 --width 256 --issue-width 3 --output $(SHARED_OUTPUT)/translation --case sv39_context --case sv39_reuse --case sv39_accessed --case sv39_protection --case sv39_sum --case sv39_mxr
python3 test/verify.py $(SHARED_ARGS) --dcache-ways 1 --multicore-only --harts 2 --width 128 --issue-width 2 --output $(SHARED_OUTPUT)/conflict0 --case cache_conflict
python3 test/verify.py $(SHARED_ARGS) --dcache-ways 1 --l2-cache-bytes 131072 --multicore-only --harts 2 --width 128 --issue-width 2 --output $(SHARED_OUTPUT)/conflict1 --case cache_conflict --shared-cache-baseline $(SHARED_OUTPUT)/conflict0/summary.json
python3 test/verify.py --software-matrix --config $(SOFTWARE_CONFIG) --l2-cache-bytes 131072 --load-queue-entries 2 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --output $(SHARED_OUTPUT)/software --jobs $(SOFTWARE_JOBS)
.PHONY: verify-cache-configuration
CACHE_OUTPUT ?= result/cache-configuration
verify-cache-configuration:
for ways in 1 2; do \
python3 test/verify.py --cache-matrix --dcache-ways $$ways --output $(CACHE_OUTPUT)/ways$$ways || exit $$?; \
done
for profile in 8192:8:0 8192:8:1 65536:64:1; do \
bytes=$${profile%%:*}; rest=$${profile#*:}; refill=$${rest%%:*}; writeback=$${rest#*:}; \
python3 test/formal.py --rtl $(CACHE_OUTPUT)/ways2/c$$bytes-r$$refill-w$$writeback/rtl --output $(CACHE_OUTPUT)/formal-c$$bytes-r$$refill-w$$writeback --modules DataCacheAssociativity || exit $$?; \
done
for bytes in 8192 65536; do \
python3 test/verify.py --cache-matrix --dcache-bytes $$bytes --dcache-ways 2 --load-queue-entries 2 --output $(CACHE_OUTPUT)/dual$$bytes || exit $$?; \
done
for profile in 8192:8 65536:64; do \
bytes=$${profile%:*}; refill=$${profile#*:}; \
python3 test/formal.py --rtl $(CACHE_OUTPUT)/dual$$bytes/c$$bytes-r$$refill-w1/rtl --output $(CACHE_OUTPUT)/formal-dual$$bytes --modules DataCacheAssociativity --jobs $(FORMAL_JOBS) || exit $$?; \
done
for profile in 2:8192:64:1:8 2:16384:128:2:64 16:65536:512:3:64; do \
count=$${profile%%:*}; rest=$${profile#*:}; bytes=$${rest%%:*}; rest=$${rest#*:}; bus=$${rest%%:*}; rest=$${rest#*:}; width=$${rest%%:*}; refill=$${rest#*:}; \
python3 test/verify.py --multicore-only --harts $$count --width $$bus --issue-width $$width --load-queue-entries 2 --fabric-read-slots 4 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes $$bytes --dcache-ways 2 --dcache-refill-bytes $$refill --dcache-writeback --output $(CACHE_OUTPUT)/harts$$count-c$$bytes --case data_coherence --case synchronization --case cache_reservation --case atomic_lrsc_shared --case atomic_interrupt || exit $$?; \
done
python3 test/verify.py --user-mode --interrupts --width 512 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 65536 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --output $(CACHE_OUTPUT)/protected --case user_mprv --case pmp_update --case pmp_permissions --case interrupt_read_pending --case synchronization --case fence_i_prefetch --case fence_ordering
python3 test/verify.py --sv39 --tlb-entries 4 --width 256 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 65536 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --output $(CACHE_OUTPUT)/translation --case sv39_context --case sv39_reuse --case sv39_accessed --case sv39_protection --case sv39_sum --case sv39_mxr
for ways in 1 2; do \
comparison=""; if test $$ways = 2; then comparison="--cache-baseline $(CACHE_OUTPUT)/conflict1/summary.json"; fi; \
python3 test/verify.py --width 128 --pmp-entries 0 --dcache-bytes 8192 --dcache-ways $$ways $$comparison --output $(CACHE_OUTPUT)/conflict$$ways --case cache_conflict || exit $$?; \
done
python3 test/verify.py --software-matrix --config $(SOFTWARE_CONFIG) --load-queue-entries 2 --branch-prediction --branch-predictor-entries 8 --icache-bytes 8192 --burst-refill --dcache-bytes 65536 --dcache-ways 2 --dcache-refill-bytes 64 --dcache-writeback --output $(CACHE_OUTPUT)/software --jobs $(SOFTWARE_JOBS)
$(MAKE) verify-translation-software SOFTWARE_CONFIG=$(CACHE_OUTPUT)/software/w3-h16/input.json SOFTWARE_OUTPUT=$(CACHE_OUTPUT)/software SOFTWARE_TLB_ENTRIES=4 SOFTWARE_CACHE_SIZES=65536 SOFTWARE_BURST_REFILL=--burst-refill TRANSLATION_SOFTWARE_DIR=translation
.PHONY: verify-prediction
PREDICTION_OUTPUT ?= result/prediction
FORMAL_JOBS ?= 1
verify-prediction:
for mode in disabled 0 8 16; do \
prediction=""; comparison=""; \
if test $$mode != disabled; then prediction="--branch-prediction --branch-predictor-entries $$mode"; fi; \
if test $$mode = 8; then comparison="--prediction-baseline $(PREDICTION_OUTPUT)/0/summary.json"; fi; \
python3 test/verify.py --width 128 --issue-width 3 --pmp-entries 0 --icache-bytes 8192 --burst-refill $$prediction $$comparison --output $(PREDICTION_OUTPUT)/$$mode --case branch_window --case return_window --case return_switch --case pipeline_recovery --case pipeline_recovery_fault --case pipeline_redirect --case pipeline_older_fault --case pipeline_reuse || exit $$?; \
done
python3 test/verify.py --user-mode --interrupts --width 512 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --branch-prediction --branch-predictor-entries 8 --output $(PREDICTION_OUTPUT)/protected --case user_mprv --case pmp_update --case pmp_permissions --case interrupt_read_pending --case synchronization --case fence_i_prefetch --case fence_ordering --case pipeline_recovery --case pipeline_recovery_fault --case pipeline_redirect --case pipeline_older_fault --case return_switch
python3 test/verify.py --sv39 --tlb-entries 4 --width 256 --issue-width 2 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --branch-prediction --branch-predictor-entries 16 --output $(PREDICTION_OUTPUT)/translation --case sv39_context --case sv39_reuse --case sv39_accessed --case sv39_protection --case sv39_sum --case sv39_mxr
python3 test/verify.py --software-matrix --config $(SOFTWARE_CONFIG) --load-queue-entries 2 --branch-prediction --branch-predictor-entries 8 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --output $(PREDICTION_OUTPUT)/software --jobs $(SOFTWARE_JOBS)
python3 test/formal.py --rtl $(PREDICTION_OUTPUT)/8/axi128/rtl --output $(PREDICTION_OUTPUT)/formal --modules WfiFrontend PipelineBackend --jobs $(FORMAL_JOBS)
python3 test/formal.py --rtl $(PREDICTION_OUTPUT)/16/axi128/rtl --output $(PREDICTION_OUTPUT)/formal16 --modules WfiFrontend --jobs $(FORMAL_JOBS)
.PHONY: verify-memory-concurrency
verify-memory-concurrency:
python3 test/verify.py --multicore-only --harts 1 --width 64 --pmp-entries 0 --load-queue-entries 2 --fabric-read-slots 1 --dcache-bytes 8192 --output result/dual-load-serial --case load_window --case load_cancel
for profile in 1:2 2:4; do \
count=$${profile%:*}; slots=$${profile#*:}; \
python3 test/verify.py --multicore-only --harts $$count --width 128 --pmp-entries 0 --load-queue-entries 2 --fabric-read-slots $$slots --dcache-bytes 8192 --output result/dual-load --case load_window --case load_cancel || exit $$?; \
done
python3 test/formal.py --rtl result/dual-load/harts1-axi128/rtl --output result/formal/dual-load --modules LsuReads ReadQueue PipelineBackend
python3 test/verify.py --sv39 --width 64 --pmp-entries 0 --load-queue-entries 2 --fabric-read-slots 2 --case sv39_atomic --output result/dual-load-atomic
python3 test/formal.py --rtl result/dual-load-atomic/irq-axi64/rtl --output result/formal/dual-load-atomic --modules PipelineBackend --jobs $(FORMAL_JOBS)
python3 test/verify.py --multicore-only --harts 1 --width 256 --issue-width 2 --pmp-entries 0 --load-queue-entries 2 --fabric-read-slots 2 --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/dual-load-line --case load_window --case load_cancel
python3 test/verify.py --multicore-only --interrupts --harts 2 --width 64 --issue-width 2 --load-queue-entries 2 --pmp-entries 0 --dcache-bytes 8192 --dcache-writeback --output result/dual-load-writeback --case data_coherence --case synchronization --case atomic_interrupt --case cache_reservation --case interrupt
python3 test/verify.py --user-mode --interrupts --width 512 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --output result/dual-load-protection --case user_mprv --case pmp_update --case pmp_permissions --case interrupt_read_pending --case synchronization --case fence_i_prefetch --case fence_ordering
python3 test/verify.py --sv39 --tlb-entries 2 --width 512 --issue-width 3 --load-queue-entries 2 --fabric-read-slots 3 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/dual-load-translation --case sv39_context --case sv39_reuse --case sv39_accessed
python3 test/verify.py --software-matrix --load-queue-entries 2 --config $(SOFTWARE_CONFIG) --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --output $(SOFTWARE_OUTPUT)/dual-load --jobs $(SOFTWARE_JOBS)
$(MAKE) verify-translation-software SOFTWARE_CONFIG=$(SOFTWARE_OUTPUT)/dual-load/w3-h16/input.json SOFTWARE_TLB_ENTRIES=4 SOFTWARE_CACHE_SIZES=8192 SOFTWARE_BURST_REFILL=--burst-refill TRANSLATION_SOFTWARE_DIR=dual-load-translation
verify-writeback:
python3 test/verify.py $(SHARED_ARGS) --multicore-only --harts 2 --width 64 --issue-width 2 --case atomic_lrsc_neighbor --output result/writeback-neighbor
for profile in 2:64:1:8 2:128:2:64 16:512:3:64; do \
count=$${profile%%:*}; rest=$${profile#*:}; bus=$${rest%%:*}; rest=$${rest#*:}; width=$${rest%%:*}; span=$${rest#*:}; \
python3 test/verify.py --multicore-only --harts $$count --width $$bus --issue-width $$width --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes $$span --dcache-writeback --output result/writeback-harts$$count-axi$$bus --case data_coherence --case synchronization --case cache_reservation --case atomic_lrsc_shared --case atomic_interrupt || exit $$?; \
python3 test/formal.py --rtl result/writeback-harts$$count-axi$$bus/harts$$count-axi$$bus/rtl --output result/formal/writeback-harts$$count-axi$$bus --modules DataCacheWriteback Coherence MemoryArbiter MemoryFabric || exit $$?; \
done
python3 test/verify.py --sv39 --tlb-entries 4 --width 256 --issue-width 2 --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --output result/writeback-translation --case sv39_context --case sv39_reuse --case sv39_protection --case sv39_sum --case sv39_mxr
python3 test/verify.py --user-mode --interrupts --width 512 --pmp-entries 16 --dcache-bytes 8192 --dcache-writeback --output result/writeback-protection --case user_mprv --case pmp_update --case pmp_permissions --case interrupt_read_pending --case synchronization
$(MAKE) verify-writeback-software
verify-writeback-software:
python3 test/verify.py --software-refill-matrix --config $(SOFTWARE_CONFIG) --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-writeback --issue-width 3 --output $(SOFTWARE_OUTPUT)/writeback --jobs $(SOFTWARE_JOBS)
$(MAKE) verify-translation-software SOFTWARE_CONFIG=$(SOFTWARE_OUTPUT)/writeback/r64-h16/input.json SOFTWARE_TLB_ENTRIES=4 SOFTWARE_CACHE_SIZES=8192 SOFTWARE_BURST_REFILL=--burst-refill TRANSLATION_SOFTWARE_DIR=writeback-sv39
verify-read-capacity:
for profile in 1:1:64:1 1:2:512:2 2:1:64:1 2:2:64:1 2:4:64:2 3:3:128:2 16:4:256:2 16:4:512:3; do \
count=$${profile%%:*}; rest=$${profile#*:}; slots=$${rest%%:*}; rest=$${rest#*:}; bus=$${rest%%:*}; width=$${rest#*:}; \
cases="--case data_coherence --case synchronization"; \
if test $$count -gt 1; then cases="$$cases --case atomic_lrsc_shared --case atomic_interrupt"; fi; \
python3 test/verify.py --multicore-only --harts $$count --fabric-read-slots $$slots --width $$bus --issue-width $$width --pmp-entries 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/read-slots-harts$$count-$$slots-$$bus $$cases || exit $$?; \
python3 test/formal.py --rtl result/read-slots-harts$$count-$$slots-$$bus/harts$$count-axi$$bus/rtl --output result/formal/read-slots-harts$$count-$$slots-$$bus --modules ReadQueue MemoryFabric || exit $$?; \
done
$(MAKE) verify-read-software
verify-read-software:
python3 test/verify.py --software-read-matrix --config $(SOFTWARE_CONFIG) --harts 16 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --output $(SOFTWARE_OUTPUT)/read-slots --jobs $(SOFTWARE_JOBS)
verify-data-line:
for span in 8 64; do \
python3 test/verify.py --interrupts --width 64 --pmp-entries 0 --dcache-bytes 8192 --dcache-refill-bytes $$span --output result/data-line-work-$$span --case data_cache_cold --case data_cache_warm --case data_cache_sparse || exit $$?; \
done
python3 test/verify.py --user-mode --interrupts --width 512 --pmp-entries 16 --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/data-line-protected --case data_cache_word_boundary --case data_cache_boundary --case data_cache_narrow --case data_cache_retry --case pmp_update --case user_mprv --case interrupt_read_pending
python3 test/verify.py --width 128 --width 256 --width 512 --pmp-entries 0 --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/data-line-wide --case data_cache_cold --case data_cache_narrow --case data_cache_retry
for profile in 0:64:1 2:128:2 4:512:3; do \
entries=$${profile%%:*}; rest=$${profile#*:}; bus=$${rest%%:*}; width=$${rest#*:}; \
python3 test/verify.py --sv39 --tlb-entries $$entries --width $$bus --pmp-entries 16 --issue-width $$width --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/data-line-translation-$$entries --case sv39_reuse --case sv39_protection --case sv39_sum --case sv39_mxr --case sv39_context || exit $$?; \
done
for profile in 2:64:1 2:128:2 2:256:3 2:512:2 16:512:3; do \
count=$${profile%%:*}; rest=$${profile#*:}; bus=$${rest%%:*}; width=$${rest#*:}; \
python3 test/verify.py --multicore-only --harts $$count --width $$bus --pmp-entries 16 --issue-width $$width --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --output result/data-line-harts$$count-axi$$bus --case data_coherence --case synchronization --case atomic_lrsc_shared --case atomic_lrsc_private --case atomic_interrupt || exit $$?; \
done
python3 test/formal.py --rtl result/data-line-work-64/irq-axi64/rtl --output result/formal/data-line --modules DataCache Memory Axi
python3 test/formal.py --rtl result/data-line-protected/irq-pmp16-axi512/rtl --output result/formal/data-line-protected --modules Pmp Lsu DataCache Memory Axi
python3 test/formal.py --rtl result/data-line-translation-4/irq-pmp16-axi512/rtl --output result/formal/data-line-translation --modules Translation Lsu Coherence WfiFrontend
for profile in 2:64 2:512 16:512; do \
count=$${profile%:*}; bus=$${profile#*:}; \
python3 test/formal.py --rtl result/data-line-harts$$count-axi$$bus/harts$$count-axi$$bus/rtl --output result/formal/data-line-fabric-$$count-$$bus --modules ReadQueue MemoryFabric || exit $$?; \
done
build-ditdah-a1 --no-trace --config result/data-line-protected/irq-pmp16-axi512/input.json --output result/production-data-line
build-ditdah-a1 --no-trace --config result/data-line-harts16-axi512/harts16-axi512/input.json --output result/production-data-line-burst
python3 test/check_production.py --dcache-refill-bytes 64
$(MAKE) verify-data-line-software
verify-data-line-software:
python3 test/verify.py --software-refill-matrix --config $(SOFTWARE_CONFIG) --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --issue-width 3 --output $(SOFTWARE_OUTPUT)/data-line --jobs $(SOFTWARE_JOBS)
verify-widths:
for width in 1 2 3; do \
python3 test/verify.py --issue-width $$width --width 64 --pmp-entries 0 --icache-bytes 8192 --dcache-bytes 8192 --output result/widths/w$$width \
--case pipeline_integer_stream --case pipeline_dependency_stream --case pipeline_dependency_chain --case pipeline_redirect --case memory_word --case data_cache --case data_cache_narrow --case data_cache_retry $(foreach name,$(PIPELINE_CASES),--case $(name)) || exit $$?; \
done
python3 test/verify.py --issue-width 3 --branch-prediction --width 64 --pmp-entries 0 --icache-bytes 8192 --output result/widths/prediction $(foreach name,$(PIPELINE_CASES),--case $(name)) --case pipeline_redirect --case pipeline_older_fault --case pipeline_integer_stream
python3 test/verify.py --issue-width 3 --width 64 --pmp-entries 0 --output result/widths/uncached --case pipeline_redirect --case memory_word
python3 test/verify.py --issue-width 1 --branch-prediction --width 64 --pmp-entries 0 --output result/widths/prediction-uncached --case pipeline_recovery --case pipeline_redirect
for profile in 2:64:2 3:512:4; do \
width=$${profile%%:*}; rest=$${profile#*:}; bus=$${rest%%:*}; entries=$${rest#*:}; \
python3 test/verify.py --issue-width $$width --sv39 --tlb-entries $$entries --width $$bus --pmp-entries 16 --icache-bytes 8192 --dcache-bytes 8192 --output result/widths/translation-w$$width \
--case sv39_integer_stream --case sv39_reuse --case sv39_protection --case sv39_sum --case sv39_mxr --case sv39_context --case data_cache_boundary --case memory_group_pmp --case memory_group_page --case memory_group_interrupt || exit $$?; \
done
python3 test/formal.py --rtl result/widths/translation-w2/irq-pmp16-axi64/rtl --output result/formal/pipeline-w2 --modules PipelineBackend WfiFrontend
python3 test/formal.py --rtl result/widths/prediction/irq-axi64/rtl --output result/formal/pipeline-prediction --modules PipelineBackend WfiFrontend
build-ditdah-a1 --no-trace --config result/widths/w2/irq-axi64/input.json --output result/production-width2
build-ditdah-a1 --no-trace --config result/widths/prediction/irq-axi64/input.json --output result/production-prediction
python3 test/check_production.py --pipeline
$(MAKE) verify-width-software
verify-width-software:
python3 test/verify.py --software-matrix --config $(SOFTWARE_CONFIG) --icache-bytes 8192 --dcache-bytes 8192 --output $(SOFTWARE_OUTPUT)/widths --jobs $(SOFTWARE_JOBS)
verify-simulation: config check
python3 test/verify.py $(VERIFY_ARGS)
python3 test/verify.py --multicore-only --output result/multicore $(foreach count,$(filter-out 15,$(HART_COUNTS)),--harts $(count))
verify-production: verify-simulation
build-ditdah-a1 --output result/production
build-ditdah-a1 --top DitDahA1Core --output result/core
build-ditdah-a1 --top DitDahA1Frontend --config result/frontend-input.json --output result/frontend
build-ditdah-a1 --top DitDahA1MemoryFabric --config result/fabric-input.json --output result/fabric
build-ditdah-a1 --top DitDahA1Backend --config result/backend-input.json --output result/backend
build-ditdah-a1 --config result/verify/pmp16-axi512/input.json --output result/production-pmp16
build-ditdah-a1 --top DitDahA1Core --config result/verify/pmp16-axi512/input.json --output result/core-pmp16
build-ditdah-a1 --top DitDahA1Frontend --config result/verify/pmp16-axi512/input.json --output result/frontend-pmp16
build-ditdah-a1 --top DitDahA1Backend --config result/verify/pmp16-axi512/input.json --output result/backend-pmp16
build-ditdah-a1 --config result/verify/irq-pmp16-axi512/input.json --output result/production-irq
build-ditdah-a1 --top DitDahA1Core --config result/verify/irq-pmp16-axi512/input.json --output result/core-irq
build-ditdah-a1 --top DitDahA1Backend --config result/verify/irq-pmp16-axi512/input.json --output result/backend-irq
for count in $(HART_COUNTS); do build-ditdah-a1 --config result/harts$$count-input.json --output result/production-harts$$count || exit $$?; done
python3 test/check_production.py --harts $(HART_COUNTS)
verify-cache: verify-production
python3 test/verify.py --icache-bytes 8192 --width 64 --width 512 --output result/icache --traffic-baseline result/verify/summary.json $(foreach name,$(ICACHE_CASES),--case $(name))
python3 test/verify.py --icache-bytes 8192 --multicore-only --output result/icache-multicore $(foreach count,$(filter-out 15,$(HART_COUNTS)),--harts $(count)) --case synchronization --case atomic --case atomic_interrupt --case protection --case interrupt
python3 test/verify.py --icache-bytes 65536 --width 64 --pmp-entries 0 --output result/icache-large --case pipeline_reuse --case synchronization --case fence_i_prefetch
verify-platform: verify-cache
python3 test/verify.py --platform-only --output result/platform
for profile in 2:64 16:512; do \
count=$${profile%:*}; width=$${profile#*:}; config=result/platform/harts$$count-axi$$width/input.json; \
for program in software/tests/console.S software/tests/integer.c; do \
name=$${program##*/}; name=$${name%.*}-harts$$count; \
python3 scripts/build_software.py --config $$config --program $$program --stack-bytes 512 --output result/software/$$name && \
python3 test/verify.py --elf result/software/$$name/software.elf --config $$config --output result/software-verify/$$name || exit $$?; \
done; \
done
python3 test/verify.py --elf result/software/integer-harts2/software.elf --config result/platform/harts2-axi64/input.json --output result/software-verify/initialization --poison-bss
verify-user: verify-platform
python3 test/verify.py --user-mode --width 64 --pmp-entries 16 --output result/user $(foreach name,$(USER_CASES),--case $(name))
python3 test/verify.py --user-mode --width 512 --pmp-entries 16 --interrupts --icache-bytes 8192 --output result/user-cache $(foreach name,$(USER_CASES),--case $(name)) --case user_interrupt
python3 test/verify.py --user-mode --width 64 --pmp-entries 0 --interrupts --output result/user-pmp0 --case user_access --case user_system --case user_wait --case user_interrupt
python3 test/verify.py --user-mode --platform-only --harts 16 --width 512 --pmp-entries 16 --icache-bytes 8192 --output result/user-multicore --case user_isolation --case user_device
verify-data-cache: verify-user
python3 test/verify.py --dcache-bytes 8192 --width 64 --pmp-entries 0 --output result/data-cache --case data_cache --case memory_word --case atomic_ordering --case bus_read --case bus_write
python3 test/verify.py --dcache-bytes 8192 --icache-bytes 8192 --user-mode --interrupts --width 512 --pmp-entries 16 --output result/data-cache-user --case data_cache --case pmp_update --case user_access --case user_protection --case user_mprv --case user_interrupt
python3 test/verify.py --dcache-bytes 8192 --multicore-only --output result/data-coherence --harts 2 --harts 3 --harts 16 --case data_coherence --case synchronization --case atomic_lrsc_shared --case atomic_lrsc_private
python3 test/verify.py --dcache-bytes 8192 --user-mode --platform-only --harts 16 --width 512 --pmp-entries 16 --icache-bytes 8192 --output result/data-platform --case user_isolation --case user_device
build-ditdah-a1 --no-trace --config result/data-cache-user/irq-pmp16-axi512/input.json --output result/production-dcache
build-ditdah-a1 --no-trace --config result/data-coherence/harts16-axi512/input.json --output result/production-dcache-harts16
build-ditdah-a1 --no-trace --top DitDahA1MemoryFabric --config result/data-coherence/harts16-axi512/input.json --output result/fabric-dcache
python3 test/check_production.py --data-cache
$(MAKE) verify-data-software
verify-formal: verify-burst-formal
python3 test/formal.py --rtl result/multicore/harts2-axi64/rtl --output result/formal/read-fabric --modules ReadQueue MemoryFabric
python3 test/formal.py --rtl result/multicore/harts16-axi512/rtl --output result/formal/read-queue-wide --modules ReadQueue
verify-burst: verify-translation-cache-formal
python3 test/verify.py --burst-refill --icache-bytes 8192 --user-mode --width 64 --pmp-entries 16 --output result/burst
python3 test/verify.py --burst-refill --icache-bytes 8192 --width 128 --width 256 --width 512 --pmp-entries 0 --output result/burst-wide
python3 test/verify.py --burst-refill --icache-bytes 8192 --multicore-only --harts 2 --width 64 --pmp-entries 0 --output result/burst-harts2 --case synchronization --case data_coherence --case atomic_lrsc_shared --case exchange
python3 test/verify.py --burst-refill --icache-bytes 8192 --dcache-bytes 8192 --multicore-only --harts 16 --width 512 --pmp-entries 16 --interrupts --output result/burst-harts16
python3 test/verify.py --burst-refill --sv39 --tlb-entries 4 --icache-bytes 8192 --dcache-bytes 8192 --width 512 --pmp-entries 16 --output result/burst-translation --case sv39_reuse --case sv39_protection --case sv39_sum --case sv39_mxr --case sv39_context
$(MAKE) verify-burst-software
build-ditdah-a1 --no-trace --config $(SOFTWARE_OUTPUT)/burst/harts16-cache8192/input.json --output result/production-burst
python3 test/check_production.py --sv39 --tlb-entries 4 --burst-refill
verify-burst-formal: verify-burst
python3 test/formal.py --rtl result/burst/pmp16-axi64/rtl --output result/formal/burst --modules Pmp Fetch InstructionCache Memory MemoryArbiter Axi WfiFrontend
python3 test/formal.py --rtl result/burst-translation/irq-pmp16-axi512/rtl --output result/formal/burst-wide --modules Pmp SupervisorFetch InstructionCache Memory MemoryArbiter Axi Coherence WfiFrontend
.PHONY: verify-translation-context
TRANSLATION_OUTPUT ?= result/translation-context-signoff
TRANSLATION_ARGS = --sv39 --i-tlb-entries 2 --d-tlb-entries 2 --pmp-entries 16 --issue-width 3
verify-translation-context:
for entries in 0 4; do \
comparison=""; if test $$entries = 4; then comparison="--translation-baseline $(TRANSLATION_OUTPUT)/shared0/summary.json"; fi; \
python3 test/verify.py $(TRANSLATION_ARGS) --tlb-entries $$entries --width 64 --output $(TRANSLATION_OUTPUT)/shared$$entries --case sv39_working_set --case sv39_asid $$comparison || exit $$?; \
done
python3 test/verify.py $(TRANSLATION_ARGS) --asid-bits 4 --tlb-entries 4 --width 256 --load-queue-entries 2 --fabric-read-slots 3 --icache-bytes 8192 --burst-refill --dcache-bytes 8192 --dcache-refill-bytes 64 --dcache-writeback --l2-cache-bytes 131072 --output $(TRANSLATION_OUTPUT)/coherent --case sv39_asid --case sv39_context --case sv39_protection --case sv39_accessed --case sv39_sum --case sv39_mxr
for profile in shared0:64 shared4:64 coherent:256; do \
name=$${profile%:*}; bus=$${profile#*:}; \
python3 test/formal.py --rtl $(TRANSLATION_OUTPUT)/$$name/irq-pmp16-axi$$bus/rtl --output $(TRANSLATION_OUTPUT)/formal-$$name --modules Translation --jobs $(FORMAL_JOBS) || exit $$?; \
done
python3 test/formal.py --rtl $(TRANSLATION_OUTPUT)/coherent/irq-pmp16-axi256/rtl --output $(TRANSLATION_OUTPUT)/formal-scalar --modules SupervisorCsr SupervisorExecute IntegerDecode --jobs $(FORMAL_JOBS)
$(MAKE) verify-translation-software SOFTWARE_OUTPUT=$(TRANSLATION_OUTPUT)/software SOFTWARE_TLB_ENTRIES=4 SOFTWARE_CACHE_SIZES=8192 SOFTWARE_BURST_REFILL=--burst-refill SOFTWARE_TRANSLATION_ARGS="--asid-bits 4 --i-tlb-entries 2 --d-tlb-entries 2 --dcache-refill-bytes 64" TRANSLATION_SOFTWARE_DIR=context
build-ditdah-a1 --no-trace --config $(TRANSLATION_OUTPUT)/software/context/harts16-cache8192/input.json --output $(TRANSLATION_OUTPUT)/production-context
python3 test/check_production.py --root $(TRANSLATION_OUTPUT) --translation-context --sv39 --tlb-entries 4 --i-tlb-entries 2 --d-tlb-entries 2 --asid-bits 4 --burst-refill --dcache-refill-bytes 64
verify-translation-cache: verify-translation-formal
python3 test/verify.py --sv39 --tlb-entries 2 --width 64 --pmp-entries 16 --output result/translation-cache-small $(foreach name,$(TRANSLATION_CASES),--case $(name))
python3 test/verify.py --sv39 --tlb-entries 2 --width 64 --pmp-entries 0 --output result/translation-cache-pmp0 --case sv39_reuse --case sv39_context
python3 test/verify.py --sv39 --tlb-entries 4 --width 512 --pmp-entries 16 --icache-bytes 8192 --dcache-bytes 8192 --output result/translation-tlb --case sv39_reuse --case sv39_protection --case sv39_sum --case sv39_mxr --case sv39_context
$(MAKE) verify-translation-cache-software
build-ditdah-a1 --no-trace --config $(SOFTWARE_OUTPUT)/translation-cache/harts16-cache8192/input.json --output result/production-sv39-tlb4
python3 test/check_production.py --sv39 --tlb-entries 4
verify-translation-cache-formal: verify-translation-cache
python3 test/formal.py --rtl result/translation-cache-small/irq-pmp16-axi64/rtl --output result/formal/translation-cache-small --modules Translation
python3 test/formal.py --rtl result/translation-cache-pmp0/irq-axi64/rtl --output result/formal/translation-cache-pmp0 --modules Translation
python3 test/formal.py --rtl result/translation-tlb/irq-pmp16-axi512/rtl --output result/formal/translation-tlb --modules Translation
verify-translation-cache-software:
$(MAKE) verify-translation-software SOFTWARE_TLB_ENTRIES=4 TRANSLATION_SOFTWARE_DIR=translation-cache
SOFTWARE_TLB_ENTRIES ?= 0
SOFTWARE_TRANSLATION_ARGS ?=
TRANSLATION_SOFTWARE_DIR ?= translation
SOFTWARE_CACHE_SIZES ?= 0 8192
SOFTWARE_BURST_REFILL ?=
verify-burst-software:
$(MAKE) verify-translation-software SOFTWARE_TLB_ENTRIES=4 SOFTWARE_CACHE_SIZES=8192 SOFTWARE_BURST_REFILL=--burst-refill TRANSLATION_SOFTWARE_DIR=burst
verify-translation-software:
for count in 1 2 16; do for cache in $(SOFTWARE_CACHE_SIZES); do \
image=$(SOFTWARE_OUTPUT)/$(TRANSLATION_SOFTWARE_DIR)/harts$$count-cache$$cache; \
python3 scripts/build_software.py --config $(SOFTWARE_CONFIG) --sv39 --tlb-entries $(SOFTWARE_TLB_ENTRIES) $(SOFTWARE_TRANSLATION_ARGS) $(SOFTWARE_BURST_REFILL) --expected-interrupt 3 --harts $$count --icache-bytes $$cache --dcache-bytes $$cache --console-base 0x10000000 --program software/tests/virtual_memory.S --stack-bytes 512 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --software-transactions $$(((count == 16 ? 8192 : 4096) * count)) --jobs $(SOFTWARE_JOBS) || exit $$?; \
done; done
verify-translation: verify-supervisor-formal
python3 test/verify.py --sv39 --width 64 --pmp-entries 16 --output result/translation $(foreach name,$(TRANSLATION_CASES),--case $(name))
python3 test/verify.py --sv39 --width 512 --pmp-entries 16 --icache-bytes 8192 --dcache-bytes 8192 --output result/translation-cache --case sv39_data --case sv39_sum --case sv39_mxr --case sv39_context
$(MAKE) verify-translation-software
build-ditdah-a1 --no-trace --config $(SOFTWARE_OUTPUT)/translation/harts16-cache8192/input.json --output result/production-sv39
python3 test/check_production.py --sv39
verify-translation-formal: verify-translation
python3 test/formal.py --rtl result/translation/irq-pmp16-axi64/rtl --output result/formal/translation --modules Translation SupervisorCsr SupervisorExecute IntegerDecode
python3 test/formal.py --rtl result/translation-cache/irq-pmp16-axi512/rtl --output result/formal/translation-cache --modules Translation SupervisorCsr SupervisorExecute Lsu
verify-supervisor: verify-data-formal
python3 test/verify.py --supervisor-mode --width 64 --pmp-entries 16 --output result/supervisor $(foreach name,$(SUPERVISOR_CASES),--case $(name))
python3 test/verify.py --supervisor-mode --width 512 --pmp-entries 16 --icache-bytes 8192 --dcache-bytes 8192 --output result/supervisor-cache $(foreach name,$(SUPERVISOR_CASES),--case $(name)) --case data_cache
$(MAKE) verify-supervisor-software
build-ditdah-a1 --no-trace --config $(SOFTWARE_OUTPUT)/supervisor/harts16-cache8192/input.json --output result/production-supervisor
python3 test/check_production.py --supervisor
verify-supervisor-formal: verify-supervisor
python3 test/formal.py --rtl result/supervisor/irq-pmp16-axi64/rtl --output result/formal/supervisor --modules SupervisorCsr SupervisorExecute SupervisorFetch Pmp Fetch Lsu Axi IntegerDecode
python3 test/formal.py --rtl result/supervisor-cache/irq-pmp16-axi512/rtl --output result/formal/supervisor-cache --modules SupervisorCsr SupervisorExecute SupervisorFetch InstructionCache DataCache
verify-scalar-formal: verify-data-cache
python3 test/formal.py
python3 test/formal.py --rtl result/production-pmp16 --output result/formal/pmp16
python3 test/formal.py --rtl result/verify/pmp16-axi64/rtl --output result/formal/pmp16-pa32 --modules Pmp Axi
python3 test/formal.py --rtl result/production-irq --output result/formal/irq --modules InterruptCsr InterruptBackend WfiBackend
python3 test/formal.py --rtl result/verify/irq-axi64/rtl --output result/formal/irq-pa32 --modules InterruptCsr InterruptBackend WfiBackend
python3 test/formal.py --rtl result/icache/axi64/rtl --output result/formal/icache-pa32 --modules InstructionCache SynchronizationBackend WfiFrontend WfiBackend
python3 test/formal.py --rtl result/icache/irq-pmp16-axi512/rtl --output result/formal/icache --modules InstructionCache SynchronizationBackend WfiFrontend WfiBackend
python3 test/formal.py --rtl result/platform/harts2-axi64/rtl --output result/formal/platform --modules LocalInterrupts
python3 test/formal.py --rtl result/platform/harts16-axi512/rtl --output result/formal/platform-harts16 --modules LocalInterrupts Lsu WfiBackend
for count in $(HART_COUNTS); do python3 test/formal.py --rtl result/production-harts$$count --output result/formal/harts$$count --modules MemoryArbiter || exit $$?; done
verify-user-formal: verify-scalar-formal
python3 test/formal.py --rtl result/user/pmp16-axi64/rtl --output result/formal/user --modules UserCsr UserExecute Csr Pmp Fetch Lsu Axi
python3 test/formal.py --rtl result/user-cache/irq-pmp16-axi512/rtl --output result/formal/user-cache --modules UserCsr UserExecute Pmp InstructionCache Axi InterruptCsr
verify-data-formal: verify-user-formal
python3 test/formal.py --rtl result/data-cache/axi64/rtl --output result/formal/data-cache --modules DataCache Coherence
python3 test/formal.py --rtl result/data-cache-user/irq-pmp16-axi512/rtl --output result/formal/data-cache-user --modules DataCache Lsu
for profile in 2:64 3:64 16:512; do \
count=$${profile%:*}; width=$${profile#*:}; \
python3 test/formal.py --rtl result/data-coherence/harts$$count-axi$$width/rtl --output result/formal/coherence-harts$$count --modules Coherence || exit $$?; \
done
clean:
rm -rf result
verify-scalar-isa:
python3 test/verify.py --scalar Zicond Zimop --interrupts --issue-width 3 --width 64 --pmp-entries 0 $(foreach name,$(SCALAR_CASES) $(SCALAR_EXTENSION_CASES) interrupt_divide,--case $(name)) --output $(SCALAR_OUTPUT)/enabled
python3 test/formal.py --rtl $(SCALAR_OUTPUT)/enabled/irq-axi64/rtl --output $(SCALAR_OUTPUT)/formal --modules MulDiv IntegerDecode WordExecute RvfiExecute ZktControl Lsu Memory Axi InterruptBackend --jobs 2
python3 test/verify.py --no-m --no-a --issue-width 2 --width 64 --pmp-entries 0 $(foreach name,$(SCALAR_CASES) scalar_zicond_disabled scalar_zimop_disabled scalar_zcb_disabled scalar_zcmop_disabled scalar_zihintpause scalar_zihintntl,--case $(name)) --output $(SCALAR_OUTPUT)/disabled
python3 test/formal.py --rtl $(SCALAR_OUTPUT)/disabled/axi64/rtl --output $(SCALAR_OUTPUT)/disabled-formal --modules IntegerDecode RvfiExecute Memory --jobs 2
python3 test/verify.py $(SCALAR_CACHE) --issue-width 3 --load-queue-entries 2 --fabric-read-slots 4 --multicore-only --harts 2 --width 64 --pmp-entries 0 --case atomic_lrsc_shared_word --case atomic_lrsc_private_word --case atomic_lrsc_shared --case atomic_lrsc_private --case atomic --output $(SCALAR_OUTPUT)/coherent
python3 test/verify.py $(SCALAR_CACHE) --issue-width 3 --load-queue-entries 2 --fabric-read-slots 2 --multicore-only --harts 2 --width 64 --pmp-entries 0 --burst-refill --dcache-ways 2 --dcache-refill-bytes 64 --case atomic_lrsc_collision --output $(SCALAR_OUTPUT)/reservation-collision
python3 test/verify.py $(SCALAR_CACHE) --sv39 --issue-width 2 --load-queue-entries 2 --width 512 --pmp-entries 16 --tlb-entries 4 --i-tlb-entries 4 --d-tlb-entries 4 --asid-bits 4 --case sv39_atomic --case sv39_protection --output $(SCALAR_OUTPUT)/translated
for count in 1 2 16; do \
python3 scripts/build_software.py --config $(SOFTWARE_CONFIG) --isa rv64ima --program software/tests/atomic.c --harts $$count --issue-width $$((count < 3 ? count : 3)) --icache-bytes 8192 --dcache-bytes 8192 --stack-bytes 512 --console-base 0x10000000 --output $(SCALAR_OUTPUT)/software/harts$$count || exit $$?; \
python3 test/verify.py --elf $(SCALAR_OUTPUT)/software/harts$$count/software.elf --config $(SCALAR_OUTPUT)/software/harts$$count/input.json --output $(SCALAR_OUTPUT)/software/harts$$count/verification || exit $$?; \
done
verify-compressed-isa:
python3 test/verify.py --compressed --scalar Zcb Zcmop --width 64 --pmp-entries 0 $(COMPRESSED_ARGS) --case scalar_zcb --case scalar_zcmop --output $(COMPRESSED_OUTPUT)/bare
python3 test/formal.py --rtl $(COMPRESSED_OUTPUT)/bare/axi64/rtl --output $(COMPRESSED_OUTPUT)/formal --modules CompressedFetch ZktControl MulDiv
python3 test/verify.py --compressed --scalar Zicond Zimop Zcb Zcmop --bitmanip Zba Zbb Zbs --width 128 --pmp-entries 0 --issue-width 3 --icache-bytes 8192 --branch-prediction --branch-predictor-entries 8 $(COMPRESSED_ARGS) --case scalar_zcb --case scalar_zcmop --output $(COMPRESSED_OUTPUT)/cached
python3 test/formal.py --rtl $(COMPRESSED_OUTPUT)/cached/axi128/rtl --output $(COMPRESSED_OUTPUT)/cache-formal --modules InstructionCache ZktControl PipelineBackend --jobs $(FORMAL_JOBS)
python3 test/verify.py --compressed --scalar Zcb --no-m --no-a --width 256 --pmp-entries 0 --issue-width 2 $(foreach name,scalar_zcb scalar_zcmop_disabled scalar_zcb_requires_m scalar_zcb_requires_zba scalar_zcb_requires_zbb,--case $(name)) --output $(COMPRESSED_OUTPUT)/conditional
python3 test/verify.py --compressed --scalar Zcb Zcmop $(SCALAR_CACHE) --burst-refill --sv39 --tlb-entries 4 --i-tlb-entries 4 --d-tlb-entries 2 --width 512 --pmp-entries 16 --issue-width 2 $(foreach kind,page success pma pmp,--case compressed_page_$(kind) --case zcb_page_$(kind)) --output $(COMPRESSED_OUTPUT)/translated
python3 test/formal.py --rtl $(COMPRESSED_OUTPUT)/translated/irq-pmp16-axi512/rtl --output $(COMPRESSED_OUTPUT)/burst-formal --modules InstructionCache
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); d=d.get("parameters",d); d["enableC"]=True; json.dump(d,open(sys.argv[2],"w"))' "$(SOFTWARE_CONFIG)" "$(COMPRESSED_OUTPUT)/software.json"
for count in 1 2 16; do \
image=$(COMPRESSED_OUTPUT)/software/harts$$count; \
python3 scripts/build_software.py --config $(COMPRESSED_OUTPUT)/software.json --isa rv64imac --program software/tests/atomic.c --harts $$count --issue-width $$((count < 3 ? count : 3)) --icache-bytes 8192 --dcache-bytes 8192 --stack-bytes 512 --console-base 0x10000000 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done
verify-floating-isa:
python3 test/verify.py --floating-point-bits 64 --scalar Zfa Zfhmin --compressed --interrupts --width 64 --pmp-entries 0 --issue-width 3 $(foreach name,floating_32 floating_64 floating_state floating_rounding_32 floating_rounding_64 floating_read_fault_32 floating_read_fault_64 floating_write_fault_32 floating_write_fault_64 floating_zfa_0 floating_zfa_1 floating_zfhmin_0 floating_zfhmin_1 floating_zfhmin_2 $(FLOATING_HALF_CASES),--case $(name)) --output $(FLOATING_OUTPUT)/double
python3 test/formal.py --rtl $(FLOATING_OUTPUT)/double/irq-axi64/rtl --output $(FLOATING_OUTPUT)/formal --modules FloatingCsr FloatingFpu FloatingBackend
python3 test/verify.py --floating-point-bits 32 --scalar Zfa Zfhmin --no-m --compressed --width 256 --pmp-entries 0 --issue-width 1 $(foreach name,floating_32 floating_state floating_rounding_32 floating_read_fault_32 floating_write_fault_32 floating_zfa_0 floating_zfhmin_0 floating_zfhmin_2 $(FLOATING_HALF_CASES),--case $(name)) --output $(FLOATING_OUTPUT)/single
python3 test/formal.py --rtl $(FLOATING_OUTPUT)/single/axi256/rtl --output $(FLOATING_OUTPUT)/single-formal --modules FloatingCsr FloatingFpu
python3 test/verify.py --floating-point-bits 32 --scalar Zfa Zfhmin --no-m --compressed --width 256 --pmp-entries 0 --issue-width 1 --icache-bytes 8192 --case floating_half_cancel --output $(FLOATING_OUTPUT)/single-cancel
for bits in 32 64; do \
python3 test/verify.py --floating-point-bits $$bits --scalar Zfhmin --compressed --interrupts --width 64 --pmp-entries 0 --issue-width 2 --load-queue-entries 2 $(foreach name,$(FLOATING_HALF_CASES),--case $(name)) --output $(FLOATING_OUTPUT)/queued$$bits && \
python3 test/formal.py --rtl $(FLOATING_OUTPUT)/queued$$bits/irq-axi64/rtl --output $(FLOATING_OUTPUT)/queued-formal$$bits --modules LsuReads --jobs $(FORMAL_JOBS) || exit $$?; \
done
python3 test/verify.py --floating-point-bits 64 --scalar Zfhmin --compressed --interrupts --width 64 --pmp-entries 0 --issue-width 2 --load-queue-entries 2 --icache-bytes 8192 --case floating_half_cancel --output $(FLOATING_OUTPUT)/queued-cancel
python3 test/verify.py --compressed --no-m --no-a --width 512 --pmp-entries 0 --issue-width 2 $(foreach width,32 64,$(foreach n,0 1 2,--case floating_$(width)_disabled_$(n))) --case floating_disabled_zfa --case floating_disabled_zfhmin --output $(FLOATING_OUTPUT)/disabled
python3 test/verify.py --floating-point-bits 32 --compressed --no-m --width 128 --pmp-entries 0 --issue-width 2 --case floating_disabled_zfa --case floating_disabled_zfhmin --output $(FLOATING_OUTPUT)/extensions-disabled
python3 test/verify.py --floating-point-bits 64 --scalar Zfa Zfhmin --compressed $(SCALAR_CACHE) --sv39 --tlb-entries 4 --i-tlb-entries 4 --d-tlb-entries 2 --width 512 --pmp-entries 16 --issue-width 2 $(foreach name,data protection sum mxr,--case floating_sv39_$(name) --case floating_half_sv39_$(name)) $(foreach name,floating floating_off floating_s floating_s_off,--case user_$(name)) --output $(FLOATING_OUTPUT)/translated
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); d=d.get("parameters",d); d.update(floatingPointBits=64,enableC=True,**{"enable"+n:True for n in ("Zba","Zbb","Zbs","Zicond","Zimop","Zcb","Zcmop","Zfa","Zfhmin")}); json.dump(d,open(sys.argv[2],"w"))' "$(SOFTWARE_CONFIG)" "$(FLOATING_OUTPUT)/software.json"
for count in 1 2 16; do \
image=$(FLOATING_OUTPUT)/software/harts$$count; \
python3 scripts/build_software.py --config $(FLOATING_OUTPUT)/software.json --isa rv64imafdc --bitmanip Zba Zbb Zbs --scalar Zicond Zimop Zcb Zcmop Zfa Zfhmin --program software/tests/atomic.c --harts $$count --issue-width $$((count < 3 ? count : 3)) --icache-bytes 8192 --dcache-bytes 8192 --stack-bytes 512 --console-base 0x10000000 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); d.update(virtualAddressBits=39,enableUserMode=True,enableSupervisorMode=True,enableInterrupts=True,iCacheBytes=65536,dCacheBytes=65536,dCacheWays=2,dCacheWriteback=True,dCacheRefillBytes=64,l2CacheBytes=131072,axiDataBits=512,loadQueueEntries=2,fabricReadSlots=4,enableBurstRefill=True,enableBranchPrediction=True,branchPredictorEntries=16,tlbEntries=4,iTlbEntries=4,dTlbEntries=4,asidBits=4); json.dump(d,open(sys.argv[2],"w"))' "$(FLOATING_OUTPUT)/software.json" "$(FLOATING_OUTPUT)/maximum.json"
python3 scripts/build_software.py --config $(FLOATING_OUTPUT)/maximum.json --isa rv64imafdc --bitmanip Zba Zbb Zbs --program software/tests/virtual_memory.S --harts 16 --issue-width 3 --stack-bytes 512 --expected-interrupt 3 --console-base 0x10000000 --output $(FLOATING_OUTPUT)/maximum
python3 test/verify.py --elf $(FLOATING_OUTPUT)/maximum/software.elf --config $(FLOATING_OUTPUT)/maximum/input.json --output $(FLOATING_OUTPUT)/maximum/verification --software-transactions 65536 --jobs $(SOFTWARE_JOBS)
verify-bitmanip-isa:
python3 test/verify.py --bitmanip Zba Zbb Zbs --width 64 --pmp-entries 0 --issue-width 3 $(foreach name,zba zbb zbs,--case bitmanip_$(name)) --output $(BITMANIP_OUTPUT)/enabled
python3 test/formal.py --rtl $(BITMANIP_OUTPUT)/enabled/axi64/rtl --output $(BITMANIP_OUTPUT)/formal --modules BitManipDecode BitManipExecute RvfiExecute ZktControl --jobs 2
python3 test/verify.py --width 512 --pmp-entries 0 --issue-width 2 $(foreach name,zba zbb zbs,--case bitmanip_$(name)) --output $(BITMANIP_OUTPUT)/disabled
python3 test/formal.py --rtl $(BITMANIP_OUTPUT)/disabled/axi512/rtl --output $(BITMANIP_OUTPUT)/disabled-formal --modules BitManipDecode
python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); d=d.get("parameters",d); d.update({"enable"+n:True for n in ("Zba","Zbb","Zbs")}); json.dump(d,open(sys.argv[2],"w"))' "$(SOFTWARE_CONFIG)" "$(BITMANIP_OUTPUT)/software.json"
for count in 1 2 16; do \
image=$(BITMANIP_OUTPUT)/software/harts$$count; \
python3 scripts/build_software.py --config $(BITMANIP_OUTPUT)/software.json --isa rv64ima --bitmanip Zba Zbb Zbs --program software/tests/atomic.c --harts $$count --issue-width $$((count < 3 ? count : 3)) --icache-bytes 8192 --dcache-bytes 8192 --stack-bytes 512 --console-base 0x10000000 --output $$image && \
python3 test/verify.py --elf $$image/software.elf --config $$image/input.json --output $$image/verification --jobs $(SOFTWARE_JOBS) || exit $$?; \
done