Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Questions about MAGMA TCL Scripting

Status
Not open for further replies.

praneshcn

Member level 5
Joined
Aug 23, 2007
Messages
90
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,899
Hi,

wat are the equivalent tcl script command which can be used in magma for the following tasks,

* Dumping the existing blockages in a design into a seperate file
* Dumping the Placement information of the cells with the cell status (fixed,floating,etc.....)
* Removing all the blockages in the design
* Making all the cells in the design to be floating.
* Legalizing all the cells in the design.
 

denmos

Junior Member level 3
Joined
Jun 22, 2007
Messages
30
Helped
10
Reputation
20
Reaction score
4
Trophy points
1,288
Activity points
1,563
magma eco command

* Dumping the existing blockages in a design into a seperate file
--> export physical -placement_blockage_types all /worl/design/design exported_blockages.tcl

* Dumping the Placement information of the cells with the cell status (fixed,floating,etc.....)
data loop cell model_cell $m { # loop all cells in the design
foreach att [data get $cell] { # loop all attribute of cell.
puts "$att --> [data get $att]
}
}


* Removing all the blockages in the design
data delete physical -placement_blockage_types all -routing_blockage_types all $m

* Making all the cells in the design to be floating.
data loop cell model_cell $m { # loop all cells in the design
if {[data get $cell fixed] == 0} {
puts "$cell -> floating"
}
}


* Legalizing all the cells in the design.
run place detail $m
run place detail $m -eco # for ECO only

All questions in Magma are welcome!
 

mansur.abbasi

Newbie level 1
Joined
Oct 22, 2007
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,284
magma data model command

MISO CDMA transmission with simplified receiver for wireless communication handsets,
 

praneshcn

Member level 5
Joined
Aug 23, 2007
Messages
90
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,899
magma

hi denmos,

the following scripts gave some syntax errors. kindly suggest me a solution......................

* Dumping the Placement information of the cells with the cell status (fixed,floating,etc.....)
data loop cell model_cell $m { # loop all cells in the design
foreach att [data get $cell] { # loop all attribute of cell.
puts "$att --> [data get $att]
}
}

ERROR SHOWN:

Cant find object named type

Also i want to dump the information in a seperate file. So how to do tat.............

* Making all the cells in the design to be floating.
data loop cell model_cell $m { # loop all cells in the design
if {[data get $cell fixed] == 0} {
puts "$cell -> floating"
}
}


Error Shown:

No such attribute 'fixed'.


For legalizing the cells you had suggested the command " run place detail $m" but if it is used for a final routed design (on which we move some cells manually so that they are not placed legally) the flow step goes to placement stage and once again routing has to done from global to detail routing.


So how about using "check place detail $m -legalize smart" . I tried with that command and it is legalizing the cells and the flow still remains at the final routing stage. Could you comment on it please...........


thankz
 

denmos

Junior Member level 3
Joined
Jun 22, 2007
Messages
30
Helped
10
Reputation
20
Reaction score
4
Trophy points
1,288
Activity points
1,563
tcl uses in magma

Hi,

I have some mistakes on syntax, so you can try it anyway base on my sugesstions.
For placed design (after fix-cell) you must use option -eco when perform detail placement.
The floating cells such as RAMs that is user defined for Macro placement to optimize floorplan.
I don't know what you mean about that.

You can get all attribute-name of every object in Magma using command: data get $object
Magma have a useful command to find out the command you need:
[mantle] help find "???"
[mantle] help find "floating"
---------------------------

What the build do you have? I want to know what the staus of you.
If you are on training, please let me know for more detail answers.
Don't hesitate to contact me if you have any question about Magma.
I work on Magma-AE for 6 months and I have 3-year expirements
on Magma tools with some tapped-out chips.

Thanks,
Vinh P. Nguyen
vinh.camau@gmail.com
1-512-217-7361
 

    praneshcn

    points: 2
    Helpful Answer Positive Rating

praneshcn

Member level 5
Joined
Aug 23, 2007
Messages
90
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,899
tck@magma.ca

Hi denmos ,


Tanz for ur time and interest . Your model scripts were highly usefull for me and i have started to move ahead in learning Scripting.
 

jeevan.life

Full Member level 4
Joined
Jun 26, 2010
Messages
237
Helped
83
Reputation
164
Reaction score
76
Trophy points
1,308
Location
Bangalore
Activity points
2,418
Re: magma

hi denmos,

the following scripts gave some syntax errors. kindly suggest me a solution......................

* Dumping the Placement information of the cells with the cell status (fixed,floating,etc.....)
data loop cell model_cell $m { # loop all cells in the design
foreach att [data get $cell] { # loop all attribute of cell.
puts "$att --> [data get $att]
}
}

ERROR SHOWN:

Cant find object named type

Also i want to dump the information in a seperate file. So how to do tat.............

* Making all the cells in the design to be floating.
data loop cell model_cell $m { # loop all cells in the design
if {[data get $cell fixed] == 0} {
puts "$cell -> floating"
}
}


Error Shown:

No such attribute 'fixed'.


For legalizing the cells you had suggested the command " run place detail $m" but if it is used for a final routed design (on which we move some cells manually so that they are not placed legally) the flow step goes to placement stage and once again routing has to done from global to detail routing.


So how about using "check place detail $m -legalize smart" . I tried with that command and it is legalizing the cells and the flow still remains at the final routing stage. Could you comment on it please...........


thankz

use run place detail $m -eco...this will place only the cells that are changed..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top