[an error occurred while processing this directive] [an error occurred while processing this directive]
Несколько ниже меня убедили, что AHDL не плох. Но сразу возник вопрос по state machine(+)
(«Телесистемы»: Конференция «Программируемые логические схемы и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Vladimir 17 августа 2001 г. 11:43

Вот пример и встроеного хелпа

In the file simple.tdf shown below, the state machine Clock is driven by the input clk. The state machine's asynchronous Reset signal is driven by reset, which is active high. In this design file, the declaration of the ena input in the Subdesign Section and the Boolean equation ss.ena = ena in the Logic Section connect the Clock Enable signal.

SUBDESIGN simple
(
clk, reset, ena, d : INPUT;
q : OUTPUT;
)

VARIABLE
ss: MACHINE WITH STATES (s0, s1);

BEGIN

ss.clk = clk;
ss.reset = reset;
ss.ena = ena;

CASE ss IS
WHEN s0 =>
q = GND;

IF d THEN
ss = s1;
END IF;
WHEN s1 =>
q = VCC;

IF !d THEN
ss = s0;
END IF;
END CASE;

END;

Все вроде понятно.

Но если происходит RESET то в какое состояние
переходит state machine?

И как из него выйти?

Если первое обьявленное то почему не указано?



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

Ответы


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

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

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

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

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


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

E-mail: info@telesys.ru