Class: SimpleLogicITest

Inherits:
IntegralTest show all
Defined in:
lib/tdl/exlib/integral_test/simple_logic_itest.rb

Overview

require_relative ‘integral_test’

Instance Method Summary collapse

Constructor Details

#initialize(pin_key: "", dsize: 1, dimension: [], type: "logic") ⇒ SimpleLogicITest

Returns a new instance of SimpleLogicITest.



4
5
6
7
8
9
# File 'lib/tdl/exlib/integral_test/simple_logic_itest.rb', line 4

def initialize(pin_key:"",dsize:1,dimension:[],type:"logic")
    @pin_key = pin_key.to_s.downcase
    @dsize = dsize
    @dimension = dimension
    @type = type
end

Instance Method Details

#tb_top_connect_elementObject



12
13
14
15
16
17
# File 'lib/tdl/exlib/integral_test/simple_logic_itest.rb', line 12

def tb_top_connect_element
    tbc = TBConnnectEle.new(type:Logic)
    tbc.baseelm_argv = {name:@pin_key,dsize:@dsize,dimension:@dimension,type:@type}
    tbc.port_key = @pin_key.to_sym
    tbc
end