Browse Source

synthesis don't like the std_logic'val(int) construct, change to if/else instead

pull/1/head
T. Meissner 10 years ago
parent
commit
308e33cd0c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      syn/SpiSlaveE.vhd

+ 5
- 1
syn/SpiSlaveE.vhd View File

@ -75,7 +75,11 @@ begin
SpiSyncP : process (Reset_n_i, Clk_i) is SpiSyncP : process (Reset_n_i, Clk_i) is
begin begin
if (Reset_n_i = '0') then if (Reset_n_i = '0') then
s_sclk_d <= (others => std_logic'val(G_SPI_CPOL+2));
if (G_SPI_CPOL = '0') then
s_sclk_d <= (others => '0');
else
s_sclk_d <= (others => '1');
end if;
s_ste_d <= (others => '1'); s_ste_d <= (others => '1');
s_mosi_d <= (others => '0'); s_mosi_d <= (others => '0');
elsif rising_edge(Clk_i) then elsif rising_edge(Clk_i) then


Loading…
Cancel
Save