import sys # Path of Python SCN scripts generator scn_generator_class = '/home/linux-jp/Documents/GitHub/Verilog/Testbench/scripts/scn_generator' sys.path.append(scn_generator_class) # Import Class import scn_class import macros_max_controller_class import os # Create SCN Class scn = scn_class.scn_class() # == Collect Path == collect_path = "/home/linux-jp/SIMULATION_VHDL/MAX7219_COLLECT/{0}_collect.txt".format(os.path.basename(__file__)[:-3]) # Create SCN Macro scn_macros = macros_max_controller_class.macros_max_controller_class(scn) # Start of SCN scn.print_step("//-- STEP 0\n") scn.print_line("\n") scn.DATA_COLLECTOR_INIT("MAX7219_CONTROLLER_INPUT_COLLECTOR_0", 0, collect_path) scn.DATA_COLLECTOR_START("MAX7219_CONTROLLER_INPUT_COLLECTOR_0", 0)
# Path of Python SCN scripts generator scn_generator_class = '/home/linux-jp/Documents/GitHub/Verilog/scripts/scn_generator' sys.path.append(scn_generator_class) scn_txt_path = "/home/linux-jp/SIMULATION_VHDL/UART/scenarios/" # Import Class import generic_tb_cmd_class import tb_uart_cmd_class import scn_class from macro_uart_display_ctrl_scn import * # Create SCN Class scn = scn_class.scn_class(scn_txt_path + "UART_DISPLAY_CTRL_05.txt") # Start of SCN scn.print_line("//-- STEP 0\n") scn.print_line("\n") scn.generic_tb_cmd.WTR("RST_N") scn.generic_tb_cmd.WAIT(100, "ns") scn.print_line("\n") check_spi_config_after_reset(scn, 0, 0, 0x07, 0x01, 0) # Display reception of screen matrix scn.generic_tb_cmd.SET("DISPLAY_SCREEN_SEL", 1)
'0xdb', '0xff', '0xff', '0xff', '0xdb', '0x99', '0x18', '0x3c', '0x7e', '0xff' ] pattern_3_scroller = [ '0xff', '0x7e', '0x3c', '0x18', '0x99', '0xdb', '0xff', '0xff', '0xff', '0xdb', '0x99', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0xff', '0x99', '0x99', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x99', '0xdb', '0xff', '0xff', '0xdb', '0x99', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x99', '0x99', '0xff', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x99', '0xdb', '0xff', '0xff', '0xff', '0xdb', '0x99', '0x18', '0x3c', '0x7e', '0xff' ] # Create SCN Class scn_max_controller_03 = scn_class.scn_class("MAX_CONTROLLER_03.txt") # Start of SCN scn_max_controller_03.print_line("//-- STEP 0\n") scn_max_controller_03.print_line("\n") scn_max_controller_03.generic_tb_cmd.WTR("RST_N") scn_max_controller_03.generic_tb_cmd.WAIT(100, "ns") scn_max_controller_03.print_line("\n") #// Display SCREEN Matrix on load #SET DISPLAY_SCREEN_SEL 1 scn_max_controller_03.generic_tb_cmd.SET("DISPLAY_SCREEN_SEL", 0) scn_max_controller_03.print_line("//-- STEP 1\n")
] pattern_3_scroller = [ '0xff', '0x7e', '0x3c', '0x18', '0x99', '0xdb', '0xff', '0xff', '0xff', '0xdb', '0x99', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0xff', '0x99', '0x99', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x99', '0xdb', '0xff', '0xff', '0xdb', '0x99', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x18', '0x99', '0x99', '0xff', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x0', '0x99', '0xdb', '0xff', '0xff', '0xff', '0xdb', '0x99', '0x18', '0x3c', '0x7e', '0xff' ] from MAX_SCROLLER_macros import INIT_SCROLLER_RAM, LOAD_PATTERN_I_SCROLLER, DISPLAY_MATRIX # Create SCN Class scn_max_scroller_04 = scn_class.scn_class("MAX_SCROLLER_04.txt") # Start of SCN scn_max_scroller_04.print_line("//-- STEP 0\n") scn_max_scroller_04.print_line("\n") scn_max_scroller_04.generic_tb_cmd.SET("DISPLAY_SCREEN_SEL", 1) # Screen Display on LOAD scn_max_scroller_04.generic_tb_cmd.WTR("RST_N") scn_max_scroller_04.generic_tb_cmd.WAIT(100, "ns") scn_max_scroller_04.print_line("\n") scn_max_scroller_04.print_line("//-- STEP 1\n") scn_max_scroller_04.print_line("//-- Init SCROLLER RAM with 0\n")
# # # # import sys # Path of Python SCN scripts generator scn_generator_class = '/home/jorisp/GitHub/Verilog/scripts/scn_generator' sys.path.append(scn_generator_class) # Import Class import generic_tb_cmd_class import scn_class scn = scn_class.scn_class("I2C_MASTER_00.txt") # Start of SCN scn.print_line("//-- STEP 0 - INIT Inputs\n") scn.print_line("\n") CHIP_ADDR = 0x41 scn.generic_tb_cmd.SET("I_START", 0) scn.generic_tb_cmd.SET("I_RW", 0) scn.generic_tb_cmd.SET("I_CHIP_ADDR", CHIP_ADDR) scn.generic_tb_cmd.SET("I_NB_DATA", 1) scn.generic_tb_cmd.SET("I_WDATA", 0xBB) scn.generic_tb_cmd.SET("CHIP_ADDR_SLAVE_0", CHIP_ADDR) scn.generic_tb_cmd.WTRS("RST_N")