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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [pipecmdr.h] - Diff between revs 94 and 116

Show entire file | Details | Blame | View Log

Rev 94 Rev 116
Line 204... Line 204...
                bool tx_accepted = false;
                bool tx_accepted = false;
                if (m_tx_busy == 0) {
                if (m_tx_busy == 0) {
                        if ((TESTB<VA>::m_core->o_tx_stb)&&(m_con > 0)) {
                        if ((TESTB<VA>::m_core->o_tx_stb)&&(m_con > 0)) {
                                m_txbuf[m_txpos++] = TESTB<VA>::m_core->o_tx_data;
                                m_txbuf[m_txpos++] = TESTB<VA>::m_core->o_tx_data;
                                tx_accepted = true;
                                tx_accepted = true;
                                if ((TESTB<VA>::m_core->o_tx_data == '\n')||(m_txpos >= sizeof(m_txbuf))) {
                                if ((TESTB<VA>::m_core->o_tx_data == '\n')||(m_txpos >= (int)sizeof(m_txbuf))) {
                                        int     snt = 0;
                                        int     snt = 0;
                                        snt = send(m_con, m_txbuf, m_txpos, 0);
                                        snt = send(m_con, m_txbuf, m_txpos, 0);
                                        if (snt < 0) {
                                        if (snt < 0) {
                                                close(m_con);
                                                close(m_con);
                                                m_con = -1;
                                                m_con = -1;

powered by: WebSVN 2.1.0

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