modify the outputName
This commit is contained in:
parent
45f8862b4e
commit
46885906bd
|
@ -1,4 +1,4 @@
|
|||
.vscode/
|
||||
/Scripts/*.xls
|
||||
test.*
|
||||
output_*/
|
||||
*sram_wrap/
|
|
@ -54,7 +54,8 @@ def generate_files(xls_path, sheet_name=None):
|
|||
|
||||
print(f"Processing sheet: {sheet.name} with columns: {col_map}")
|
||||
# 创建输出目录
|
||||
output_dir = f"output_{sheet.name}"
|
||||
# output_dir = f"output_{sheet.name}"
|
||||
output_dir = f"{sheet.name}_sram_wrap"
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
|
||||
sram_port = ""
|
||||
|
@ -63,12 +64,12 @@ def generate_files(xls_path, sheet_name=None):
|
|||
for row_idx in range(2, sheet.nrows):
|
||||
row = sheet.row_values(row_idx)
|
||||
# 检查必要列是否有值
|
||||
if not row[col_map['name']] or not row[col_map['width']] or not row[col_map['depth']]:
|
||||
if not row[col_map['name']] or not row[col_map['AssemblyWidth']] or not row[col_map['AssemblyDepth']]:
|
||||
print(f"[Warning] Missing required data in row {row_idx}, skipping.")
|
||||
continue
|
||||
# is Assembly or not
|
||||
print(f"[Note:Assembly] AssemblyDepth is {row[col_map['AssemblyDepth']]} and AssemblyWidth is {row[col_map['AssemblyWidth']]} in row {row_idx}, skipping.")
|
||||
if int(row[col_map['AssemblyDepth']]) * int(row[col_map['AssemblyWidth']]) == 1:
|
||||
if int(row[col_map['AssemblyDepth']]) + int(row[col_map['AssemblyWidth']]) == 2:
|
||||
if row[col_map['port']] == 'SP':
|
||||
sram_port = 'SRAM_SP'
|
||||
template_file = "template_sram_sp_wrap.v"
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue