Repository navigation
feat(opp,routing): add multi-OPP serial MIF knee, FP16 dequant routing, SRAM cliff, and multi-overlay composition - #52
Merged
Conversation
Signed-off-by: Bobby Bones <saariuscrypto@gmail.com>
This was referenced Nov 30, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends
freesched(C11/C++17) andfreesilicon-twin(Python) with generic, SoC-agnostic multi-OPP & serial-bus memory fabric modeling, asymmetric FP16-dequant vs INT8-dot precision routing, accelerator SRAM residency cliff modeling, sync-bridge quirk selection, and ordered multi-overlay composition:include/freesched.h,src/fs_topology.cpp,src/fs_router.cpp):fs_opp_point_t,fs_opp_policy_t(FS_OPP_POLICY_PEAK,FS_OPP_POLICY_EFFICIENCY,FS_OPP_POLICY_BALANCED),fs_eval_serial_bus_bw_gbps()(strict minimum across series-coupled fabric buses), andfs_select_opp_point()(maximizing throughput, throughput/total-watt knee, or balanced efficiency).src/fs_router.cpp,python/freesilicon_twin/roofline.py):prefer_fp16_dequantorpeak_tops_int8 * 1000 < peak_gflops_fp16) instead of slower INT8dot4x8.sram_spill_bw_gbps/tpu_weight_stream_peak_gbpswhen accelerator weight tensors exceed on-chip SRAM capacity (sram_cliff_hit).include/freesched.h,src/fs_topology.cpp,src/fs_executor.cpp):fs_sync_bridge_mode_tandfs_select_sync_bridge()selectingFS_SYNC_BRIDGE_SYNC_FILEwheniif_kthread_quirkis active on non-TPU -> TPU handoffs andFS_SYNC_BRIDGE_IIF_TIMERwhen clean.python/freesilicon_twin/{profiles.py,cli.py,roofline.py,schema.py}):--profile-overlayflags and separatedFREESILICON_TWIN_OVERLAYlists with fail-closed validation and deep-copy isolation of bundled profiles (zero private calibration payloads bundled).Verification
make verify-headers(32 strict-std=c11/-std=c++17 -Wall -Wextra -Werrorchecks): PASSFREESCHED_MOCK=1 ./build/test_c11_abi: PASSFREESCHED_MOCK=1 ./build/test_freesched(13/13 suites): PASSFREESCHED_MOCK=1 ./build/freesched_dmabuf_smoke --profile malibu --mock --json: PASS (zero_copy_handoffs=3,fallback_copies=0)./twin/freesilicon-twin self-test(schema_errors=0): PASS./scripts/clean-room-audit.sh: PASSED across 157 files (0 errors)