Line 72... |
Line 72... |
case 'p':
|
case 'p':
|
port = atoi(argv[argn++]); j+= 4000;
|
port = atoi(argv[argn++]); j+= 4000;
|
run_interactively = true;
|
run_interactively = true;
|
break;
|
break;
|
case 's':
|
case 's':
|
setup= strtoul(argv[argn++], NULL, 0); j+= 4000;
|
setup= strtoul(argv[++argn], NULL, 0); j+= 4000;
|
break;
|
break;
|
default:
|
default:
|
printf("Undefined option, -%c\n", argv[argn][j]);
|
printf("Undefined option, -%c\n", argv[argn][j]);
|
break;
|
break;
|
}
|
}
|
Line 191... |
Line 191... |
tb.i_clk = 0;
|
tb.i_clk = 0;
|
tb.eval();
|
tb.eval();
|
|
|
tb.i_uart = (*uart)(tb.o_uart);
|
tb.i_uart = (*uart)(tb.o_uart);
|
|
|
/*
|
if (false) {
|
fprintf(stderr, "%02x:%02x (%02x/%d) %d,%d->%02x [%d/%d/%08x]\n",
|
static long counts = 0;
|
tb.v__DOT__head,
|
static int lasti = 1, lasto = 1;
|
tb.v__DOT__tail,
|
bool writeout = false;
|
tb.v__DOT__lineend,
|
|
tb.v__DOT__run_tx,
|
counts++;
|
tb.v__DOT__tx_stb,
|
if (lasti != tb.i_uart) {
|
tb.v__DOT__transmitter__DOT__r_busy,
|
writeout = true;
|
tb.v__DOT__tx_data & 0x0ff,
|
lasti = tb.i_uart;
|
tb.v__DOT__transmitter__DOT__state,
|
} if (lasto != tb.o_uart) {
|
tb.v__DOT__transmitter__DOT__zero_baud_counter,
|
writeout = true;
|
tb.v__DOT__transmitter__DOT__baud_counter);
|
lasto = tb.o_uart;
|
*/
|
}
|
|
|
|
if (writeout) {
|
|
fprintf(stderr, "%08lx : [%d -> %d] %02x:%02x (%02x/%d) %d,%d->%02x [%2d/%d/%08x]\n",
|
|
counts, tb.i_uart, tb.o_uart,
|
|
tb.v__DOT__head,
|
|
tb.v__DOT__tail,
|
|
tb.v__DOT__lineend,
|
|
tb.v__DOT__run_tx,
|
|
tb.v__DOT__tx_stb,
|
|
tb.v__DOT__transmitter__DOT__r_busy,
|
|
tb.v__DOT__tx_data & 0x0ff,
|
|
tb.v__DOT__transmitter__DOT__state,
|
|
tb.v__DOT__transmitter__DOT__zero_baud_counter,
|
|
tb.v__DOT__transmitter__DOT__baud_counter);
|
|
}
|
|
}
|
|
|
if (iterations_before_check-- <= 0) {
|
if (iterations_before_check-- <= 0) {
|
iterations_before_check = 2048;
|
iterations_before_check = 2048;
|
done = ((time(NULL)-start)>60);
|
done = ((time(NULL)-start)>60);
|
if (done)
|
if (done)
|