From 3efda416c24c80962ad5f7cac09f2054bc585e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Tue, 9 Sep 2008 17:59:08 +0000 Subject: [PATCH] fix from and to for downto vectors git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1355 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/src/bsdl2jtag.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 568dda28..78800455 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,7 @@ +2008-09-09 Arnim Laeuger + + * src/bsdl2jtag.c: fix from and to for downto vectors + 2008-09-06 Arnim Laeuger * src/tap/usbconn/libftdi.c, src/tap/usbconn/libftd2xx.c: diff --git a/jtag/src/bsdl2jtag.c b/jtag/src/bsdl2jtag.c index ee400c0f..14d621d2 100644 --- a/jtag/src/bsdl2jtag.c +++ b/jtag/src/bsdl2jtag.c @@ -271,7 +271,7 @@ int endline(void) { strcpy(tmp, pins[pins_num]); n = sscanf(pline+i, "bit_vector ( %i to %i )", &f, &t); if (n < 2) - n = sscanf(pline+i, "bit_vector ( %i downto %i )", &f, &t); + n = sscanf(pline+i, "bit_vector ( %i downto %i )", &t, &f); if (n < 2) { exit(1); }