ucb-art / BAG2_cds_ff_mpt

BAG2 workspace for fake PDK (cds_ff_mpt)
BSD 3-Clause "New" or "Revised" License
52 stars 28 forks source link

How to draw poly resistor? #15

Open LareinaWang opened 1 year ago

LareinaWang commented 1 year ago

I am trying to use BAG2 to do my analog design. There are some difficult problems when I try to draw the layout of a poly resistor. So I am asking for your help.

When I run the code ‘res_termination.py’ in BAG2_TEMPLATES_EC/scripts_test, I encounter an error as shown in the following code.

AttributeError:'NoneType' object has no attribute 'get_bot_layer

I think this ‘Nonetype’ comes from ‘tech.py’ in the folder ‘cds_ff_mpt/templates_cds_ff_mpt’. And my whole code is shown in the attachment.

I think there are three possibilities for causing this bug:

a) I don’t know how to configure the tech file correctly.

b) I miss some important input parameters.

c) I didn't have a complete working code.

Zoooeylee commented 11 months ago

Do you figure out this problem? I have the same question.