[an error occurred while processing this directive]
чего-то немогу после праздников понять ничего - где ошибка
(«Телесистемы»: Конференция «Языки описания аппаратуры (VHDL и др.))

миниатюрный аудио-видеорекордер mAVR

Отправлено yes 01 сентября 2003 г. 10:07
В ответ на: а как в VHDL принято описывать "сверточные операции", типа &abc[10:4] ? отправлено yes 01 сентября 2003 г. 09:07





m_seq.vhd



architecture Struct of m_seq is

signal PRN_REG : std_logic_vector(LENGTH-1 downto 0);
signal PRN_REG_next : std_logic_vector(LENGTH-1 downto 0);

-- purpose: convolution XOR
function BIT_CONV_XOR (
inp : std_logic_vector)
return std_logic is
variable res : std_logic := '0';
variable cnt : integer;
begin -- BIT_CONV_XOR
for cnt in inp'range loop
res := res xor inp(cnt);
end loop; -- cnt
return res;
end BIT_CONV_XOR;

begin

PRN_REG_next <= BIT_CONV_XOR(PRN_REG and MASK) & PRN_REG(PRN_REG'length-1 downto 1);

m_reg : process (CLK)

begin
if (CLK'event and CLK = '1') then

reg : if ENA = '0' then
PRN_REG <= not conv_std_logic_vector(0, PRN_REG'length);
else
PRN_REG <= PRN_REG_next;
end if reg;

end if;

end process m_reg;

end Struct;





Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru