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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [zipstate.cpp] - Diff between revs 31 and 36

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

Rev 31 Rev 36
Line 68... Line 68...
                errcount++;
                errcount++;
        if (errcount >= MAXERR) {
        if (errcount >= MAXERR) {
                printf("ERR: errcount(%d) >= MAXERR on cmd_read(a=%02x)\n",
                printf("ERR: errcount(%d) >= MAXERR on cmd_read(a=%02x)\n",
                        errcount, r);
                        errcount, r);
                printf("ZIPCTRL = 0x%08x", s);
                printf("ZIPCTRL = 0x%08x", s);
                if ((s & 0x0200)==0) printf(" STALL");
                if ((s & 0x0200)==0) printf(" BUSY");
                if  (s & 0x0400)     printf(" HALTED");
                if  (s & 0x0400)     printf(" HALTED");
                if ((s & 0x03000)==0x01000)
                if ((s & 0x03000)==0x01000)
                        printf(" SW-HALT");
                        printf(" SW-HALT");
                else {
                else {
                        if (s & 0x01000) printf(" SLEEPING");
                        if (s & 0x01000) printf(" SLEEPING");
Line 107... Line 107...
                v = m_fpga->readio(R_ZIPCTRL);
                v = m_fpga->readio(R_ZIPCTRL);
 
 
                printf("0x%08x: ", v);
                printf("0x%08x: ", v);
                if (v & 0x0080) printf("PINT ");
                if (v & 0x0080) printf("PINT ");
                // if (v & 0x0100) printf("STEP "); // self resetting
                // if (v & 0x0100) printf("STEP "); // self resetting
                if((v & 0x00200)==0) printf("STALL ");
                if((v & 0x00200)==0) printf("BUSY ");
                if (v & 0x00400) printf("HALTED ");
                if (v & 0x00400) printf("HALTED ");
                if((v & 0x03000)==0x01000) {
                if((v & 0x03000)==0x01000) {
                        printf("SW-HALT");
                        printf("SW-HALT");
                } else {
                } else {
                        if (v & 0x01000) printf("SLEEPING ");
                        if (v & 0x01000) printf("SLEEPING ");

powered by: WebSVN 2.1.0

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