Add multiple control logic port types.

This commit is contained in:
mrg 2019-07-15 17:07:50 -07:00
parent e550d6ff10
commit 37c15937e2
1 changed files with 9 additions and 2 deletions

View File

@ -22,10 +22,17 @@ class control_logic_test(openram_test):
import control_logic
import tech
# check control logic for single port
debug.info(1, "Testing sample for control_logic")
debug.info(1, "Testing sample for control_logic_rw")
a = factory.create(module_type="control_logic", num_rows=128, words_per_row=1, word_size=32, write_size=32)
self.local_check(a)
debug.info(1, "Testing sample for control_logic_r")
a = factory.create(module_type="control_logic", num_rows=128, words_per_row=1, word_size=32, write_size=32, port_type="r")
self.local_check(a)
debug.info(1, "Testing sample for control_logic_w")
a = factory.create(module_type="control_logic", num_rows=128, words_per_row=1, word_size=32, write_size=32, port_type="w")
self.local_check(a)
# run the test from the command line
if __name__ == "__main__":