对于这种外面有并行语句赋值,进程里有顺序语句赋值时,运行起来data会是什么状态呢?会不会冲突?啥时候是Z啥时候是0?
ARCHITECTURE one OF GpioExtend is
SIGNAL dataBuffer :STD_LOGIC_VECTOR(7 DOWNTO 0);
BEGIN
data <= (OTHERS => 'Z');
PROCESS(wr)
BEGIN
IF (wr = '0') THEN
data <=(OTHERS => '0');
ELSE
NULL;
END IF;
END PROCESS;
END one ; |