File: sr64_32a.vst

package info (click to toggle)
alliance 5.0-20120515-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 70,324 kB
  • ctags: 39,977
  • sloc: ansic: 350,299; vhdl: 34,227; yacc: 27,122; sh: 12,416; cpp: 9,478; makefile: 7,057; lex: 3,684
file content (69 lines) | stat: -rw-r--r-- 1,882 bytes parent folder | download | duplicates (4)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
entity sr64_32a is

  port (
       E_N         : in    bit_vector ( 0     to 3)    ;
       W_N         : in    bit                         ;
       DAT         : inout mux_vector (31 downto 0) bus;
       ADR         : in    bit_vector ( 5 downto 0)    ;
       VDD         : in    bit                         ;
       VSS         : in    bit
       );

end sr64_32a;

architecture STRUCTURAL of sr64_32a is

  component sr64_8a
    port (
         E_N         : in    bit                        ;
         W_N         : in    bit                        ;
         DAT         : inout mux_vector (7 downto 0) bus;
         ADR         : in    bit_vector (5 downto 0)    ;
         VDD         : in    bit                        ;
         VSS         : in    bit
         );
  end component;
  
begin

  byte0 : sr64_8a
    port map(
            E_N => E_N (0)            ,
            W_N => W_N                ,
            DAT => DAT (31 downto 24) ,
            ADR => ADR                ,
            VDD => VDD                ,
            VSS => VSS
         );

  byte1 : sr64_8a
    port map(
            E_N => E_N (1)            ,
            W_N => W_N                ,
            DAT => DAT (23 downto 16) ,
            ADR => ADR                ,
            VDD => VDD                ,
            VSS => VSS
         );

  byte2 : sr64_8a
    port map(
            E_N => E_N (2)            ,
            W_N => W_N                ,
            DAT => DAT (15 downto  8) ,
            ADR => ADR                ,
            VDD => VDD                ,
            VSS => VSS
         );

  byte3 : sr64_8a
    port map(
            E_N => E_N (3)            ,
            W_N => W_N                ,
            DAT => DAT ( 7 downto  0) ,
            ADR => ADR                ,
            VDD => VDD                ,
            VSS => VSS
         );

end ;