2021-11-02 23:07:18 +01:00
|
|
|
"""
|
|
|
|
|
Dual port (1 read/write + 1 read only) 1 kbytes SRAM with byte write.
|
|
|
|
|
|
|
|
|
|
FIXME: What is this useful for?
|
|
|
|
|
FIXME: Why would you want byte write on this?
|
|
|
|
|
"""
|
2026-01-14 21:08:26 +01:00
|
|
|
word_size = 16 # Bits
|
2021-11-02 23:07:18 +01:00
|
|
|
num_words = 16
|
|
|
|
|
human_byte_size = "{:.0f}kbytes".format((word_size * num_words)/1024/8)
|
|
|
|
|
|
|
|
|
|
# Allow byte writes
|
2026-01-14 21:08:26 +01:00
|
|
|
write_size = 8 # Bits
|
|
|
|
|
words_per_row = 1
|
2021-11-02 23:07:18 +01:00
|
|
|
|
|
|
|
|
# Dual port
|
|
|
|
|
num_rw_ports = 1
|
2022-06-13 23:13:05 +02:00
|
|
|
num_r_ports = 0
|
2021-11-02 23:07:18 +01:00
|
|
|
num_w_ports = 0
|
2022-06-13 23:13:05 +02:00
|
|
|
ports_human = '1rw'
|
|
|
|
|
|
2026-03-17 19:44:20 +01:00
|
|
|
num_spare_cols = 1
|
|
|
|
|
num_spare_rows = 1
|
|
|
|
|
#netlist_only = True
|
2021-11-02 23:07:18 +01:00
|
|
|
|
2026-01-14 21:08:26 +01:00
|
|
|
num_sim_threads = 1
|
|
|
|
|
#analytical_delay = False
|
2021-11-02 23:07:18 +01:00
|
|
|
import os
|
|
|
|
|
exec(open(os.path.join(os.path.dirname(__file__), 'sky130_sram_common.py')).read())
|
2026-04-22 10:33:47 +02:00
|
|
|
tech_file = "tech_custom_cell"
|