In OpenoCD, we can handle TRST ON/OFF/ABSENT. But we can not 
handle TRST Z, not all the jtag tool can support this. So should it be 
interpreted as TRST OFF?
My SVF code doesn't handle TRST Z, I'll provide a patch for TRST 
command and using jtag_add_clocks.

According to the SVF specification, TRST mode(ON/OFF) should be 
changed right after all the previous commands executed. But I don't 
have a chip require operations on TRST, so I can not test on this.

I compared XSVF commands and SVF commands, there are 4 
commands absent in XSVF.
1. FREQUENCY, in SVF it's used to set the frequency of the JTAG.
If using XSVF, jtag_khz should be run before executing the xsvf file.
Some tools will run at a very low speed without setting the jtag speed.
2. PIOMAP
3. PIO
They are used to control some other pins, which is not available in OpenOCD.
4. TRST
discussed above.

For the 'quite' mode, I just want to test the execution speed for compare.
I don't know how many percentage of the time, printing function will take.

2009-01-21 



Best Regards, Simon Qian

SimonQian([email protected]) ---- www.SimonQian.com



发件人: Dick Hollenbeck 
发送时间: 2009-01-21  23:10:15 
收件人: SimonQian 
抄送: openocd-development 
主题: Re: [Openocd-development] svf support 
 
SimonQian wrote:
> Hi,
> When try to convert svf file to xsvf, i got this:
> --------------------------------------------------
> H:\MyProject\Versaloon\test>python --version
> Python 3.0
> H:\MyProject\Versaloon\test>python svf2xsvf.py temp.svf temp.xsvf
> Error in file 'temp.svf' at line 29 near token 'TRST'
> Unknown token 'TRST'
> --------------------------------------------------
> svf file is in the attachment. it's generated by Quartus II Web Edition.
> I remove the programming part.
> 'TRST' is a valid command in svf, but there is no corresponding
> command in xsvf.
Simon,
True about TRST. But now we are in control of the XSVF format that we
want to support, as a result of being able to generate the XSVF file.
Our support can be a superset of Xilinx's, it already is. It is possible
to add opcodes to the XSVF file as needed. We are fully in control of
our own destiny here.
Let me know your thoughts on this. As I read the SVF spec, the
description of TRST with ABSENT is clear and unambiguous. After that,
for other values of "trst_mode", some clarity is helpful. Do you read it
to mean that if trst_mode is "ON", then we are to "set to zero/low" the
TRST line at that point in the execution stream? And if the argument is
"OFF", then we are to "set to one/high" the TRST line at that point in
the execution stream? What about trst_mode equal to "Z". Does our cable
API even support a high Z state for the TRST line? If not, what should
we do then?
Regarding your other posting about verbosity of the XSVF programming
operation:
We can add a "quiet" argument to the command for you. I personally do
not want to have to turn on debug logging to get the output that is
currently in there, because then the logging format changes and it is
intermingled with other output. I personally do not mind that it scrolls
off the screen. I prefer to see progress being made during what can be a
long operation.
I will prepare a patch or two for you once we agree on a direction.
Thanks for your feedback,
Dick
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to