Class: TryDefXp
- Defined in:
- lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb
Instance Method Summary collapse
- #axi4(name: "axi4", clock: nil, reset: nil, dsize: 8, idsize: 1, asize: 8, lsize: 8, mode: Axi4::BOTH, addr_step: 1.0, &block) ⇒ Object
- #axi_stream(name: "test_axis", clock: nil, reset: nil, dsize: 8, dimension: [], &block) ⇒ Object
- #axilite(name: "axi_lite", clock: nil, reset: nil, dsize: 8, asize: 8, mode: AxiLite::BOTH, &block) ⇒ Object
- #clock(name: "", freqM: 100, dsize: 1, &block) ⇒ Object
- #datainf(name: "data_inf", dsize: 8, dimension: [], &block) ⇒ Object
- #datainf_c(name: "data_inf_c", clock: nil, reset: nil, dsize: 8, dimension: [], &block) ⇒ Object
- #logic(name: "tmp", dsize: 1, port: false, default: nil, msb_high: true, dimension: [], type: "logic", &block) ⇒ Object
- #mailbox(name: 'mbox', depth: 100, &block) ⇒ Object
- #parameter(name: "P", value: 100, local: false, type: nil, &block) ⇒ Object
- #reset(name: "", active: "low", dsize: 1, &block) ⇒ Object
-
#try_call_ele(name) ⇒ Object
def var_common(a) @sdlmodule.var_common(a) end.
- #videoinf(name: "video", dsize: 24, clock: nil, reset: nil, dimension: [], &block) ⇒ Object
Methods inherited from DefXp
#add_method_to_itgt, #bfm_stream, #common_cfg_reg_inf, #debuglogic, #initialize, #track_inf, #var_common
Constructor Details
This class inherits a constructor from DefXp
Instance Method Details
#axi4(name: "axi4", clock: nil, reset: nil, dsize: 8, idsize: 1, asize: 8, lsize: 8, mode: Axi4::BOTH, addr_step: 1.0, &block) ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 79 def axi4(name:"axi4",clock:nil,reset:nil,dsize:8,idsize:1,asize:8,lsize:8,mode: Axi4::BOTH,addr_step:1.0,&block) a = try_call_ele(name) return a if a # a = Axi4.new(name:name,clock:clock,reset:reset,dsize:dsize,idsize:idsize,asize:asize,lsize:lsize,mode:mode,port:false,addr_step:addr_step) # var_common(a) super(name:name,clock:clock,reset:reset,dsize:dsize,idsize:idsize,asize:asize,lsize:lsize,mode: mode,addr_step:addr_step,&block) end |
#axi_stream(name: "test_axis", clock: nil, reset: nil, dsize: 8, dimension: [], &block) ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 71 def axi_stream(name:"test_axis",clock:nil,reset:nil,dsize:8,dimension:[],&block) a = try_call_ele(name) return a if a # a = AxiStream.new(name:name,clock:clock,reset:reset,dsize:dsize,dimension:dimension) # var_common(a) super(name:name,clock:clock,reset:reset,dsize:dsize,dimension:dimension,&block) end |
#axilite(name: "axi_lite", clock: nil, reset: nil, dsize: 8, asize: 8, mode: AxiLite::BOTH, &block) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 47 def axilite(name:"axi_lite",clock:nil,reset:nil,dsize:8,asize:8,mode: AxiLite::BOTH,&block) a = try_call_ele(name) return a if a # a = AxiLite.new(name:name,clock:clock,reset:reset,dsize:dsize,asize:asize,mode:mode,port:false) # var_common(a) super(name:name,clock:clock,reset:reset,dsize:dsize,asize:asize,mode: mode,&block) end |
#clock(name: "", freqM: 100, dsize: 1, &block) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 23 def clock(name:"",freqM:100,dsize:1,&block) a = try_call_ele(name) return a if a # a = Clock.new(name:name,freqM:freqM,dsize:dsize) # var_common(a) super(name:name,freqM:freqM,dsize:dsize,&block) end |
#datainf(name: "data_inf", dsize: 8, dimension: [], &block) ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 55 def datainf(name:"data_inf",dsize:8,dimension:[],&block) a = try_call_ele(name) return a if a # a = DataInf.new(name:name,dsize:dsize,dimension:dimension) # var_common(a) super(name:name,dsize:dsize,dimension:dimension,&block) end |
#datainf_c(name: "data_inf_c", clock: nil, reset: nil, dsize: 8, dimension: [], &block) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 63 def datainf_c(name:"data_inf_c",clock:nil,reset:nil,dsize:8,dimension:[],&block) a = try_call_ele(name) return a if a # a = DataInf_C.new(name:name,clock:clock,reset:reset,dsize:dsize,dimension:dimension) # var_common(a) super(name:name,clock:clock,reset:reset,dsize:dsize,dimension:dimension,&block) end |
#logic(name: "tmp", dsize: 1, port: false, default: nil, msb_high: true, dimension: [], type: "logic", &block) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 15 def logic(name:"tmp",dsize:1,port:false,default:nil,msb_high:true,dimension:[],type:"logic",&block) a = try_call_ele(name) return a if a # lg = Logic.new(name:name,dsize:dsize,port:port,default:default,msb_high:msb_high,dimension:dimension,type:type) # var_common(lg) super(name:name,dsize:dsize,port:port,default:default,msb_high:msb_high,dimension:dimension,type:type,&block) end |
#mailbox(name: 'mbox', depth: 100, &block) ⇒ Object
95 96 97 98 99 100 101 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 95 def mailbox(name:'mbox',depth:100,&block) a = try_call_ele(name) return a if a # a = MailBox.new(name:name,depth:depth) # var_common(a) super(name:name,depth:depth,&block) end |
#parameter(name: "P", value: 100, local: false, type: nil, &block) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 39 def parameter(name:"P",value:100,local:false,type:nil,&block) a = try_call_ele(name) return a if a # a = Parameter.new(name:name,value:value,local:local,port:false,show:true,type:type) # var_common(a) super(name:name,value:value,local:local,type:type,&block) end |
#reset(name: "", active: "low", dsize: 1, &block) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 31 def reset(name:"",active:"low",dsize:1,&block) a = try_call_ele(name) return a if a # a = Reset.new(name:name,active:active,dsize:dsize) # var_common(a) super(name:name,active:active,dsize:dsize,&block) end |
#try_call_ele(name) ⇒ Object
def var_common(a)
@sdlmodule.var_common(a)
end
11 12 13 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 11 def try_call_ele(name) @sdlmodule.try_call_ele(name) end |
#videoinf(name: "video", dsize: 24, clock: nil, reset: nil, dimension: [], &block) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/tdl/sdlmodule/bak/sdlmodule_varible_ex.rb', line 87 def videoinf(name:"video",dsize:24,clock:nil,reset:nil,dimension:[],&block) a = try_call_ele(name) return a if a # a = VideoInf.new(name:name,dsize:dsize,clock:clock,reset:reset,port:false,force_name:false,dimension:dimension) # var_common(a) super(name:name,dsize:dsize,clock:clock,reset:reset,dimension:dimension,&block) end |