Ignore:
Timestamp:
Oct 26, 2013, 12:53:31 PM (11 years ago)
Author:
bouyer
Message:

r_ctrl_go_bsy is really a flip/flop, explicitely don't reset it in the
VCI FSM. No behavior change, as we do register writes only if r_ctrl_go_bsy
is false anyway.
Print r_ctrl_go_bsy status in print_trace().

File:
1 edited

Legend:

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

    r559 r564  
    154154                        r_ctrl_cpha = ((wdata & SPI_CTRL_CPHA) != 0);
    155155                        r_ctrl_ie  = ((wdata & SPI_CTRL_IE_EN) != 0);
    156                         r_ctrl_go_bsy = ((wdata & SPI_CTRL_GO_BSY) != 0);
     156                        if (wdata & SPI_CTRL_GO_BSY)
     157                                r_ctrl_go_bsy = true;
    157158                        r_ctrl_char_len = (wdata & SPI_CTRL_CHAR_LEN_MASK);
    158159#ifdef SOCLIB_MODULE_DEBUG
     
    766767        std::cout << name() << " _SPI : " << spi_str[r_spi_fsm.read()]
    767768            << " clk_counter " << r_clk_counter.read()
    768             << " r_bit_count " << r_bit_count.read() << std::endl;
     769            << " r_bit_count " << r_bit_count.read()
     770            << " r_ctrl_go_bsy " << (int)r_ctrl_go_bsy.read() << std::endl;
    769771        std::cout << name() << " _SPI : "
    770772            << " r_spi_clk " << r_spi_clk.read()
Note: See TracChangeset for help on using the changeset viewer.