File: test_tf.vhdl

package info (click to toggle)
ghdl 5.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,000 kB
  • sloc: ada: 309,826; vhdl: 209,727; ansic: 31,072; python: 19,213; sh: 14,214; cpp: 2,345; makefile: 1,542; pascal: 585; asm: 45; exp: 40; fortran: 33
file content (38 lines) | stat: -rw-r--r-- 947 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
entity test_tf is
    port(
        a: in bit_vector(7 downto 0);
        e: in bit;
        ea_and: out bit_vector(7 downto 0);
        ae_and: out bit_vector(7 downto 0);
        ea_nand: out bit_vector(7 downto 0);
        ae_nand: out bit_vector(7 downto 0);
        ea_or: out bit_vector(7 downto 0);
        ae_or: out bit_vector(7 downto 0);
        ea_nor: out bit_vector(7 downto 0);
        ae_nor: out bit_vector(7 downto 0);
        ea_xor: out bit_vector(7 downto 0);
        ae_xor: out bit_vector(7 downto 0);
        ea_xnor: out bit_vector(7 downto 0);
        ae_xnor: out bit_vector(7 downto 0));
end test_tf;

architecture behavior of test_tf is
begin
  ea_and <= a and e;
  ae_and <= e and a;

  ea_nand <= a nand e;
  ae_nand <= e nand a;

  ea_or <= a or e;
  ae_or <= e or a;

  ea_nor <= a nor e;
  ae_nor <= e nor a;

  ea_xor <= a xor e;
  ae_xor <= e xor a;

  ea_xnor <= a xnor e;
  ae_xnor <= e xnor a;
end behavior;