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

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [vpi/] [vpi_test_suit/] [write_tx_spw.h] - Diff between revs 5 and 40

Show entire file | Details | Blame | View Log

Rev 5 Rev 40
Line 24... Line 24...
                                break;
                                break;
                                case WAIT_DATA:
                                case WAIT_DATA:
                                        value_to_tx.value.integer = 0;
                                        value_to_tx.value.integer = 0;
                                        vpi_put_value(WR_DATA, &value_to_tx, NULL, vpiNoDelay);
                                        vpi_put_value(WR_DATA, &value_to_tx, NULL, vpiNoDelay);
 
 
                                        if(position <= SC_TOP->size_data_test())
                                        if(position <= SC_TOP->size_data_test_vlog())
                                        {
                                        {
                                                vpi_get_value(TX_FULL, &value_to_tx);
                                                vpi_get_value(TX_FULL, &value_to_tx);
                                                if(value_to_tx.value.integer == 1)
                                                if(value_to_tx.value.integer == 1)
                                                {
                                                {
                                                }
                                                }
Line 37... Line 37...
                                                        state_test = SEND_DATA;
                                                        state_test = SEND_DATA;
                                                        //counter = counter + 1;
                                                        //counter = counter + 1;
                                                        position = position + 1;
                                                        position = position + 1;
                                                }
                                                }
                                        }
                                        }
                                        if(position > SC_TOP->size_data_test())
                                        if(position > SC_TOP->size_data_test_vlog())
                                        {
                                        {
                                                state_test = 60;
                                                state_test = 60;
                                        }
                                        }
                                break;
                                break;
                                case 60:
                                case 60:

powered by: WebSVN 2.1.0

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