Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from utils.run_utils import RunUtils
from utils.class_process import Process
from utils.memory_config import MemoryConfig
from utils.memory_factory import MemoryFactory
from utils.timing_data import TimingData

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

# Go through each sram and generate the lib, lef and v files
for sram_data in json_data["srams"]:
name = str(sram_data["name"])
width_in_bits = int(sram_data["width"])
depth = int(sram_data["depth"])
num_banks = int(sram_data["banks"])
mem_config = MemoryConfig.from_json(sram_data)
memory = MemoryFactory.create(
name,
width_in_bits,
depth,
num_banks,
memory_type,
port_config,
process,
timing_data,
mem_config, memory_type, port_config, process, timing_data
)
RunUtils.write_memory(memory, args.output_dir)

Expand Down
Loading
Loading