MCPcopy Create free account
hub / github.com/CMU-SAFARI/ramulator2 / replace_param

Method replace_param

python/ramulator/dram/spec.py:302–306  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

300 """Evaluate 'nCL + nBL + 2 - nCWL' using resolved timing values."""
301
302 def replace_param(match):
303 name = match.group(0)
304 if name in timing_dict:
305 return str(timing_dict[name])
306 return name
307
308 substituted = re.sub(r"[a-zA-Z_]\w*", replace_param, expr)
309 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected