~ruther/vhdl-spi-2

bc5e4510ab114cb33c2b47c9cde46298482efb1e — Rutherther 2 months ago 98fdc2a
fix: make ios tri state when disabled
1 files changed, 4 insertions(+), 4 deletions(-)

M hdl_spi/src/spi_masterslave.vhd
M hdl_spi/src/spi_masterslave.vhd => hdl_spi/src/spi_masterslave.vhd +4 -4
@@ 256,16 256,16 @@ begin  -- architecture a1

  mosi_t <= not slave_mosi_en when slave_en = '1' else
            not master_mosi_en when master_en = '1' else
            '0';
            '1';
  miso_t <= not slave_miso_en when slave_en = '1' else
            not master_miso_en when master_en = '1' else
            '0';
            '1';
  sck_t <= not slave_sck_en when slave_en = '1' else
           not master_sck_en when master_en = '1' else
           '0';
           '1';
  csn_t <= not slave_csn_en when slave_en = '1' else
           not master_csn_en when master_en = '1' else
           '0';
           '1';

  mosi_o <= tx_serial_data(0) when master_en = '1' else
          '0' when slave_en = '1' else

Do not follow this link