PROCESS(sys_clk,newdata)
BEGIN
IF rising_edge(newdata) THEN
case do is
when x"10" => new_s(0) <= '1';
when x"11" => new_s(1) <= '1';
when x"12" => new_s(2) <= '1';
when x"13" => new_s(3) <= '1';
when others => null;
end case;
ELSE
new_s <= (others => '0');
END IF;
END PROCESS;
因為 newdata =1 時間不卻定,所以必須抓上緣 1個sys_clk,但是又錯誤......
|