Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reduce area * Update blif file; used code #!/bin/env python3 conv_text = ( ("o2_x2", "or2_x1", None, None), ("o3_x2", "or3_x1", None, None), ("o4_x2", "or4_x1", None, None), ("a2_x2", "and2_x1", None, None), ("a3_x2", "and3_x1", None, None), ("a4_x2", "and4_x1", None, None), ("mx2_x2", "mux2_x1", None, None), ("nxr2_x1", "nexor2_x0", None, None), # Needs to be before next one ("xr2_x1", "xor2_x0", None, None), ("sff1_x4", "dff_x1", "ck=", "clk="), ("sff1r_x4", "dffnr_x1", "ck=", "clk="), ("ao22_x2", "and21nor_x1", "q=", "nq="), ("oa22_x2", "or21nand_x1", "q=", "nq="), ) with open("non_generated/user_project_core_lambdasoc.blif", "r") as fin: with open("user_project_core_lambdasoc.blif", "w") as fout: for line in fin: for s, r, s2, r2 in conv_text: if s in line: line = line.replace(s, r) if s2 is not None: line = line.replace(s2, r2) fout.write(line) TODO: PnR still fails.
- Loading branch information