Class: DiffClockITest
- Inherits:
-
IntegralTest
- Object
- IntegralTest
- DiffClockITest
- Defined in:
- lib/tdl/exlib/integral_test/diff_clock_itest.rb
Overview
require_relative ‘integral_test’
Instance Method Summary collapse
-
#initialize(pin_key: "", freqM: 100, pin_key_n: "") ⇒ DiffClockITest
constructor
A new instance of DiffClockITest.
- #inst ⇒ Object
- #tb_top_connect_element ⇒ Object
Constructor Details
#initialize(pin_key: "", freqM: 100, pin_key_n: "") ⇒ DiffClockITest
Returns a new instance of DiffClockITest.
5 6 7 8 9 10 11 |
# File 'lib/tdl/exlib/integral_test/diff_clock_itest.rb', line 5 def initialize(pin_key:"",freqM:100,pin_key_n:"") @pin_key = pin_key.to_s.downcase @pin_key_n = pin_key_n.to_s.downcase @freqM = freqM @pin_name = GlobalParam.CurrTdlModule.create_port_clock(name:pin_key,port: :output,freqM:freqM) inst end |
Instance Method Details
#inst ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/tdl/exlib/integral_test/diff_clock_itest.rb', line 13 def inst Tdl.inst_clock_rst_verb( rst_hold:50, freqm: @freqM, clock: @pin_name, rst_x: "") end |
#tb_top_connect_element ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/tdl/exlib/integral_test/diff_clock_itest.rb', line 21 def tb_top_connect_element # [Clock,{name:@pin_key,freqM:@freqM}] tbc = TBConnnectEle.new(type:Clock) tbc.baseelm_argv = {name:@pin_key,freqM:@freqM} tbc.port_key = @pin_key.to_sym tbc.port_key_n = @pin_key_n.to_sym tbc end |