Пример #1
0
    def setUp(self):

        self.oPart = part.new(utils.create_part_dict())
        self.oBoard = board.new(utils.create_board_dict())
        self.oDevice = device.new(utils.create_device_dict())
        self.oTM = timing_model.new('DAC_DATA', self.oDevice, self.oBoard,
                                    self.oPart)
Пример #2
0
def print_text_block_diagram(cmd_line_args):
    config = utils.read_config_file(cmd_line_args.config_file)
    my_part = part.new(config['part'])
    my_board = board.new(config)
    my_device = device.new(config['device'])

    my_tm = timing_model.new('DAC_DATA', my_device, my_board, my_part)

    block_diagram = text_block_diagram.render(my_tm)
    for line in block_diagram:
        print(line)
Пример #3
0
def print_text_clock_diagram(cmd_line_args):
    config = utils.read_config_file(cmd_line_args.config_file)
    my_part = part.new(config['part'])
    my_board = board.new(config)
    my_device = device.new(config['device'])

    my_tm = timing_model.new('DAC_DATA', my_device, my_board, my_part)

    for my_pin in my_tm.device_interface.data_pins:
        print('#' * 80)
        print(my_pin.name)
        print('-' * 80)
        clock_diagram = text_clock_diagram.render(my_tm, my_pin.name)
        for line in clock_diagram:
            print(line)
    def test_new_board(self):

        oBoard = board.new(dBoardConfig)

        self.assertEqual(3, len(oBoard.traces))
    def setUp(self):

        self.oPart = part.new(utils.create_part_dict())
        self.oBoard = board.new(utils.create_board_dict())
        self.oDevice = device.new(utils.create_device_dict())