2003-08-12 Marcel Telka <marcel@telka.sk>

* src/bsdl2jtag.c (endline): Added support for "downto" in bit vectors and "observe_only" (patch 787346,
		Brad Parker).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@502 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent d274e79ff6
commit f3ea9f002f

@ -1,3 +1,8 @@
2003-08-12 Marcel Telka <marcel@telka.sk>
* src/bsdl2jtag.c (endline): Added support for "downto" in bit vectors and "observe_only" (patch 787346,
Brad Parker).
2003-08-11 Marcel Telka <marcel@telka.sk>
* src/cmd/Makefile.am (libcmd_a_SOURCES): Added include.c.

@ -22,6 +22,7 @@ jtag-0.5:
more info, thanks to Ramses VI).
* Fixed invalid memory allocation size (core dump) in jtag_parse_line() function.
* Added new 'include' command.
* Added support for "downto" in bit vectors and "observe_only" (patch 787346, Brad Parker).
* Minor bugs fixed.
jtag-0.4 (2003-05-29):

@ -7,6 +7,7 @@ Chris Ellec
Jachym Holecek
August Hörandl
Stas Khirman
Brad Parker
Christian Pellegrin
Ramses VI
Holger Schurig

@ -185,6 +185,9 @@ int endline(void) {
if(!strncasecmp(type, "input", 5)) {
bs_bits[bit].type=BSBIT_INPUT;
} else
if(!strncasecmp(type, "observe_only", 12)) {
bs_bits[bit].type=BSBIT_INPUT;
} else
if(!strncasecmp(type, "OUTPUT", 6)) {
bs_bits[bit].type=BSBIT_OUTPUT;
} else
@ -254,9 +257,14 @@ int endline(void) {
pins_num++;
sscanf(pline, "%s %s %n\n", pins[pins_num], tmp, &i);
if(!strncmp(pline+i, "bit_vector", 10)) {
int f,t;
int f,t,n;
strcpy(tmp, pins[pins_num]);
sscanf(pline+i, "bit_vector ( %i to %i )", &f, &t);
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);
if (n < 2) {
exit(1);
}
while (f<=t) {
sprintf(pins[pins_num], "%s%i",tmp,f);
f++;

Loading…
Cancel
Save