Magic - Printing using Flea


You can print a magic design by capturing a bitmap of the magic window and then sending it to the printer or including it in a document which is then printed. Alternatively you can use the dedicated magic plotting program, flea, which will usually give better results.

Simple Usage


More Advanced Use

You may like to make use of a number of additional options.

When you specify multiple options to flea, the options are grouped together followed by all the arguments for the different options. The following example combines the options "-d PSc", "-s 50" & "-r 2" to provide a colour postscript output file with a scale of 50 lamba/inch displaying the top two levels of the design hierachy:

    flea -dsr PSc 50 2 inv_ld

Customizing Flea

Slightly better results may be obtained through customizing the flearc file which contols features like the page border and the title. (copy the file using "cp /opt/cad/designkits/ecs/flea/flearc .flearc" and then edit as appropriate).

The simplest customization is simply to remove the frame around the plot. This can be done be using an empty ".flearc" file in the directory in which you are running flea. The following example creates such an empty ".flearc" file and then creates a PDF file based on the the magic file "inv.mag":

    echo > .flearc
    flea -d PSc inv
    ps2pdf inv.ps
    evince inv.pdf &

Additional Documentation


Iain McNally

13-10-2022