How do i resolve the error in the following code?
** Error: mux1_sim.vhd(14): near ")": (vcom-1576) expecting IDENTIFIER.
library IEEE;
use IEEE.std_logic_1164.all;
--use work.std_arith.all;
use IEEE.numeric_std;
entity mux1_sim is
port (
signal1: in std_logic;
signal1_red: in std_logic;
data_mux1: in std_logic;
mux1_sel: out std_logic;
mux1_wr: out std_logic;
MRST: out std_logic;
);
end mux1_sim;
architecture Behaviour71 of mux1_sim is
signal S0, S1, D;
signal RS_b, WR_b
begin
rss <=( ext_rstn='1');
C1: process(mux1_sel)
RS_b<=MRST;
WR_b<=mux1_wr;
S0<=signal1;
S1<=signal1_red;
begin
if(RS_b=1)then
if(WR_b='1' and WR_b'event)then
D=D;
elseif(WR_b='0')
if(mux1_sel='0')
D=S0;
else
D= S1
end if;
end if;
else
D=0;
end if;
end process;
data_mux1<=D;
end Behaviour71;