Class: ClockITest
- Inherits:
-
IntegralTest
- Object
- IntegralTest
- ClockITest
- Defined in:
- lib/tdl/exlib/integral_test/clock_itest.rb
Overview
require_relative ‘integral_test’
Instance Method Summary collapse
-
#initialize(pin_key: "", freqM: 100) ⇒ ClockITest
constructor
A new instance of ClockITest.
- #inst ⇒ Object
- #tb_top_connect_element ⇒ Object
Constructor Details
#initialize(pin_key: "", freqM: 100) ⇒ ClockITest
Returns a new instance of ClockITest.
5 6 7 8 9 10 |
# File 'lib/tdl/exlib/integral_test/clock_itest.rb', line 5 def initialize(pin_key:"",freqM:100) @pin_key = pin_key.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
12 13 14 15 16 17 18 |
# File 'lib/tdl/exlib/integral_test/clock_itest.rb', line 12 def inst Tdl.inst_clock_rst_verb( rst_hold:50, freqm: @freqM, clock: @pin_name, rst_x: "") end |
#tb_top_connect_element ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/tdl/exlib/integral_test/clock_itest.rb', line 20 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 end |