Skip to content

BRAM support#9

Open
StephenMoreOSU wants to merge 3 commits into
masterfrom
sm-bram-support
Open

BRAM support#9
StephenMoreOSU wants to merge 3 commits into
masterfrom
sm-bram-support

Conversation

@StephenMoreOSU

Copy link
Copy Markdown
Owner
  • Added tests for bram supported in legacy COFFE.
  • Modified ERF section of transistor sizing code s.t. sim failures end gracefully.

@StephenMoreOSU StephenMoreOSU self-assigned this May 19, 2026
Comment on lines -1118 to +1143
# Get the tfall and trise delays for the inverter from the spice measurements
tfall = float(spice_meas["meas_" + circuit_element + "_tfall"][0])
trise = float(spice_meas["meas_" + circuit_element + "_trise"][0])
erf_error = abs((tfall - trise)/tfall)
# Get the tfall and trise delays for the inverter from the spice measurements.
# A "failed" value means HSPICE could not measure the .MEAS condition (signal did
# not cross supply_v/2 in time). Treat as a large delay so the ERF loop bails out
# via ERF_MAX_ITERATIONS rather than crashing in float().
tfall_str = spice_meas["meas_" + circuit_element + "_tfall"][0]
trise_str = spice_meas["meas_" + circuit_element + "_trise"][0]
if tfall_str == "failed" or trise_str == "failed":
tfall = 1.0
trise = 1.0
erf_error = 1.0
else:
tfall = float(tfall_str)
trise = float(trise_str)
erf_error = abs((tfall - trise)/tfall)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this change, need to add a warning message saying a sim failed, or else this silent failure may cause confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant