Files
retroSoC/physical/smoke/syn/yosys/script/crypto_block_synth.tcl
T
maksyuki b72e14ea40 feat: add comprehensive test suite for CRYPTO-P0 functionality
- Introduced  for independent mathematical operations and RSA fixtures.
- Implemented  for testing DMA channels with AES ECB and memory interactions.
- Created  to validate RSA-2048 operations and Montgomery reduction.
- Developed  for testing AES and SHA vector compliance.
- Added  to validate image packing, integer root calculations, and inventory checks.
- Ensured robust error handling and validation in tests to catch data corruption and recursive hierarchy issues.
2026-09-25 11:21:42 +08:00

28 lines
1.2 KiB
Tcl

# Copyright (c) 2026 Yuchi Miao <miaoyuchi@ict.ac.cn>
# SPDX-License-Identifier: MulanPSL-2.0
# Diagnostic checkpoints around the UNCHANGED full-SoC synthesis recipe.
# The only elaboration difference is the explicit standalone interface boundary.
rename yosys crypto_original_yosys
proc yosys {args} {
set command [lindex $args 0]
if {$command eq "read_slang"} {
lappend args --allow-toplevel-iface-ports
}
if {$command eq "memory"} {
crypto_original_yosys write_json "$::env(REPORTS)/pre_memory_design.json"
}
if {$command eq "opt_dff" && [lsearch -exact $args -sat] >= 0} {
crypto_original_yosys write_json "$::env(REPORTS)/pre_sat_design.json"
}
set result [uplevel 1 [list crypto_original_yosys {*}$args]]
if {$command eq "proc"} {
crypto_original_yosys write_json "$::env(REPORTS)/initial_design.json"
}
if {$command eq "opt_dff" && [lsearch -exact $args -sat] >= 0} {
crypto_original_yosys write_json "$::env(REPORTS)/post_sat_design.json"
}
return $result
}
source [file join [file dirname [info script]] synth.tcl]
crypto_original_yosys write_json "$::env(REPORTS)/mapped_design.json"