Added some more debug info in capacitors.

This commit is contained in:
Jean-Paul Chaput 2023-04-26 19:34:22 +02:00
parent a31cf3d334
commit ae5f6ad3de
3 changed files with 7 additions and 6 deletions

View File

@ -238,10 +238,10 @@ class CapacitorStack( CapacitorUnit ):
for k in range(0, self.capacitorsNumber):
unitCapList.append( capacitance[k]/self.capacitorIdOccurence(k) )
#print self.capacitorsNumber
#print 'capacitance', capacitance
#print 'unitCapList', unitCapList
#print '============='
print( self.capacitorsNumber )
print( 'capacitance', capacitance )
print( 'unitCapList', unitCapList )
print( '=============' )
return unitCapList
@ -407,7 +407,6 @@ class CapacitorStack( CapacitorUnit ):
if self.matchingMode == False :
capacitorList[capListIndex].create( self.nets[0][0], self.nets[0][1] )
else :
if self.dummyRing == True:
if (matchingSchemeRowIndex == 0 or matchingSchemeRowIndex == self.matrixDim["rows"] + 1 or capListIndex == 0 or capListIndex == self.matrixDim["columns"] + 1) :
[ t , b ] = [ self.nets[-1][0] , self.nets[-1][1] ]

View File

@ -736,6 +736,7 @@ class CapacitorUnit():
def cutMatrix( self, net, layer, firstCutXCenter, firstCutYCenter, width_cut, height_cut, spacing_cut, cutColumnNumber, cutRowNumber ):
Breakpoint.stop( 200, "CapacitorUnit.cutMatrix() cutRowNumber={}".format(cutRowNumber) )
for i in range( cutRowNumber):
matrix = self.cutLine( net, layer, firstCutXCenter, firstCutYCenter + i*(spacing_cut + width_cut), width_cut, height_cut, spacing_cut, cutColumnNumber, 'horizontal' )

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from ..Hurricane import DataBase, UpdateSession, DbU, Box, Net
from ..Hurricane import Breakpoint, DataBase, UpdateSession, DbU, Box, Net
from ..Analog import Device
from ..helpers.io import catch
from ..helpers import setTraceLevel, trace
@ -134,6 +134,7 @@ def layout ( device, bbMode ):
capaSingle.route()
else:
# Two capa, multiple units.
Breakpoint.setStopLevel( 200 )
capaGenerator = CapacitorStack( device
, capaValuesArg # [ 240, 720 ] # capaValuesArg (fF).
, typeArg