tinyriscv-openocd/src
zwelch d6a686c852 Ferdinand Postema <ferdinand@postema.eu>:
Updates to private TAP state tables in amtjtagaccel interface driver.

The first change is the neccesary one to correct a long-standing bug that
caused the IDCODE to be shifted by one bit too many.  This was caused by
an incorrect path from state RESET to state DRSHIFT.

The value of those 2 bytes were 0x8a and 0x04. This means that the
bitstream to do this transition is 0b 00100 01010 (send LSB first). This
will bring you from the reset state to the shift state; however, you
enter the shift-state twice, which explains why the ID-CODE that will be
read next will be shifted 1 bit.  The fix changes these to 0x05 and 0x00.
This will send the bitstream 0b 00101 (send LSB first).  This will bring
the TAP controller from the RESET state to the DRSHIFT state directly,
without entering the DRSHIFT state twice.

After checking the whole table, two other transitions were found that
could be optimized (5 bits in stead of 10 bits).

Summary off all changes:
  From   To       Old values  Old Bitstream  New values  New Bitstream  Remarks
  ----   -------  ----------  -------------  ----------  -------------  -------
  RESET  DRSHIFT  0x8a 0x04   0b00100 01010  0x05 0x00   0b00101        1,2
  IDLE   DRSHIFT  0x85 0x08   0b01000 00101  0x04 0x00   0b00100        2
  IDLE   IRSHIFT  0x8b 0x08   0b01000 01011  0x06 0x00   0b00110        2

[1] Fixes the IDCODE bug
[2] Optimization


git-svn-id: svn://svn.berlios.de/openocd/trunk@2472 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-07-06 10:34:49 +00:00
..
flash David Brownell <david-b@pacbell.net>: 2009-07-02 04:55:10 +00:00
helper try to use tabs instead of spaces 2009-07-06 08:01:22 +00:00
jtag Ferdinand Postema <ferdinand@postema.eu>: 2009-07-06 10:34:49 +00:00
pld - Replace '){' with ') {'. 2009-06-23 22:49:06 +00:00
server A bit more log detail about connections comming and going 2009-06-28 02:54:19 +00:00
svf Remove whitespace at end of lines, step 2. 2009-06-23 22:50:08 +00:00
target 10ms timeout check on cp15 read/write 2009-07-06 09:32:22 +00:00
xsvf Remove whitespace at end of lines, step 2. 2009-06-23 22:50:08 +00:00
Makefile.am Add quick target - full cygwin builds take a long long long time, this shortens the edit/build/debug cycle 2009-06-24 02:00:19 +00:00
ecosboard.c zy1000 now listens for port 1234. Upon accepting connection reboot zy1000. 2009-07-06 07:31:46 +00:00
main.c Dick Hollenbeck <dick@softplc.com> moved stuff into openocd.c - should never have been in main.c in the first place. DLL will now build. 2009-05-02 19:31:30 +00:00
openocd.c Make bug reporting output at program start-ups use fewer new lines: 2009-06-30 05:33:41 +00:00