1 ------------------------------------------------------------------------------- 3 --! @brief Simulated drv8711 SPI device 4 ------------------------------------------------------------------------------- 9 --! Using IEEE standard logic components 10 USE ieee.std_logic_1164.
ALL;
12 --! Using IEE standard numeric components 15 --! @brief Simulated drv8711 entity 26 END ENTITY sim_drv8711_spi;
28 --! Architectur sim of entity sim_drv8711_spi 31 SIGNAL dat_miso : (15 DOWNTO 0);
32 SIGNAL dat_mosi : (15 DOWNTO 0);
36 --! @brief Process to handle SPI traffic 42 dat_miso <= (OTHERS => '0');
43 dat_mosi <= (OTHERS => '0');
45 -- Populate shift registers 47 dat_mosi <= (OTHERS => '0');
49 -- Capture incoming data on rising edge 52 -- Shift outgoing data on falling edge 53 dat_miso <= dat_miso(14 DOWNTO 0) & '0';
out dat_mosi_outstd_logic_vector( 15 DOWNTO 0)
SPI data received.
in spi_mosi_instd_logic
SPI mosi line.
in spi_scs_instd_logic
SPI scs line.
in dat_miso_instd_logic_vector( 15 DOWNTO 0)
SPI data to send.
_library_ ieeeieee
Using IEEE library.
Simulated drv8711 entity.
in rst_instd_logic
Asynchronous reset.
in spi_sclk_instd_logic
SPI sclk line.
out spi_miso_outstd_logic
SPI miso line.