OpenCores
URL https://opencores.org/ocsvn/system05/system05/trunk

Subversion Repositories system05

[/] [system05/] [trunk/] [rtl/] [vhdl/] [bclrrom.vhd] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dilbert57
--         FILE NAME: bclrrom.vhdl
2
--       ENTITY NAME: bclr_rom
3
-- ARCHITECTURE NAME: basic
4
--          REVISION: A
5
--
6
--       DESCRIPTION: 8 byte x 8 bit ROM 
7
--                    For Bit clear translations
8
--
9
-- Written by John Kent for the mc6805 processor
10
--
11
 
12
library ieee;
13
use ieee.std_logic_1164.all;
14
use ieee.std_logic_arith.all;
15
use ieee.std_logic_unsigned.all;
16
 
17
entity bclr_rom is
18
  port (
19
    addr   : in   std_logic_vector(2 downto 0);
20
    data   : out  std_logic_vector(7 downto 0)
21
  );
22
end entity bclr_rom;
23
 
24
architecture basic of bclr_rom is
25
  constant width   : integer := 8;
26
  constant memsize : integer := 8;
27
 
28
  type bclr_rom_array is array(0 to memsize-1) of std_logic_vector(width-1 downto 0);
29
 
30
  constant bclr_rom_data : bclr_rom_array :=
31
  ( "11111110",
32
    "11111101",
33
    "11111011",
34
    "11110111",
35
    "11101111",
36
    "11011111",
37
    "10111111",
38
    "01111111"
39
         );
40
begin
41
   data <= bclr_rom_data(conv_integer(addr));
42
end architecture basic;
43
 
44
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.