Skip to content

Commit 2c8e1c6

Browse files
committed
Hex dump all global buffers with extName
1 parent 853089b commit 2c8e1c6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

DeeployTest/testUtils/codeGenerate.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,15 +292,9 @@ def dumpBuffer(buf: VariableBuffer, path: str):
292292

293293
paddedArray.astype(typeStr).tofile(path)
294294

295-
# SCHEREMO: Dump all global const buffers as hex files
296-
globalConstBuffers = [
297-
buf for key, buf in deployer.ctxt.globalObjects.items() if isinstance(buf, VariableBuffer) and buf._deploy
298-
]
299-
l3ConstBuffer = [buf for buf in globalConstBuffers if hasattr(buf, "_memoryLevel") and buf._memoryLevel == "L3"]
300-
295+
# LMACAN: Dump all global buffers with the "extName" attribute
301296
os.makedirs(path, exist_ok = True)
302-
303-
for idx, buf in enumerate(l3ConstBuffer):
297+
for buf in deployer.ctxt.globalObjects.values():
304298
if hasattr(buf, "extName"):
305299
pathName = os.path.join(path, f"{buf.extName}.hex")
306300
dumpBuffer(buf, pathName)

0 commit comments

Comments
 (0)