Skip to content

Commit 8597e60

Browse files
committed
added additional_height option
updated flow test to test add height; black formatting added rect_pin_mode for tight pin situations fixed track_count calculation if spare_tracks is dead on fixed we_in hardcoding in liberty + added hooks for future spreadsheet input removed comma from last pin in Verilog list Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
1 parent 9c04e62 commit 8597e60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+9860
-2704
lines changed

run.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from utils.run_utils import RunUtils
77
from utils.class_process import Process
8+
from utils.memory_config import MemoryConfig
89
from utils.memory_factory import MemoryFactory
910
from utils.timing_data import TimingData
1011

@@ -41,19 +42,9 @@ def main(args: argparse.Namespace):
4142

4243
# Go through each sram and generate the lib, lef and v files
4344
for sram_data in json_data["srams"]:
44-
name = str(sram_data["name"])
45-
width_in_bits = int(sram_data["width"])
46-
depth = int(sram_data["depth"])
47-
num_banks = int(sram_data["banks"])
45+
mem_config = MemoryConfig.from_json(sram_data)
4846
memory = MemoryFactory.create(
49-
name,
50-
width_in_bits,
51-
depth,
52-
num_banks,
53-
memory_type,
54-
port_config,
55-
process,
56-
timing_data,
47+
mem_config, memory_type, port_config, process, timing_data
5748
)
5849
RunUtils.write_memory(memory, args.output_dir)
5950

0 commit comments

Comments
 (0)