Re: MIPS auf Xilinx FPGA

-- so weit geht es jetzt - mit COMPONENT und PORT MAP

entity my_rs_latch is
port
(
    r, s: in bit;
    q1, q2: inout bit
);
end;

entity clock_state_controlled_rs_latch is
port (
    s, r: in bit;
    c: in bit;
    q1, q2: inout bit
);
end;

architecture Behavioral of my_rs_latch is
begin
    q1 <= (not r) nor q2;
    q2 <= (not s) nor q1;
end Behavioral;

architecture Behavioral of clock_state_controlled_rs_latch is
    component my_rs_latch
    port
    (
        r, s: in bit;
        q1, q2: inout bit
    );
    end component;
begin
    rs: my_rs_latch port map (r=>r, s=>s, q1=>q1, q2=>q2);
end Behavioral;