Class: TECSGEN::Cell_location
Overview
tecscde の位置情報
Instance Method Summary collapse
- #get_location ⇒ Object
-
#initialize(cell_nspath, x, y, w, h, port_location_list) ⇒ Cell_location
constructor
Join_location#initialize cell_nspath::NamespacePath x,y,w,h::Expression port_location_list::[ [Symbol(ep_or_cp_name), Symbol(edge_name), Expression(offset)], … ] ep_name::Symbol.
Constructor Details
#initialize(cell_nspath, x, y, w, h, port_location_list) ⇒ Cell_location
Join_location#initialize
cell_nspath::NamespacePath x,y,w,h::Expression port_location_list::[ [Symbol(ep_or_cp_name), Symbol(edge_name), Expression(offset)], … ] ep_name::Symbol
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/tecsgen/core/location.rb', line 73 def initialize(cell_nspath, x, y, w, h, port_location_list) # p "Cell_location: #{cell_nspath}, #{x}, #{y}, #{w}, #{h}, #{port_location_list}" @cell_nspath = cell_nspath @x = x.eval_const nil @y = y.eval_const nil @w = w.eval_const nil @h = h.eval_const nil @port_location_list = port_location_list TECSGEN.new_cell_location self end |
Instance Method Details
#get_location ⇒ Object
85 86 87 |
# File 'lib/tecsgen/core/location.rb', line 85 def get_location [@cell_nspath, @x, @y, @w, @h, @port_location_list] end |