# This is a hack to reload the characterizer __init__ with the spice version
fromimportlibimportreload
importcharacterizer
reload(characterizer)
fromcharacterizerimportfunctional
ifnotOPTS.spice_exe:
debug.error("Could not find {} simulator.".format(OPTS.spice_name),-1)
fromsramimportsram
fromsram_configimportsram_config
c=sram_config(word_size=1,
num_words=16,
num_banks=1)
c.words_per_row=1
OPTS.num_rw_ports=1
OPTS.num_w_ports=0
OPTS.num_r_ports=0
debug.info(1,"Functional test for 1bit, 16word SRAM, with 1 bank. Multiport with {}RW {}W {}R.".format(OPTS.num_rw_ports,OPTS.num_w_ports,OPTS.num_r_ports))
debug.info(1,"Functional test for 1bit, 16word SRAM, with 1 bank. Multiport with {}RW {}W {}R.".format(OPTS.num_rw_ports,OPTS.num_w_ports,OPTS.num_r_ports))