~ruther/vhdl-spi-2

ref: dc0e370ab44f26ba06f5e709c826cb73b3c15fd8 vhdl-spi-2/hdl_spi/src/rs_latch.vhd -rw-r--r-- 447 bytes
dc0e370a — Rutherther feat: implement initial hdl_spi 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
library ieee;
use ieee.std_logic_1164.all;

entity rs_latch is

  port (
    reset_i : in  std_logic;
    set_i   : in  std_logic;
    q_o     : out std_logic);

end entity rs_latch;

architecture a1 of rs_latch is

begin  -- architecture a1

  data: process (reset_i, set_i) is
  begin  -- process data
    if set_i = '1' then
      q_o <= '1';
    elsif reset_i = '1' then
      q_o <= '0';
    end if;
  end process data;

end architecture a1;
Do not follow this link