Skip to content

Commit

Permalink
[WIP]Update Minerva/sky130_c4m
Browse files Browse the repository at this point in the history
* 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
stafverhaegen-chipflow committed Jun 7, 2024
1 parent f10587e commit 9741c5d
Show file tree
Hide file tree
Showing 2 changed files with 37,224 additions and 37,224 deletions.
2 changes: 1 addition & 1 deletion benchs/RISC-V/Minerva/sky130_c4m/doDesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def scriptMain ( **kw ):
conf.bColumns = 2
conf.bRows = 2
conf.chipName = 'chip'
conf.coreSize = ( u(210*10.0), u(210*10.0) )
conf.coreSize = ( u(210*6.0), u(210*6.0) )
#conf.chipSize = ( u( 2020.0), u( 2060.0) )
conf.coreToChipClass = CoreToChip
conf.useHTree( 'io_in_from_pad(0)', Spares.HEAVY_LEAF_LOAD )
Expand Down
Loading

0 comments on commit 9741c5d

Please sign in to comment.