mirror of https://github.com/VLSIDA/OpenRAM.git
Fix delay test with new sram_config. Merge dev changes.
This commit is contained in:
parent
c3bd54696f
commit
9d8d2b65e4
|
|
@ -27,14 +27,14 @@ class timing_sram_test(openram_test):
|
||||||
if not OPTS.spice_exe:
|
if not OPTS.spice_exe:
|
||||||
debug.error("Could not find {} simulator.".format(OPTS.spice_name),-1)
|
debug.error("Could not find {} simulator.".format(OPTS.spice_name),-1)
|
||||||
|
|
||||||
import sram
|
from sram import sram
|
||||||
import tech
|
from sram_config import sram_config
|
||||||
debug.info(1, "Testing timing for sample 1bit, 16words SRAM with 1 bank")
|
c = sram_config(word_size=1,
|
||||||
s = sram.sram(word_size=OPTS.word_size,
|
num_words=16,
|
||||||
num_words=OPTS.num_words,
|
num_banks=1)
|
||||||
num_banks=OPTS.num_banks,
|
|
||||||
name="sram1")
|
|
||||||
|
|
||||||
|
debug.info(1, "Testing timing for sample 1bit, 16words SRAM with 1 bank")
|
||||||
|
s = sram(c, name="sram1")
|
||||||
|
|
||||||
tempspice = OPTS.openram_temp + "temp.sp"
|
tempspice = OPTS.openram_temp + "temp.sp"
|
||||||
s.sp_write(tempspice)
|
s.sp_write(tempspice)
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,14 @@ class timing_sram_test(openram_test):
|
||||||
if not OPTS.spice_exe:
|
if not OPTS.spice_exe:
|
||||||
debug.error("Could not find {} simulator.".format(OPTS.spice_name),-1)
|
debug.error("Could not find {} simulator.".format(OPTS.spice_name),-1)
|
||||||
|
|
||||||
import sram
|
from sram import sram
|
||||||
import tech
|
from sram_config import sram_config
|
||||||
|
c = sram_config(word_size=1,
|
||||||
|
num_words=16,
|
||||||
|
num_banks=1)
|
||||||
|
|
||||||
debug.info(1, "Testing timing for sample 1bit, 16words SRAM with 1 bank")
|
debug.info(1, "Testing timing for sample 1bit, 16words SRAM with 1 bank")
|
||||||
s = sram.sram(word_size=OPTS.word_size,
|
s = sram(c, name="sram1")
|
||||||
num_words=OPTS.num_words,
|
|
||||||
num_banks=OPTS.num_banks,
|
|
||||||
name="sram1")
|
|
||||||
|
|
||||||
tempspice = OPTS.openram_temp + "temp.sp"
|
tempspice = OPTS.openram_temp + "temp.sp"
|
||||||
s.sp_write(tempspice)
|
s.sp_write(tempspice)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue