File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ entity SPI_MASTER is
49
49
MOSI : out std_logic ;
50
50
MISO : in std_logic ;
51
51
-- USER INTERFACE
52
- DIN : in std_logic_vector (DATA_WIDTH- 1 downto 0 );
53
- DIN_VLD : in std_logic ; -- when DIN_VLD = 1, data on DIN are valid and will be transmit
54
- READY : out std_logic ; -- when READY = 1, SPI master is ready to accept data on DIN
55
- DOUT : out std_logic_vector (DATA_WIDTH- 1 downto 0 );
56
- DOUT_VLD : out std_logic -- when DOUT_VLD = 1, data on DOUT are valid
52
+ DIN : in std_logic_vector (DATA_WIDTH- 1 downto 0 ); -- input data
53
+ DIN_VLD : in std_logic ; -- when DIN_VLD = 1, input data are valid and can be accept
54
+ READY : out std_logic ; -- when READY = 1, SPI master is ready to accept input data
55
+ DOUT : out std_logic_vector (DATA_WIDTH- 1 downto 0 ); -- output data
56
+ DOUT_VLD : out std_logic -- when DOUT_VLD = 1, output data are valid
57
57
);
58
58
end SPI_MASTER ;
59
59
98
98
spi_mosi_reg_en <= spi_clk_falling_edge_en1;
99
99
spi_bit_cnt_en <= spi_clk_falling_edge_en1 AND NOT spi_chip_select_n;
100
100
spi_clk_en_set <= spi_clk_falling_edge_en0;
101
- spi_dout_vld <= spi_clk_falling_edge_en0 AND spi_last_bit;
101
+ spi_dout_vld <= spi_clk_rising_edge_en1 AND spi_last_bit;
102
102
103
103
SCLK <= spi_clk_reg1;
104
104
CS_N <= spi_chip_select_n;
You can’t perform that action at this time.
0 commit comments