static int svf_line_number = 1;
static int svf_getline (char **lineptr, size_t *n, FILE *stream);
-#define SVF_MAX_BUFFER_SIZE_TO_COMMIT (4 * 1024)
+#define SVF_MAX_BUFFER_SIZE_TO_COMMIT (1024 * 1024)
static uint8_t *svf_tdi_buffer = NULL, *svf_tdo_buffer = NULL, *svf_mask_buffer = NULL;
static int svf_buffer_index = 0, svf_buffer_size = 0;
static int svf_quiet = 0;
svf_buffer_index = 0;
// double the buffer size
- // in case current command cannot be commited, and next command is a bit scan command
+ // in case current command cannot be committed, and next command is a bit scan command
// here is 32K bits for this big scan command, it should be enough
// buffer will be reallocated if buffer size is not enough
svf_tdi_buffer = (uint8_t *)malloc(2 * SVF_MAX_BUFFER_SIZE_TO_COMMIT);
unsigned char ch;
int i = 0;
size_t cmd_pos = 0;
- int cmd_ok = 0, slash = 0, comment = 0;
+ int cmd_ok = 0, slash = 0;
if (svf_getline (&svf_read_line, &svf_read_line_size, svf_fd) <= 0)
{
i = -1;
case '\r':
slash = 0;
- comment = 0;
/* Don't save '\r' and '\n' if no data is parsed */
if (!cmd_pos)
break;
{
#if 1
/* FIXME handle statemove failures */
- int retval;
uint32_t min_usec = 1000000 * min_time;
// enter into run_state if necessary
if (cmd_queue_cur_state != svf_para.runtest_run_state)
{
- retval = svf_add_statemove(svf_para.runtest_run_state);
+ svf_add_statemove(svf_para.runtest_run_state);
}
// add clocks and/or min wait
// move to end_state if necessary
if (svf_para.runtest_end_state != svf_para.runtest_run_state)
{
- retval = svf_add_statemove(svf_para.runtest_end_state);
+ svf_add_statemove(svf_para.runtest_end_state);
}
#else
if (svf_para.runtest_run_state != TAP_IDLE)