Lattice isplever中怎么设置才能让综合时不把逻辑门优化掉?

2020-02-03 11:09发布

兄弟们,我需要用4个非门来做一个ns级别的延时,是在isplever综合时会自动把他们优化掉,仿真时没有延时效果了,怎么才能让他们不被优化掉呢?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
13条回答
ococ
2020-02-04 19:04
bzy812 发表于 2014-3-24 11:05
vhdl

给你个例子 看看吧。
entity example2 is
port (in1, in2 : in bit;
         clk : in bit;
        out1, out2 : out bit );
end example2;
architecture rt1 of example2 is
      attribute syn_keep : boolean;
      signal and_out, keep1, keep2: bit;
      attribute syn_keep of keep1, keep2 : signal is true;
begin
       and_out <= in1 and in2;
       keep1 <= and_out;
       keep2 <= and_out;
process(clk)
begin
if (clk'event and clk = '1') then
   out1 <= keep1;
   out2 <= keep2;
end if;
end process;
end rt1;

一周热门 更多>