can't infer register for ENx because it changes value on both rising and falling edges of the clock在VHDL语言编程时出现这样的错误
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 15:12:42
can't infer register for ENx because it changes value on both rising and falling edges of the clock在VHDL语言编程时出现这样的错误
can't infer register for ENx because it changes value on both rising and falling edges of the clock
在VHDL语言编程时出现这样的错误
can't infer register for ENx because it changes value on both rising and falling edges of the clock在VHDL语言编程时出现这样的错误
你检查下代码,信号量ENx是不是一直在变化?类似于你这样写代码:
process(clk,reset)
begin
if reset = '0' then
ENx <= '0';
elsif rising_edge(clk) then
ENx <= '1';
else
ENx <= '0';
end if;
end process;
对于上面的代码,编译器认为ENx信号在clk的上升沿和下降沿都在变化,是不允许的.你可以将else中的语句拿掉即可(会产生锁存器).如果不希望产生锁存器的话,需要在elsif中加其他清除代码,注意不能再else中加.
我觉得…应该放在具体的语境中分析吧…因为see可以和动词原型和动名词连用,然后,如果是看到了日出的全过程,或者说是刻意地去看日出,就用动词原型,如果