phlion

About

Username
phlion
Joined
Visits
0
Last Active
Roles
Member

Comments

  • Hi Matthias, About the instance properties, the code is modified from if i.is_regular_array? newdb.cell(new_layout2).insert(RBA::CellInstArray.new(inst.cell_index, trans, i.a, i.b, i.na, i.nb))else newdb.cell(new_layout2).insert(RBA::CellInstArr…
  • Hi Matthias, Sorry to reply so late, I've learned about how to merge two db with the same hierarchy and only have different shapes in topcell. However I have no idea if the following line should be executed, is it used to refresh the prop id in the…
  • Hi Matthias, It would be a wonderful world if the copy_tree() could support an option to choose rename/overwrite/skip the same cell name. :P I tried to do the steps(create target layout with file1/file2 topcell name), however jammed on (copy sourc…
  • Hi Matthias, We are trying the fast and dumb way for our approach. XD For example: We have two files(file1 / file2) and want to merge it to a new file(file3) The cell hierarchy like file1 => cellA => cellA1 => cellB => cellB1 …
  • Hi Matthias, Thanks for the explanation in detail, now we know the limitation of semi-hierarchical. We would only use this function carefully on layer OR/Sizing operations. :) Best Regards, -- chhung
  • Hi Matthias, If the hierarchy is: Cell TOP (With layer 1/0 pattern) => Cell A (With layer 1/0 pattern) Once we tried to TOP OR A, the result is correct, however if we tried to TOP NOT A or TOP AND A with hierarchical=false, due to the layer 1/0 …
  • Hi Matthias, Thanks for your code, it works like a charm. And another two questions. XD According to the document in http://www.klayout.de/doc/code/class_ShapeProcessor.html , the first false option is "hierarchical: Collect shapes from sub …
  • Hi Matthias, I'm running klayout v0.24.7 on CentOS6(RHEL6), then I switch to klayout v0.24.5 on MDK9.2, the same problem. CentOS6: gcc 4.4.6-3 + ruby 1.8.7-p352 MDK9.2: gcc 4.2.2-0 + ruby 1.8.7-p371 FYI. Best Regards, chhung
  • Hi Matthias, Mid-autumn Festival is one of the feasts in Taiwan, and temperature is in summer. XD I tested two cells' name, one(cell1) is a subcell of topcell, another(cell2) is second level hierarchy of topcell. cell1(3142.411 , 4646.508)query1:…
  • Hi Matthias, Sorry to reply so late because Taiwan is in Mid-Autumn Festival. I tried the following command in search/replace function select path_trans.disp.x*layout.dbu, path_trans.disp.y*layout.dbu from instances of *where cell.name == "C…
  • Hi Matthias, Really thanks for your sample code, I modified it to fit our requirement. def search_cell(from_cell, name_re, dbu, tr = RBA::CplxTrans::new) from_cell.each_inst do |inst| child_cell = inst.cell path_tr = tr * inst.cplx_trans …
  • Hi Matthias, I tried to upgrade the ruby version from 1.8.5-19(RHEL5.7) to 1.8.7-374-2, and it fixed the rba.cc error, thank you so much~ :) Best Regards, chhung
  • Hi Stefan, Changing -O3 to -O2 fixed the crash issue, thank you so much~ Also thanks Matthias for new version klayout :) Best Regards, chhung
  • Hi Matthias, The cell() function call solved our problem, thank you so much~ One tier sub-cell boolean operation could be apporached like the code: ly = RBA::CellView::active.layouttopcell=ly.top_celltopcell.each_child_cell do |cell| cell(ly.cel…
  • Hi Matthas, This issue has been fixed with your solution, really thanks for your kindly support. Best Regards, chhung
  • Hi Matthias, I tried the new code and it works fine~ :) Thank you so much~ Best Regards, chhung
  • Hi Matthias, I tried to run the RBA code and it responsed the error: *** ERROR: ./test.rba:9: Ruby error: 'uninitialized constant RBA::DRect' (NameError) ./test.rba:9 (class NameError) And is it possible to run the code in non-GUI mode ? Best R…
  • Hi, Please confirm if the View => Show Layers Without Fill option has been checked, if yes please uncheck it. It's a personal environment setting so re-install klayout would not help. Best Regards, chhung
  • File => Setup => Display(Left window) => Background => Background color(Right window)
  • Hi Matthias, This patch fixed the problem, thanks :) Best Regards, chhung
  • Hi Matthias, Thanks for the new code, it solved our problem and works fine. :) Thank you~ Best Regards, chhung
  • Hi Matthias, I tried the patch in line 1254 of rba.cc, and it fixed the compiler issue, thank you so much. Currently our gcc version is v4.0.1, although it's really old but we are not able to upgrade it now. Finally we success compiled the binary …
  • Hi Matthias, I have a question maybe related with the topic. How to know the file format if open a file without file extension in klayout GUI and command mode ? For example: If I open a file named "ABC" and klayout success open that, th…
  • Hi I guess you misunderstanding Matthias' words.. For klayout Windows version, it comes with a built-in ruby interpreter, you don't have to compile any source code for ruby script. Because ruby is text script, you should edit a file maybe named &…
  • Hi Matthias, With the new tarkit, the T_ZOMBIE and QtGui problems were fixed, however new issue happened. OS: MDK 9.2 64bit Qt: 4.4.3-1 Ruby: 1.9.3p194 (2012-04-20 revision 35410) or 1.8.7 (2011-02-18 patchlevel 334) /klayout-0.22/src/rba.cc: I…
  • Hi Matthias, I also have some klayout v0.22 build issue, both case could compile klayout v0.21.19 without problems. Case1: OS: CentOS 6.2 64bit Qt: 4.6.2-20 In file included from /klayout-0.22/src/rba.cc:117:/usr/lib64/ruby/1.8/x86_64-linux/node…
  • Hi Matthias, Really appreciate for your kindly help, I've solved this issue via your code. I tried the flatten method and found the performance would be much slower than RecursiveShapeIterator, so it might be better use on small files. About the …
  • Hi Matthias, I modified the codes as follow: layout.each_cell do |cell| cell.shapes(l1).each do |shape| if shape.is_text? text = shape.text xpos = text.trans.disp.x*layout.dbu ypos = text.trans.disp.y*layout.dbu printf(&quo…
  • Hi Matthias, The whole code as follow, I'd like to read the specified layer with text, and print all the coordinates of texts. However the result of the code doesn't work as I think. This code would extract all the text with the same coordinates l…
  • Hi Matthias, You are right, I missed the "if called_cells[cisrc]" statement... I modified the code and confirmed it works fine now, and I edited/corrected the code in the above post for others who interesting in it. Really appreciate yo…