View | Details | Raw Unified | Return to bug 178
Collapse All | Expand All

(-)a/benchs/nmigen/ALU16/doAlu16.py (-15 / +28 lines)
Lines 115-121 def coriolisSetup (): Link Here
115
   #Cfg.getParamInt       ( 'misc.minTraceLevel'          ).setInt       ( 111     )
115
   #Cfg.getParamInt       ( 'misc.minTraceLevel'          ).setInt       ( 111     )
116
   #Cfg.getParamInt       ( 'misc.maxTraceLevel'          ).setInt       ( 112     )
116
   #Cfg.getParamInt       ( 'misc.maxTraceLevel'          ).setInt       ( 112     )
117
    Cfg.getParamEnumerate ( 'etesian.effort'              ).setInt       ( 2       )
117
    Cfg.getParamEnumerate ( 'etesian.effort'              ).setInt       ( 2       )
118
    Cfg.getParamPercentage( 'etesian.spaceMargin'         ).setPercentage( 20.0    )
118
    Cfg.getParamPercentage( 'etesian.spaceMargin'         ).setPercentage( 10.0    )
119
    Cfg.getParamPercentage( 'etesian.aspectRatio'         ).setPercentage( 100.0   )
119
    Cfg.getParamPercentage( 'etesian.aspectRatio'         ).setPercentage( 100.0   )
120
    Cfg.getParamBool      ( 'etesian.uniformDensity'      ).setBool      ( True    )
120
    Cfg.getParamBool      ( 'etesian.uniformDensity'      ).setBool      ( True    )
121
    Cfg.getParamInt       ( 'anabatic.edgeLenght'         ).setInt       ( 24      )
121
    Cfg.getParamInt       ( 'anabatic.edgeLenght'         ).setInt       ( 24      )
Lines 439-456 def alu16 ( **kw ): Link Here
439
  
439
  
440
    ab = Box( l(   0.0 )
440
    ab = Box( l(   0.0 )
441
            , l(   0.0 )
441
            , l(   0.0 )
442
            , l(1050.0 )
442
            , l(1100.0 )
443
            , l( 700.0 ) )
443
            , l( 600.0 ) )
444
  
444
  
445
    UpdateSession.open()
445
    UpdateSession.open()
446
    cell.setAbutmentBox( ab )
446
    cell.setAbutmentBox( ab )
447
447
448
    ins = cell.getInstance( 'subckt_48_add' )
448
    ins = cell.getInstance( 'subckt_48_add' )
449
    ins.setTransformation( Transformation( toDbU(100.0), toDbU(150.0), Transformation.Orientation.ID ) )
449
    ins.setTransformation( Transformation( toDbU(25.0), toDbU(50.0), Transformation.Orientation.ID ) )
450
    ins.setPlacementStatus( Instance.PlacementStatus.FIXED )
450
    ins.setPlacementStatus( Instance.PlacementStatus.FIXED )
451
    
451
    
452
    ins = cell.getInstance( 'subckt_49_sub' )
452
    ins = cell.getInstance( 'subckt_49_sub' )
453
    ins.setTransformation( Transformation( toDbU(600.0), toDbU(150.0), Transformation.Orientation.ID ) )
453
    ins.setTransformation( Transformation( toDbU(725.0), toDbU(50.0), Transformation.Orientation.ID ) )
454
    ins.setPlacementStatus( Instance.PlacementStatus.FIXED )
454
    ins.setPlacementStatus( Instance.PlacementStatus.FIXED )
455
455
456
    yNorth = cell.getAbutmentBox().getYMax()
456
    yNorth = cell.getAbutmentBox().getYMax()
Lines 497-504 def alu16 ( **kw ): Link Here
497
  
497
  
498
    print "editor", editor, dir(editor)
498
    print "editor", editor, dir(editor)
499
499
500
    # place first (in middle, between two)
501
    ab2 = Box( l( 400.0 )
502
            , l(   50.0 )
503
            , l( 700.0 )
504
            , l( 500.0 ) )
505
506
    cell.setAbutmentBox( ab2 )
507
    etesian = Etesian.EtesianEngine.create(cell)
508
    etesian.place()
509
510
    # then route (globally)
511
    cell.setAbutmentBox( ab )
500
    success = placeAndRoute( cell )
512
    success = placeAndRoute( cell )
501
   
513
    #success = 0
514
502
    af.saveCell( cell, CRL.Catalog.State.Views )
515
    af.saveCell( cell, CRL.Catalog.State.Views )
503
    plugins.RSavePlugin.ScriptMain( **kw )
516
    plugins.RSavePlugin.ScriptMain( **kw )
504
  
517
  
Lines 514-531 def ScriptMain ( **kw ): Link Here
514
527
515
528
516
if __name__ == '__main__':
529
if __name__ == '__main__':
517
   try:
530
   #try:
518
     kw           = {}
531
     kw           = {}
519
     success      = ScriptMain( **kw )
532
     success      = ScriptMain( **kw )
520
     shellSuccess = 0
533
     shellSuccess = 0
521
     if not success: shellSuccess = 1
534
     if not success: shellSuccess = 1
522
   except ImportError, e:
535
   #except ImportError, e:
523
     showPythonTrace( __file__, e, False )
536
     #showPythonTrace( __file__, e, False )
524
     sys.exit(1)
537
     #sys.exit(1)
525
   except Exception, e:
538
   #except Exception, e:
526
     showPythonTrace( __file__, e )
539
     #showPythonTrace( __file__, e )
527
     sys.exit(2)
540
     #sys.exit(2)
528
541
529
   sys.exit( shellSuccess )
542
   #sys.exit( shellSuccess )
530
543
531
544

Return to bug 178