71 --keep track of miso/mosi bit counts for data alignmnet
72 PROCESS(ss_n, clk)
73 BEGIN
74 IF(ss_n = '1' OR reset_n = '0') THEN --this slave is not selected or being reset
75 bit_cnt <= (conv_integer(NOT cpha) => '1', OTHERS => '0'); --reset miso/mosi bit count
76 ELSE --this slave is selected
77 IF(rising_edge(clk)) THEN --new bit on miso/mosi
78 bit_cnt <= bit_cnt(d_width+8-1 DOWNTO 0) & '0'; --shift active bit indicator
79 END IF;
80 END IF;
81 END PROCESS;
ERROR:HDLParsers:3375 - "F:/***/src/spi_slave.vhd" Line 75. Choices for an array aggregate (result of operator) must be locally static unless there is only one choice. (LRM 7.3.2.2)