Altera_Forum
Honored Contributor
15 years agoproblem of LCD controller
hi,
i would convert a verilog code to vhdl code , //code verilog always@(posedge iCLK or negedge iRST_N) begin if(!iRST_N) begin LUT_INDEX <= 0; mLCD_ST <= 0; mDLY <= 0; mLCD_Start <= 0; mLCD_DATA <= 0; mLCD_RS <= 0; end else begin ........ ----------------------------------------------------------------------- --vhdl code process(iCLK,iRST_N) variable var_mDLY : std_logic_vector(17 downto 0); begin if (( iCLK 'event and iCLK='1') or (iRST_N 'event and iRST_N='0')) then if(iRST_N='0') then LUT_INDEX <=(others =>'0'); mLCD_ST <=(others =>'0'); mDLY <=(others =>'0'); mLCD_Start <='0'; mLCD_DATA <=(others =>'0'); mLCD_RS <='0'; else ............ when i compile this error appear: Error (10628): VHDL error at LCD_TEST.vhd(61): can't implement register for two clock edges combined with a binary operator so if somebody have any solution ?