|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
I have the following VHDL codes for my module: and I want to get rid of the if, which
I believe generated latch. Please help to change to
clk_en_latch: PROCESS(clk_enable, clk)
BEGIN
IF clk = '0' THEN
latched_clk_en <= clk_enable;
END IF;
END PROCESS;
I did try to change the code to the following, although I don't have any experience dealing with VHDL code
clk_en_latch: PROCESS(clk_enable, clk)
BEGIN
WAIT UNTIL clk'event AND clk='0';
latched_clk_en <= clk_enable;
END PROCESS;
but I got the error below, please help,
-------------------
52: WAIT UNTIL clk'event AND clk='0';
^^^^
[Error] Illegal wait statement: cannot appear inside process with sensitivity list |
|