Hello Svenn,

Is it possible to place parametised labels which can be replaced by a tcl
script on the fly?

Yes, it is, and sorry for the delay in responding.  I've been moving my
household, which has kept me busy for several weeks.

Background is that I have designed a daughter-board with an FMC contact
which can be inserted into various evaluation boards from Xilinx, and I am
drawing a block diagram to visualize the FPGA functional blocks in
xcircuit. I am going to insert this FMC board into two different Xilinx
evaluation boards, and the pin assignment for the FPGAs are different for
the FMC contact.

In order to have as much information as possible in the block diagram, I
started out adding the pinout of the Zynq to the block diagram. Now I have
to add pinout for an Artix evboard. It is going to be tough to maintain two
different block diagrams just because the pinout is different. Is it
possible to place text which can be replaced by a script depending on which
FPGA I am working on?

I know Cadence had this [@name] thing which could be dynamically replaced
by annotation values from simulation. I am looking at the idea of placing a
text which says $FMC_LA06_N and then in tkcon do a label $FMC_LA06_N show
A11 when working on one chip and label $FMC_LA06_N show B1 when working on
the other. Syntax and pin in the example are purely for illustration
purpose.

There is a similar feature in xcircuit to evaluate Tcl expressions in
labels, through the use of parameters.  What you would do is to create
a parameter:  Bring up the "parameter" window and then click on "New..."
and then "Expression".  "Parameter name" is just a keyword, as usual.
The "Default value" is the Tcl expression itself.  For example, type
"expr 1 + 1", and then in the parameter window you'll see the Value
column says "2".

If the value generated by the expression is a number, xcircuit will
promote it to type string if you use it in a label.  So you can just
insert the parameter as needed.

There is another library that comes with xcircuit that has pins that
can be reassigned names or numbers depending on the value of a
variable.  I am short on time right now, but I will look it up later
and show you how the pins can be made dependent on the part type---I
think that's exactly the use case you want.

                                        Regards,
                                        Tim

+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim)       | email: [email protected]    |
| Open Circuit Design            | web:   http://opencircuitdesign.com |
| 19412 Cissel Manor Drive       | phone: (301) 528-5030               |
| Poolesville, MD 20837          | cell:  (408) 828-8212               |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to