请在下面空白处填入适当内容,完成365进制双向BCD计数器的设计。library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity cnt365 isport(clk, rst, updown: in std_logic;qout: buffer std_logic_vector(9 downto 0));end cnt365;architecture behave of ___________ isbeginprocess(clk,rst,updown)beginif rst='1' then qout<=(others=>'0');elsif clk'event and clk='1' thenif updown='1' thenif qout="___________________" thenqout<=(others=>'0');elsif qout(7 downto 0)=x"_______" thenqout<=qout+x"67";elsif qout(3 downto 0)=x"________" thenqout<=qout+x"7";else qout<=qout+1;end if;elseif qout="0000000000" thenqout<="_________________";elsif qout(7 downto 0)="00000000" thenqout<=qout-x"_____________";elsif qout(_______________)="0000" thenqout<=qout-x"__________";else qout<=qout-1;end if;end if;end if;end process;end behave;