Changeset 529


Ignore:
Timestamp:
Sep 19, 2013, 11:49:06 AM (11 years ago)
Author:
cfuguet
Message:

Bugfix in vci_mem_cache:

  • The word_count register used by the WRITE FSM to count the number of words that are being modified in a write burst must not be incremented for the SC command as the first flit is the reservation key and not a data to write
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp

    r527 r529  
    27312731                    r_write_be[index]   = m_cmd_write_be_fifo.read();
    27322732                    r_write_data[index] = m_cmd_write_data_fifo.read();
    2733                     r_write_word_count  = r_write_word_count.read() + 1;
     2733
     2734                    // the first flit of a SC command is the reservation key and
     2735                    // therefore it must not be counted as a data to write
     2736                    if (not is_sc)
     2737                    {
     2738                        r_write_word_count = r_write_word_count.read() + 1;
     2739                    }
    27342740
    27352741                    if (m_cmd_write_eop_fifo.read()) r_write_fsm = WRITE_DIR_REQ;
Note: See TracChangeset for help on using the changeset viewer.