Line 60... |
Line 60... |
|
|
signal(SIGSTOP, closeup);
|
signal(SIGSTOP, closeup);
|
signal(SIGHUP, closeup);
|
signal(SIGHUP, closeup);
|
|
|
unsigned v, lgln, scoplen;
|
unsigned v, lgln, scoplen;
|
printf("Attempting to read address %08x\n", WBSCOPE);
|
|
v = m_fpga->readio(WBSCOPE);
|
v = m_fpga->readio(WBSCOPE);
|
if (0x60000000 != (v & 0x60000000)) {
|
if (0x60000000 != (v & 0x60000000)) {
|
printf("Scope is not yet ready:\n");
|
printf("Scope is not yet ready:\n");
|
printf("\tRESET:\t\t%s\n", (v&0x80000000)?"Ongoing":"Complete");
|
printf("\tRESET:\t\t%s\n", (v&0x80000000)?"Ongoing":"Complete");
|
printf("\tSTOPPED:\t%s\n", (v&0x40000000)?"Yes":"No");
|
printf("\tSTOPPED:\t%s\n", (v&0x40000000)?"Yes":"No");
|
Line 81... |
Line 80... |
|
|
DEVBUS::BUSW *buf;
|
DEVBUS::BUSW *buf;
|
buf = new DEVBUS::BUSW[scoplen];
|
buf = new DEVBUS::BUSW[scoplen];
|
|
|
if (false) {
|
if (false) {
|
printf("Attempting vector read\n");
|
|
m_fpga->readz(WBSCOPEDATA, scoplen, buf);
|
m_fpga->readz(WBSCOPEDATA, scoplen, buf);
|
|
|
printf("Vector read complete\n");
|
|
} else {
|
} else {
|
for(unsigned int i=0; i<scoplen; i++)
|
for(unsigned int i=0; i<scoplen; i++)
|
buf[i] = m_fpga->readio(WBSCOPEDATA);
|
buf[i] = m_fpga->readio(WBSCOPEDATA);
|
}
|
}
|
|
|