Advertisement
natsfr

072 Memory Leak Split job attempt

Jan 9th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 1.62 KB | None | 0 0
  1. create_project -force -part $::env(XRAY_PART) design design
  2. set_property design_mode PinPlanning [current_fileset]
  3. open_io_design -name io_1
  4.  
  5. #set_param tcl.collectionResultDisplayLimit 0
  6. set_param messaging.disableStorage 1
  7.  
  8. proc process_block { start stop } {
  9.     puts "inside interpreter $start $stop"
  10.     set downhill_fp [open downhill_wires.txt a]
  11.     set uphill_fp [open uphill_wires.txt a]
  12.    
  13.     set pips [get_pips]
  14.    
  15.     for { set i $start } { $i < $stop } { incr i } {
  16.         set pip [lindex $pips $i]
  17.         foreach downhill_node [get_nodes -downhill -of_object $pip] {
  18.             set ordered_downhill_wires [get_wires -from $pip -of_object $downhill_node]
  19.             puts $downhill_fp "$pip $downhill_node $ordered_downhill_wires"
  20.         }
  21.         foreach uphill_node [get_nodes -uphill -of_object $pip] {
  22.             set ordered_uphill_wires [get_wires -to $pip -of_object $uphill_node]
  23.             puts $uphill_fp "$pip $uphill_node $ordered_uphill_wires"
  24.         }
  25.     }
  26.    
  27.     close $downhill_fp
  28.     close $uphill_fp
  29. }
  30.  
  31. close [open downhill_wires.txt w]
  32. close [open uphill_wires.txt w]
  33.  
  34. set pips [get_pips]
  35. set pipslen [llength $pips]
  36.  
  37. set nbblocks 64
  38. set blocksize [expr $pipslen / $nbblocks]
  39.  
  40. unset pips
  41.  
  42. for { set i 0 } { $i < $nbblocks } { incr i } {
  43.     puts "Block: $i"
  44.     set startI [expr $i * $blocksize]
  45.     set stopI  [expr ($i + 1) * $blocksize]
  46.     puts "StartI: $startI - StopI: $stopI"
  47.     set tmpinterp [interp create]
  48.     interp alias $tmpinterp process_block {} process_block
  49.     interp eval $tmpinterp "process_block $startI $stopI"
  50.     interp delete $tmpinterp
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement