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

Subversion Repositories System09

[/] [System09/] [trunk/] [rtl/] [Spartan3/] [sys09s3s_b16.vhd] - Blame information for rev 159

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

Line No. Rev Author Line
1 118 dilbert57
--===========================================================================--
2
--                                                                           --
3
--  Synthesizable Sys09_bug RAM using 2 x Xilinx RAMB16_S9 Block RAM         --
4
--                                                                           --
5
--===========================================================================--
6
--
7
--  File name      : sys09s3s_b16.vhd
8
--
9
--  Entity name    : sys09bug_f800
10
--
11
--  Purpose        : Implements 2KByte Sys09_bug ROM  
12
--                   for the 200K gate Digilent spartan 3 starter board
13
--
14
--  Dependencies   : ieee.std_logic_1164
15
--                   ieee.std_logic_arith
16
--                   unisim.vcomponents
17
--
18
--  Uses           : RAMB16_S9
19
--
20
--  Author         : John E. Kent
21
--
22
--  Email          : dilbert57@opencores.org      
23
--
24
--  Web            : http://opencores.org/project,system09
25
--
26
--  Description    : Block RAM instatiation
27
--
28
--  Copyright (C) 2006 - 2010 John Kent
29
--
30
--  This program is free software: you can redistribute it and/or modify
31
--  it under the terms of the GNU General Public License as published by
32
--  the Free Software Foundation, either version 3 of the License, or
33
--  (at your option) any later version.
34
--
35
--  This program is distributed in the hope that it will be useful,
36
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
37
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38
--  GNU General Public License for more details.
39
--
40
--  You should have received a copy of the GNU General Public License
41
--  along with this program.  If not, see <http://www.gnu.org/licenses/>.
42
--
43
--===========================================================================--
44
--                                                                           --
45
--                              Revision  History                            --
46
--                                                                           --
47
--===========================================================================--
48
--
49
-- Version Date        Author     Changes
50
--
51
-- 1.1     2006-12-22  John Kent  Made into 4K ROM/RAM.
52
-- 1.2     2010-06-17  John Kent  Added GPL and header
53
--                                Renamed data input and output signals
54
--                                Removed ROM at $F000 to $F7FF
55
-- 
56
 
57
library IEEE;
58
   use IEEE.std_logic_1164.all;
59
   use IEEE.std_logic_arith.all;
60
library unisim;
61
   use unisim.vcomponents.all;
62
 
63
entity SYS09BUG_F800 is
64
   port(
65
      clk      : in  std_logic;
66
      rst      : in  std_logic;
67
      cs       : in  std_logic;
68
      addr     : in  std_logic_vector(10 downto 0);
69
      rw       : in  std_logic;
70
      data_in  : in  std_logic_vector(7 downto 0);
71
      data_out : out std_logic_vector(7 downto 0)
72
   );
73
end SYS09BUG_F800;
74
 
75
architecture rtl of SYS09BUG_F800 is
76
 
77
   signal dp : std_logic_vector(0 downto 0);
78
   signal we : std_logic;
79
 
80
component RAMB16_S9
81
generic (
82
   INIT_00, INIT_01, INIT_02, INIT_03,
83
   INIT_04, INIT_05, INIT_06, INIT_07,
84
   INIT_08, INIT_09, INIT_0A, INIT_0B,
85
   INIT_0C, INIT_0D, INIT_0E, INIT_0F,
86
   INIT_10, INIT_11, INIT_12, INIT_13,
87
   INIT_14, INIT_15, INIT_16, INIT_17,
88
   INIT_18, INIT_19, INIT_1A, INIT_1B,
89
   INIT_1C, INIT_1D, INIT_1E, INIT_1F,
90
   INIT_20, INIT_21, INIT_22, INIT_23,
91
   INIT_24, INIT_25, INIT_26, INIT_27,
92
   INIT_28, INIT_29, INIT_2A, INIT_2B,
93
   INIT_2C, INIT_2D, INIT_2E, INIT_2F,
94
   INIT_30, INIT_31, INIT_32, INIT_33,
95
   INIT_34, INIT_35, INIT_36, INIT_37,
96
   INIT_38, INIT_39, INIT_3A, INIT_3B,
97
   INIT_3C, INIT_3D, INIT_3E, INIT_3F : bit_vector (255 downto 0)
98
   );
99
 
100
   port (
101
      clk  : in  std_logic;
102
      ssr  : in  std_logic;
103
      en   : in  std_logic;
104
      we   : in  std_logic;
105
      addr : in  std_logic_vector(10 downto 0);
106
      di   : in  std_logic_vector( 7 downto 0);
107
      dip  : in  std_logic_vector( 0 downto 0);
108
      do   : out std_logic_vector( 7 downto 0);
109
      dop  : out std_logic_vector( 0 downto 0)
110
      );
111
     end component RAMB16_S9;
112
 
113
   begin
114
 
115
   ROM00: RAMB16_S9
116
      generic map (
117
         INIT_00 => x"A780A610C6C0DF8E1062FE8E2EFA1AFB1EFB8FFBCEFCB9FC9BFCA1FC61F814F8",
118
         INIT_01 => x"17431FE4A7D0866AAFDD8C30FB265AE26F0CC65B0117E0DFBF00E08EF9265AA0",
119
         INIT_02 => x"031796FE8E0C0417F62A5A19048B0327856D0DC64FD0DF8E47031772FE8EA304",
120
         INIT_03 => x"17408B981F5304175E86092C2081891FF1270D817F84370417B302179DFE8E2E",
121
         INIT_04 => x"20F002179FFE8EF52662FE8C02300F2780E129FE8E20C0022F60C14704174C04",
122
         INIT_05 => x"17A4A60F0417A50317211F650217A5FE8E121F2D296B03173B341FBC2094ADC0",
123
         INIT_06 => x"27A4A1A4A7390F260D8117275E81DD271881E127088111285E0317070417A503",
124
         INIT_07 => x"0B031705201F30C0DF8E321FA20217BE203F31C2202131E503173F86E8031708",
125
         INIT_08 => x"279A03170527E4AC011FF0C4201F0634F0C41000C3101F390124E1AC20340629",
126
         INIT_09 => x"265A8E03172C031780A610C69603172E0317E4AEEE0117A5FE8E103439623203",
127
         INIT_0a => x"29B70217BC20EE265A7703172E8602237E810425208180A610C6E1AE860317F5",
128
         INIT_0b => x"3984A73F86A4AFA0A709273F8184A60F271035558DFFFF8E10341A24C0DF8C1E",
129
         INIT_0c => x"4AAF0427268D1F304AAE431F39FB265A188D08C6E3DF8E104603163F86490317",
130
         INIT_0d => x"A7A0A7A0A7FF8684A7A4A604263F8184A60A24C0DF8C21AEB9FE16480217068D",
131
         INIT_0e => x"0186398D46E0B7E086408D393D3139F7265A0427A1ACA0A608C6E3DF8E1039A0",
132
         INIT_0f => x"178D47E0B7208645E0B744E0B743E0B74F42E0B701862D8D47E0B7EF8641E0B7",
133
         INIT_10 => x"E0B6F926808547E0B63B341F4AAF00C08EF42600C28C80A740E0B6218D00C08E",
134
         INIT_11 => x"54545454A6E6D0DF8E104444444462A6363439F927088547E0B639F227408547",
135
         INIT_12 => x"FCBD8435FD265A20C60434B63562E762EA62A70F8462A65858585853A6E6E4E7",
136
         INIT_13 => x"0234A80117F12631813D273981230217F92653812A0217E2DF7F6802171186E7",
137
         INIT_14 => x"E0EB02340C2904358E01170434E46AE46AE4EBE0EBE0E6103421299101172629",
138
         INIT_15 => x"0117E26F1202161386E2DF731A02173F86BA27FFC102355FEB2080A70527E46A",
139
         INIT_16 => x"2320008310062762A3E4ECF901171286E7FCBDE4AF0130492562AC4D2930344A",
140
         INIT_17 => x"1780A684EB63EB62EB68011762AE750117981F03CB2F0017E6FE8E64E720C602",
141
         INIT_18 => x"10347120028D396532B701171486C326E4AC62AF5B0117981F53F526646A6501",
142
         INIT_19 => x"8D618D394AAF0229F68DF28D910017E50016F80016A10116903569001797FE8E",
143
         INIT_1a => x"498D3944AF0229D58DD18D5E8D3946AF0229E08DDC8D728D3948AF0229EB8DE7",
144
         INIT_1b => x"8D3941A70229B18DB08D588D3942A70229BC8DBB8D6C8D3943A70229C78DC68D",
145
         INIT_1c => x"BF0016311FF48DA9FE8E39F726048180A63F011739C4A7808A0429A68DA58D5F",
146
         INIT_1d => x"8DBBFE8EE12044AED78DC1FE8EB4001643A6E18DC7FE8EF42048AEEA8DB5FE8E",
147
         INIT_1e => x"D02042A6B38DD2FE8ED92041A6BC8DCDFE8ECF204AAEC58DAFFE8ED82046AECE",
148
         INIT_1f => x"A5FE8EBF8DB88DB08DA98DA18D27FF17A5FE8E900016DEFE8EC4A6AA8DD7FE8E",
149
         INIT_20 => x"3C29088D011F42290E8DB800172D86121F4D29098DD520CE8DC78DC08D17FF17",
150
         INIT_21 => x"811D2530815B8D39E0AB04342829078D891F484848483229118D903561A71034",
151
         INIT_22 => x"3439021A39578003226681072561813937800322468112254181393080032239",
152
         INIT_23 => x"C602345120078B022F3981308B0F840235048D4444444402340235028D023510",
153
         INIT_24 => x"207F84048D0627E2DF7D00F09F6E8235F1265A3F8D438D2D860225E46880A608",
154
         INIT_25 => x"85E0DF9FA60234903501A6EE27018584A620E08E0926018584A6E0DFBE10342D",
155
         INIT_26 => x"35F6260885FA27028584A6E0DFBE1234498D2086008D8235018520E0B6052601",
156
         INIT_27 => x"0000CC30E08E39E2DFB7FF86016D84A7518684A70386E0DFBE138D903501A702",
157
         INIT_28 => x"DF7D30E08E16345986028D1B86FEDF7F01E702C6FDDFFD04E703E702A7FBDFFD",
158
         INIT_29 => x"1A815A271B81342708819635AF001784A70520098D042420810D20608D0427FE",
159
         INIT_2a => x"19C15CFBDFFC45260A810F270B8124270C81890027100D81382716817C002710",
160
         INIT_2b => x"5820212750814CFBDFB662204A2C27FBDFB66D205A34275DFBDFFC8F00167926",
161
         INIT_2c => x"39FEDF7F39FEDFB704263D81312754816E27598114273DC1FEDFF656200000CC",
162
         INIT_2d => x"1B20E12218C120C0FDDF7FFDDFF6ED224F812080FEDF7F39FDDFB70426FDDF7D",
163
         INIT_2e => x"02A7FBDFFDFCDFF64F39FEDF7FF726508102A74C84E720C6FBDFB6168D0000CC",
164
         INIT_2f => x"DFF604E75F012519C15C04E6E78D5AEA2619C15C4FF02650814CFBDFFC3903E7",
165
         INIT_30 => x"5FE4205F03E7FCDFF7082719C15CFCDFF6F42650C15C84A702E7FBDFF72086FB",
166
         INIT_31 => x"FB1953FB183DFB1531FB105EFB047FFB0369FB0274FB0139FEDFF702E7FBDFF7",
167
         INIT_32 => x"55D5F94488F958F1F853EDFB52A8F84DBCFA505EFA4CA5F847FDF8455CF94248",
168
         INIT_33 => x"2047554239305359530000000A0DFFFFFFFF94F9A7F8A7F8A7F8A7F894F992FC",
169
         INIT_34 => x"57043E040000000A0D4B04202D202052455452415453335320524F4620362E31",
170
         INIT_35 => x"3D59492020043D53552020043D43502020043D5053202004202D20043F544148",
171
         INIT_36 => x"464504203A43432020043D422020043D412020043D50442020043D5849202004",
172
         INIT_37 => x"000000000000000000000000000000000000000000000004315343565A4E4948",
173
         INIT_38 => x"300B2784AC1084AF1084EEAA558E10A0D08E84A7F086FB264A80A70F86F0FF8E",
174
         INIT_39 => x"2DA7D0DF8E10C0DFCE10FDFFB74444444443101F84EFD620ED26A0F08C00F089",
175
         INIT_3a => x"1084AF10AA558E1084EE2227A0F08C00F08930FB2A4AA66F0C862FA7F0862E6F",
176
         INIT_3b => x"2EA7D0DF8E10F186D520A5A70F88891F44444444101FD0DF8E1084EFE92684AC",
177
         INIT_3c => x"8EF32D0C814C80E7A66F0427A6E6211F4F2CE7A66F1420F92A4A0526A6E60C86",
178
         INIT_3d => x"9F6EC6DF9F6EC4DF9F6EC0DF9F6E62F816E2DFF753F9265A80A7A0A610C6F0FF",
179
         INIT_3e => x"0822CEDFBC8B300F27FFFF8CCCDFBE49584F4AAF80E64AAE431FCADF9F6EC8DF",
180
         INIT_3f => x"00FFB2FFC2FFBEFFBAFFB6FFC6FFB2FFC2DF9F6E42EE1F37F16E44AEC4EC1034"
181
      )
182
      port map (
183
         clk     => clk,
184
         ssr     => rst,
185
         en      => cs,
186
         we      => we,
187
         addr    => addr(10 downto 0),
188
         di      => data_in,
189
         dip(0)  => dp(0),
190
         do      => data_out,
191
         dop(0)  => dp(0)
192
      );
193
   rom_glue: process ( rw )
194
   begin
195
      we <= not rw;
196
   end process;
197
end architecture rtl;
198
 

powered by: WebSVN 2.1.0

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