PROCESS(CLK,IO,IO_LINK,IO_R,IO_R1,IO_LINK1)
BEGIN
IF RISING_EDGE(CLK) THEN
IF IO_LINK='1' AND IO_LINK1='0' THEN
IO<=IO_R; IO_IN<='Z';
-- TEST1<=TEST1+1;
ELSIF IO_LINK='0' AND IO_LINK1='1' THEN
IO<=IO_R1; IO_IN<='Z';
-- TEST2<=TEST2+1;
ELSIF IO_LINK='0' AND IO_LINK1='0' THEN
IO_IN<=IO; IO<='Z';
-- TEST3<=TEST3+1;
ELSE
IO<='Z'; IO_IN<='Z';
-- TEST4<=TEST4+1;
END IF;
END IF;
END PROCESS;
这是我写的io口操作
谢谢
-
谁能给点意见,上面的io口一直没调好
一周热门 更多>