OpenCores
URL https://opencores.org/ocsvn/xulalx25soc/xulalx25soc/trunk

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [sw/] [cpuscope.cpp] - Diff between revs 5 and 17

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 5 Rev 17
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);
        }
        }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.