A
Attila Csosz
Guest
architecture behv of counter is
signal Pre_Q: unsigned( 3 downto 0 );
begin
-- behavior describe the counter
process(clock, clear)
begin
if clear = '1' then
Pre_Q <= "0000";
elsif (clock='1' and clock'event) then
Pre_Q <= Pre_Q + 1;
end if;
end process;
-- concurrent assignment statement
QA <= Pre_Q(3);
QB <= Pre_Q(2);
QC <= Pre_Q(1);
QD <= Pre_Q(0);
end behv;
-----------
In this case: QB <= Pre_Q(2); sensitive to "Pre_Q" or only "Pre_Q(2)"?
Thanks
Attila
signal Pre_Q: unsigned( 3 downto 0 );
begin
-- behavior describe the counter
process(clock, clear)
begin
if clear = '1' then
Pre_Q <= "0000";
elsif (clock='1' and clock'event) then
Pre_Q <= Pre_Q + 1;
end if;
end process;
-- concurrent assignment statement
QA <= Pre_Q(3);
QB <= Pre_Q(2);
QC <= Pre_Q(1);
QD <= Pre_Q(0);
end behv;
-----------
In this case: QB <= Pre_Q(2); sensitive to "Pre_Q" or only "Pre_Q(2)"?
Thanks
Attila