SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.18453 · 2024

Annotating Slack Directly on Your Verilog: Fine-Grained RTL Timing Evaluation for Early Optimization

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.18453.json · badge: /api/ran/2403.18453.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hkust-zhiyao/rtl-timer canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
data_augment Ran
ran, honoured the contract we drafted
hkust-zhiyao/rtl-timer/RTL_pwr_model/train_infer_k_fold_BOG.component.py
code served (permissive licence) · get_code("a6d9884a730e198d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small sample arrays for feat_arr and label_arr
# feat_arr should be 2D (num_samples, num_features)
# label_arr should be 2D (num_samples, num_labels)
feat_arr = np.random.randn(5, 4).astype(np.float32)  # 5 samples, 4 features
label_arr = np.random.randn(5, 3).astype(np.float32)  # 5 samples, 3 labels

ARGS = {
    "feat_arr": feat_arr,
    "label_arr": label_arr,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
testing Ran
ran; our contract draft was wrong, not the code
hkust-zhiyao/rtl-timer/RTL_timing_model/train_infer_k_fold_BOG.slack.py
code served (permissive licence) · get_code("d26820d0c2d116e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import numpy as np
import pandas as pd
import pickle
import tempfile
from unittest.mock import Mock

# Create a minimal XGBoost regressor mock that has a predict method
class MockXGBRegressor:
    def predict(self, X):
        # Return predictions matching number of samples
        return np.random.rand(len(X)) * 10

# Create mock functions that are called in testing()
def regression_metrics(pred, label):
    # Returns r_val, mape_val, rrse_val, mae_val
    r_val = np.array([0.85])
    mape_val = np.array([0.12])
    rrse_val = np.array([0.05])
    mae_val = np.array([0.3])
    return r_val, mape_val, rrse_val, mae_val

def coverage(pred, label, reg_lst, k=4):
    # Returns some coverage metric
    return 0.92

def draw_scatter_plot(pred, label, filepath, title=""):
    # Mock plot function - does nothing
    pass

# Create temporary directory structure
tmpdir = tempfile.mkdtemp()
feat_label_dir = os.path.join(tmpdir, 'preprocess', 'feat_label_timing')
os.makedirs(feat_label_dir, exist_ok=True)

# Create sample pickle data
design_name = 'test_design'
cmd = 'test_cmd'
label_cmd = '_label'

# Create sample feature/label data
feat_label_design = [
    {
        'feat_design': [1.0, 2.0, 3.0],
        'feat_path': [0.5, 0.6, 0.7],
        'label_slack': 5.5,
        'name': 'reg_0'
    },
    {
        'feat_design': [1.5, 2.5, 3.5],
        'feat_path': [0.55, 0.65, 0.75],
        'label_slack': 6.2,
        'name': 'reg_1'
    }
]

# Save pickle file
pickle_path = os.path.join(feat_label_dir, f'{design_name}_{cmd}{label_cmd}.pkl')
with open(pickle_path, 'wb') as f:
    pickle.dump(feat_label_design, f)

# Create fig directory
fig_dir = os.path.join(tmpdir, 'fig')
os.makedirs(fig_dir, exist_ok=True)

# Inject globals needed by testing function
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'cmd', cmd)
setattr(current_module, 'label_cmd', label_cmd)
setattr(current_module, 'regression_metrics', regression_metrics)
setattr(current_module, 'coverage', coverage)
setattr(current_module, 'draw_scatter_plot', draw_scatter_plot)
setattr(current_module, 'pred_lst', [])
setattr(current_module, 'real_lst', [])
setattr(current_module, 'pred_module_lst', [])
setattr(current_module, 'real_module_lst', [])

# Monkey-patch the feat_label_dir in testing to use our temp directory
import builtins
original_open = builtins.open

def patched_open(file, *args, **kwargs):
    if 'feat_label_timing' in file:
        file = file.replace('../preprocess/feat_label_timing', feat_label_dir)
    if './fig' in file:
        file = file.replace('./fig', fig_dir)
    return original_open(file, *args, **kwargs)

builtins.open = patched_open

# Patch os.path.exists and os.makedirs to work with our paths
original_exists = os.path.exists
original_makedirs = os.makedirs

def patched_exists(path):
    if './fig' in path:
        path = path.replace('./fig', fig_dir)
    return original_exists(path)

def patched_makedirs(path, *args, **kwargs):
    if './fig' in path:
        path = path.replace('./fig', fig_dir)
    return original_makedirs(path, *args, **kwargs)

os.path.exists = patched_exists
os.makedirs = patched_makedirs

# Create the ARGS dictionary
ARGS = {
    'design_name': 'test_design',
    'xgbr': MockXGBRegressor()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
testing Not yet run
unverified (harvested, no recorded run)
hkust-zhiyao/rtl-timer/RTL_pwr_model/train_infer_k_fold_BOG.component.py
code served (permissive licence) · get_code("420fcb5c05334178")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In digital IC design, compared with post-synthesis netlists or layouts, the early register-transfer level (RTL) stage offers greater optimization flexibility for both designers and EDA tools. However, timing information is typically unavailable at this early stage. Some recent machine learning (ML) solutions propose to predict the total negative slack (TNS) and worst negative slack (WNS) of an entire design at the RTL stage, but the fine-grained timing information of individual registers remains unavailable. In this work, we address the unique challenges of RTL timing prediction and introduce our solution named RTL-Timer. To the best of our knowledge, this is the first fine-grained general timing estimator applicable to any given design. RTL-Timer explores multiple promising RTL representations and proposes customized loss functions to capture the maximum arrival time at register endpoints. RTL-Timer's fine-grained predictions are further applied to guide optimization in a standard synthesis flow. The average results on unknown test designs demonstrate a correlation above 0.89, contributing around 3% WNS and 10% TNS improvement after optimization.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.18453")
get_code_for_paper("2403.18453")
have("2403.18453")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.18453.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.18453.svg)](https://syntology.ai/paper/2403.18453)

Connect an agent — have() is free.