Reply by John McCaskill June 6, 20062006-06-06
MM wrote:
> Hi EDK experts, > > I was wondering how are the TCL scripts sitting in each of the > pcores/xxxx/data directories supposed to be used? I am trying to modify a > core and would like to understand whether I have to run the script manually? > I tried running xps -nw -scr xxxx.tcl, but it wouldn't do anything... > > > Thanks, > /Mikhail
You do not need to run the scripts manually, EDK runs them for you. In the MPD file for the core you are modifying, there will be a line like this: OPTION xxx_PROC = name_of_routine_in_tcl_file. xxx_PROC will be one of about six different types of routines the EDK understands. There is a very small amount of documentation on a few of them in the "Platform Specification Manual" in the EDK documentation. This is the manual that describes the MPD, etc. file formats. You can get a lot of examples of how the tclfiles are used by looking though the cores that come with EDK. If you grep the *.mpd files for _PROC, you will get a list of all the cores that are using TCL files, and you will see what different types of _PROC routines are used. You will also find a lot of TCL files to use as examples. The ChipScope files are interesting to look through because they show how to use the ELABORATE_PROC routine to use CoreGenerator to create a core from within EDK. You can also use the tcl files to create a core level UCF file. You use this with the RUN_NGCBUILD option in the MPD file to cause the core to be synthisized by itself and the constraints incorporated into its netlist, then that netlist to be used when the chip level netlist is created. There are some examples of this some where in the EDK cores if you grep for RUN_NGCBUILD in the cores that use tcl files. Last night I was trying to figure out how to get XST to use an XCF constraint file when I build a core on its own. I can generate the XCF file, but I can not figure out how to tell XCF to use it. There is a *.scr file that gets created for each core in the synthesis directory of the project, but I can not figure out how to modify it at the right time of the build. Has anyone else figured this out? Regards, John McCaskill.
Reply by MM June 6, 20062006-06-06
Hi EDK experts,

I was wondering how are the TCL scripts sitting in each of the
pcores/xxxx/data directories supposed to be used? I am trying to modify a
core and would like to understand whether I have to run the script manually?
I tried running xps -nw -scr xxxx.tcl, but it wouldn't do anything...


Thanks,
/Mikhail