kender
Advanced Member level 4
hdlparsers:800
Colleague,
I’m learning VHDL by modifying cookbook examples. I’m using Xilinx WebPack and I have a problem within the following code:
Here’s the error message:
Why am I getting this error? Why can’t I assign a constant (a zero) to a variable? What would be the best solution?
Thanks,
- Nick
Colleague,
I’m learning VHDL by modifying cookbook examples. I’m using Xilinx WebPack and I have a problem within the following code:
Code:
signal wdt_clk_cnt: unsigned(23 downto 0);
…
wdt_clk_cnt <= wdt_clk_cnt + 1; -- this works
…
wdt_clk_cnt <= 0; -- ERROR here
…
Here’s the error message:
Code:
ERROR:HDLParsers:800 - "E:/Relievant/gen2/PLD_firmware/watch_dog_timer.vhd" Line 58. Type of wdt_clk_cnt is incompatible with type of 0.
Why am I getting this error? Why can’t I assign a constant (a zero) to a variable? What would be the best solution?
Thanks,
- Nick