Altera_Forum
Honored Contributor
14 years agoError 10327: Can't determine definition of operator ""=""
hello everyone, i am newbie in quartus2, an d I am trying to write a 2 digit bcdcounter, but i facing some error
line 27 :Error 10327: Can't determine definition of operator ""="" the following is the code library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; entity bcdcounter1 is port( RST : in std_logic; Digit1_0 : out unsigned(3 downto 0); Digit10_0 : out unsigned(3 downto 0); SW1 : in std_logic; clk : in std_logic ); end bcdcounter1; architecture bcdcounter1_arch of bcdcounter1 is signal Digit1 : unsigned(3 downto 0); signal Digit2 : unsigned(3 downto 0); begin --BCD up counter process(clk, RST) begin if RST = '0' then Digit1 <= (others => '0'); Digit2 <= (others => '0'); elsif rising_edge(clk) then if (SW1 = '1') then if (digit1 = '8') then if Digit2 < 9 then Digit2 <= Digit2 + 1; Digit1 <= (others => '0'); else Digit1 <= (others => '0'); Digit2 <= (others => '0'); end if; else Digit1 <= (others => '0'); end if; else if Digit1 < 9 then Digit1 <= Digit1+1; else Digit1 <= (others => '0'); end if; end if; end if; end process; Digit1_0 <= Digit1; Digit10_0 <= Digit2; end bcdcounter1_arch;