File: romu.vbe

package info (click to toggle)
alliance 5.0-20120515-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,180 kB
  • sloc: ansic: 350,295; vhdl: 34,227; yacc: 27,122; sh: 12,416; cpp: 9,478; makefile: 7,055; lex: 3,684
file content (35 lines) | stat: -rw-r--r-- 828 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
entity romu is
  port (
    address : in  bit_vector (5 downto 0);
    e_n     : in  bit;
    data    : out mux_vector (31 downto 0) bus;
    vdd     : in bit;
    vss     : in bit);
end romu;

architecture VBE of romu is

  signal rom_out : bit_vector (31 downto 0);

begin

  write_out : block (e_n = '0')
  begin
    data <= guarded rom_out;
  end block;

  with address (5 downto 0) select
  rom_out <=
          X"3801002d" when B"000000",
          X"283e002d" when B"000001",
          X"13c00031" when B"000010",
          X"00000021" when B"000011",
          X"08100036" when B"000100",
          X"00000021" when B"000101",
          X"08100034" when B"110100",
          X"00000021" when B"110101",
          X"08100036" when B"110110",
          X"00000021" when B"110111",
          X"00000000" when others;

end;