1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-03-10 12:28:26 +00:00

Midway MCR1: merge the cores, add Draw Poker

This commit is contained in:
Gyorgy Szombathelyi
2020-02-25 11:09:54 +01:00
parent d182d4aa66
commit 0679515dda
65 changed files with 657 additions and 18936 deletions

View File

@@ -1,31 +0,0 @@
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2017 Intel Corporation. All rights reserved.
# Your use of Intel Corporation's design tools, logic functions
# and other software and tools, and its AMPP partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Intel Program License
# Subscription Agreement, the Intel Quartus Prime License Agreement,
# the Intel MegaCore Function License Agreement, or other
# applicable license agreement, including, without limitation,
# that your use is for the sole purpose of programming logic
# devices manufactured by Intel and sold by Intel or its
# authorized distributors. Please refer to the applicable
# agreement for further details.
#
# -------------------------------------------------------------------------- #
#
# Quartus Prime
# Version 17.0.1 Build 598 06/07/2017 SJ Standard Edition
# Date created = 04:04:47 October 16, 2017
#
# -------------------------------------------------------------------------- #
QUARTUS_VERSION = "17.0"
DATE = "04:04:47 October 16, 2017"
# Revisions
PROJECT_REVISION = "DrawPoker"

View File

@@ -1,199 +0,0 @@
# -------------------------------------------------------------------------- #
#
# Copyright (C) 1991-2013 Altera Corporation
# Your use of Altera Corporation's design tools, logic functions
# and other software and tools, and its AMPP partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Altera Program License
# Subscription Agreement, Altera MegaCore Function License
# Agreement, or other applicable license agreement, including,
# without limitation, that your use is for the sole purpose of
# programming logic devices manufactured by Altera and sold by
# Altera or its authorized distributors. Please refer to the
# applicable agreement for further details.
#
# -------------------------------------------------------------------------- #
#
# Quartus II 64-Bit
# Version 13.1.0 Build 162 10/23/2013 SJ Web Edition
# Date created = 19:37:50 November 10, 2019
#
# -------------------------------------------------------------------------- #
#
# Notes:
#
# 1) The default values for assignments are stored in the file:
# DrawPoker_assignment_defaults.qdf
# If this file doesn't exist, see file:
# assignment_defaults.qdf
#
# 2) Altera recommends that you do not modify this file. This
# file is updated automatically by the Quartus II software
# and any changes you make may be lost or overwritten.
#
# -------------------------------------------------------------------------- #
# Project-Wide Assignments
# ========================
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name NUM_PARALLEL_PROCESSORS ALL
set_global_assignment -name LAST_QUARTUS_VERSION 13.1
set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:rtl/build_id.tcl"
# Pin & Location Assignments
# ==========================
set_location_assignment PIN_7 -to LED
set_location_assignment PIN_54 -to CLOCK_27
set_location_assignment PIN_144 -to VGA_R[5]
set_location_assignment PIN_143 -to VGA_R[4]
set_location_assignment PIN_142 -to VGA_R[3]
set_location_assignment PIN_141 -to VGA_R[2]
set_location_assignment PIN_137 -to VGA_R[1]
set_location_assignment PIN_135 -to VGA_R[0]
set_location_assignment PIN_133 -to VGA_B[5]
set_location_assignment PIN_132 -to VGA_B[4]
set_location_assignment PIN_125 -to VGA_B[3]
set_location_assignment PIN_121 -to VGA_B[2]
set_location_assignment PIN_120 -to VGA_B[1]
set_location_assignment PIN_115 -to VGA_B[0]
set_location_assignment PIN_114 -to VGA_G[5]
set_location_assignment PIN_113 -to VGA_G[4]
set_location_assignment PIN_112 -to VGA_G[3]
set_location_assignment PIN_111 -to VGA_G[2]
set_location_assignment PIN_110 -to VGA_G[1]
set_location_assignment PIN_106 -to VGA_G[0]
set_location_assignment PIN_136 -to VGA_VS
set_location_assignment PIN_119 -to VGA_HS
set_location_assignment PIN_65 -to AUDIO_L
set_location_assignment PIN_80 -to AUDIO_R
set_location_assignment PIN_105 -to SPI_DO
set_location_assignment PIN_88 -to SPI_DI
set_location_assignment PIN_126 -to SPI_SCK
set_location_assignment PIN_127 -to SPI_SS2
set_location_assignment PIN_91 -to SPI_SS3
set_location_assignment PIN_13 -to CONF_DATA0
set_location_assignment PIN_49 -to SDRAM_A[0]
set_location_assignment PIN_44 -to SDRAM_A[1]
set_location_assignment PIN_42 -to SDRAM_A[2]
set_location_assignment PIN_39 -to SDRAM_A[3]
set_location_assignment PIN_4 -to SDRAM_A[4]
set_location_assignment PIN_6 -to SDRAM_A[5]
set_location_assignment PIN_8 -to SDRAM_A[6]
set_location_assignment PIN_10 -to SDRAM_A[7]
set_location_assignment PIN_11 -to SDRAM_A[8]
set_location_assignment PIN_28 -to SDRAM_A[9]
set_location_assignment PIN_50 -to SDRAM_A[10]
set_location_assignment PIN_30 -to SDRAM_A[11]
set_location_assignment PIN_32 -to SDRAM_A[12]
set_location_assignment PIN_83 -to SDRAM_DQ[0]
set_location_assignment PIN_79 -to SDRAM_DQ[1]
set_location_assignment PIN_77 -to SDRAM_DQ[2]
set_location_assignment PIN_76 -to SDRAM_DQ[3]
set_location_assignment PIN_72 -to SDRAM_DQ[4]
set_location_assignment PIN_71 -to SDRAM_DQ[5]
set_location_assignment PIN_69 -to SDRAM_DQ[6]
set_location_assignment PIN_68 -to SDRAM_DQ[7]
set_location_assignment PIN_86 -to SDRAM_DQ[8]
set_location_assignment PIN_87 -to SDRAM_DQ[9]
set_location_assignment PIN_98 -to SDRAM_DQ[10]
set_location_assignment PIN_99 -to SDRAM_DQ[11]
set_location_assignment PIN_100 -to SDRAM_DQ[12]
set_location_assignment PIN_101 -to SDRAM_DQ[13]
set_location_assignment PIN_103 -to SDRAM_DQ[14]
set_location_assignment PIN_104 -to SDRAM_DQ[15]
set_location_assignment PIN_58 -to SDRAM_BA[0]
set_location_assignment PIN_51 -to SDRAM_BA[1]
set_location_assignment PIN_85 -to SDRAM_DQMH
set_location_assignment PIN_67 -to SDRAM_DQML
set_location_assignment PIN_60 -to SDRAM_nRAS
set_location_assignment PIN_64 -to SDRAM_nCAS
set_location_assignment PIN_66 -to SDRAM_nWE
set_location_assignment PIN_59 -to SDRAM_nCS
set_location_assignment PIN_33 -to SDRAM_CKE
set_location_assignment PIN_43 -to SDRAM_CLK
set_location_assignment PLL_1 -to "pll:pll|altpll:altpll_component"
# Classic Timing Assignments
# ==========================
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
# Analysis & Synthesis Assignments
# ================================
set_global_assignment -name FAMILY "Cyclone III"
set_global_assignment -name DEVICE_FILTER_PIN_COUNT 144
set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 8
set_global_assignment -name DEVICE_FILTER_PACKAGE TQFP
set_global_assignment -name TOP_LEVEL_ENTITY DrawPoker_MiST
# Fitter Assignments
# ==================
set_global_assignment -name DEVICE EP3C25E144C8
set_global_assignment -name ENABLE_CONFIGURATION_PINS OFF
set_global_assignment -name ENABLE_NCE_PIN OFF
set_global_assignment -name ENABLE_BOOT_SEL_PIN OFF
set_global_assignment -name CYCLONEIII_CONFIGURATION_SCHEME "PASSIVE SERIAL"
set_global_assignment -name CRC_ERROR_OPEN_DRAIN OFF
set_global_assignment -name FORCE_CONFIGURATION_VCCIO ON
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
# Assembler Assignments
# =====================
set_global_assignment -name GENERATE_RBF_FILE ON
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF
# Power Estimation Assignments
# ============================
set_global_assignment -name POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW"
set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)"
# Advanced I/O Timing Assignments
# ===============================
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall
# ----------------------------
# start ENTITY(DrawPoker_MiST)
# start DESIGN_PARTITION(Top)
# ---------------------------
# Incremental Compilation Assignments
# ===================================
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
# end DESIGN_PARTITION(Top)
# -------------------------
# end ENTITY(DrawPoker_MiST)
# --------------------------
set_global_assignment -name SYSTEMVERILOG_FILE rtl/DrawPoker_MiST.sv
set_global_assignment -name VHDL_FILE rtl/kick.vhd
set_global_assignment -name VHDL_FILE rtl/kick_sound_board.vhd
set_global_assignment -name VHDL_FILE rtl/gen_ram.vhd
set_global_assignment -name VHDL_FILE rtl/ctc_counter.vhd
set_global_assignment -name VHDL_FILE rtl/ctc_controler.vhd
set_global_assignment -name VHDL_FILE rtl/rom/midssio_82s123.vhd
set_global_assignment -name VHDL_FILE rtl/rom/draw_bg_bits_2.vhd
set_global_assignment -name VHDL_FILE rtl/rom/draw_bg_bits_1.vhd
set_global_assignment -name VHDL_FILE rtl/rom/draw_sp_bits.vhd
set_global_assignment -name VHDL_FILE rtl/YM2149_linmix_sep.vhd
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram.sv
set_global_assignment -name VHDL_FILE rtl/cmos_ram.vhd
set_global_assignment -name VHDL_FILE rtl/pll_mist.vhd
set_global_assignment -name QIP_FILE ../../../common/CPU/T80/T80.qip
set_global_assignment -name QIP_FILE ../../../common/mist/mist.qip
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top

View File

@@ -1,326 +0,0 @@
---------------------------------------------------------------------------------
--
-- Arcade: Draw Poker port to MiST by Gehstock
-- x November 2019
--
-- VGA Only
Controls : Gamble In/Out - Arrow Up/Down
Hold Card 1-5 - 1-5
Deal - Space
Stand - left ALT
Cancel - left Ctrl
Insert Coin - ESC
---------------------------------------------------------------------------------
-- DE10_lite Top level for Kick (Midway MCR) by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
-- Use kick_de10_lite.sdc to compile (Timequest constraints)
-- /!\
-- Don't forget to set device configuration mode with memory initialization
-- (Assignments/Device/Pin options/Configuration mode)
---------------------------------------------------------------------------------
--
-- Main features :
-- PS2 keyboard input @gpio pins 35/34 (beware voltage translation/protection)
-- Audio pwm output @gpio pins 1/3 (beware voltage translation/protection)
--
-- Video : 31Khz/60Hz
-- Cocktail mode : NO
-- Sound : OK
--
-- For hardware schematic see my other project : NES
--
-- Uses 1 pll 40MHz from 50MHz to make 20MHz and 8Mhz
--
-- Board key :
-- 0 : reset game
--
-- Keyboard players inputs :
--
-- F3 : Add coin
-- F2 : Start 2 players
-- F1 : Start 1 player
-- SPACE : move faster
-- RIGHT arrow : move right
-- LEFT arrow : move left
-- UP arrow : toggle service mode ON/OFF
-- DOWN arrow : kick
--
-- Other details : see kick.vhd
-- For USB inputs and SGT5000 audio output see my other project: xevious_de10_lite
---------------------------------------------------------------------------------
-- Kick by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- gen_ram.vhd & io_ps2_keyboard
--------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
---------------------------------------------------------------------------------
-- T80/T80se - Version : 304
-----------------------------
-- Z80 compatible microprocessor core
-- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
---------------------------------------------------------------------------------
-- YM2149 (AY-3-8910)
-- Copyright (c) MikeJ - Jan 2005
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
-- Features :
-- Video : 31Khz/60Hz
-- Coctail mode : NO
-- Sound : OK
-- Use with MAME roms from kick.zip and midssio.zip
--
-- Use make_kick_proms.bat to build vhd file from binaries
-- (CRC list included)
-- Kick/Kickman (Midway mcr) Hardware caracteristics :
--
-- VIDEO : 1xZ80@3MHz CPU accessing its program rom, working ram,
-- sprite data ram, I/O, sound board register and trigger.
-- 24Kx8bits program rom
--
-- One char/background tile map 30x32
-- 2x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- 128 sprites, up to ~15/line, 32x32 with flip H/V
-- 4x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- Working ram : 2Kx8bits
-- video (char/background) ram : 1Kx8bits
-- Sprites ram : 512x8bits + 512x8bits cache buffer
-- Sprites line buffer rams : 1 scan line delay flip/flop 2x256x8bits
--
-- SOUND : see Kick_sound_board.vhd
---------------------------------------------------------------------------------
-- Schematics remarks :
--
-- Display is 512x480 pixels (video 635x525 lines @ 20MHz )
-- 635/20e6 = 31.75us per line (31.750KHz)
-- 31.75*525 = 16.67ms per frame (59.99Hz)
--
-- Original video is interlaced 240 display lines per 1/2 frame
--
-- H0 and V0 are not use for background => each bg tile is 16x16 pixel but
-- background graphics is 2x2 pixels defintion.
--
-- Sprite are 32x32 pixels with 1x1 pixel definition, 16 lines for odd 1/2
-- frame and 16 lines for even 2/2 frame thanks to V8 on sprite rom ROMAD2
-- (look at 74ls86 G1 pin 9 on video genration board schematics)
--
-- *H and V stand for Horizontal en Vertical counter (Hcnt, Vcnt in VHDL code)
--
-- /!\ For VHDL port interlaced video mode is replaced with progressive video
-- mode.
--
-- Sprite data are stored first by cpu into a 'cache' buffer (staging ram at
-- K6/L6) this buffer is read and write for cpu. After visible display, cache
-- buffer (512x8) is moved to actual sprite ram buffer (512x8). Actual sprite
-- buffer is access by transfer address counter during 2 scanlines after
-- visible area and only by sprite machine during visible area.
--
-- Thus cpu can read and update sprites position during entire frame except
-- during 2 lines.
--
-- Sprite data are organised (as seen by cpu F000-F1FF) into 128 * 4bytes.
-- bytes #1 : Vertical position
-- bytes #2 : code and attribute
-- bytes #3 : Horizontal position
-- bytes #4 : not used
--
-- Athough 1x1 pixel defintion sprite position horizontal/vertical is made on
-- on a 2x2 grid (due to only 8bits for position data)
--
-- Z80-CTC : interruption ar managed by CTC chip. ONly channel 3 is trigered
-- by hardware signal line 493. channel 0 to 2 are in timer mode. Schematic
-- show zc/to of channel 0 connected to clk/trg of channel 1. This seems to be
-- unsued for that (Kick) game.
--
-- CPU programs 4 interuptions : (Vector D0)
--
-- IT ch 3 : triggered by line 493 : once per frame : start @00D8
-- set timer ch0 to launch interrupt around line 20
-- set timer ch1 to launch interrupt around line 240
--
-- IT ch 0 : triggered by timer ch 0 : once per frame : start @017E
-- stop timer 0
--
-- IT ch 1 : triggered by timer ch 1 : once per frame : start @0192
-- stop timer 1
--
-- IT ch 2 : trigged by timer ch 2 : once every ~105 scanlines : start @04E1
-- read angle decoder
--
-- Z80-CTC VHDL port keep separated interrupt controler and each counter so
-- one can use them on its own. Priority daisy-chain is not done (not used in
-- that game). clock polarity selection is not done since it has no meaning
-- with digital clock/enable (e.g cpu_ena signal) method.
--
-- Angle (spin) decoder : Original design is a simple Up/Down 4 bits counter.
-- Replacement is proposed in kick_de10_lite.vhd as a 10bits counter allowing
-- more stable speed. It make use of CTC zc_to channel 2 signal to avoid
-- aliasing problems. Despite speed selection (faster/slower) is available
-- from keyboard key it hardly simulate a real spinner.
--
-- Ressource : input clock 40MHz is chosen to allow easy making of 20MHz for
-- pixel clock and 8MHz signal for amplitude modulation circuit of ssio board
--
--
-- TODO :
-- Working ram could be initialized to set initial difficulty level and
-- initial bases (live) number. Otherwise one can set it up by using service
-- menu at each power up.
--
+----------------------------------------------------------------------------------+
; Fitter Summary ;
+------------------------------------+---------------------------------------------+
; Fitter Status ; Successful - Sat Nov 02 22:31:20 2019 ;
; Quartus Prime Version ; 18.1.0 Build 625 09/12/2018 SJ Lite Edition ;
; Revision Name ; kick_de10_lite ;
; Top-level Entity Name ; kick_de10_lite ;
; Family ; MAX 10 ;
; Device ; 10M50DAF484C6GES ;
; Timing Models ; Preliminary ;
; Total logic elements ; 7,125 / 49,760 ( 14 % ) ;
; Total combinational functions ; 6,705 / 49,760 ( 13 % ) ;
; Dedicated logic registers ; 2,068 / 49,760 ( 4 % ) ;
; Total registers ; 2068 ;
; Total pins ; 105 / 360 ( 29 % ) ;
; Total virtual pins ; 0 ;
; Total memory bits ; 700,416 / 1,677,312 ( 42 % ) ;
; Embedded Multiplier 9-bit elements ; 0 / 288 ( 0 % ) ;
; Total PLLs ; 1 / 4 ( 25 % ) ;
; UFM blocks ; 0 / 1 ( 0 % ) ;
; ADC blocks ; 0 / 2 ( 0 % ) ;
+------------------------------------+---------------------------------------------+
---------------
VHDL File list
---------------
de10_lite/max10_pll_40M.vhd Pll 40MHz from 50MHz altera mf
rtl_dar/kick_de10_lite.vhd Top level for de10_lite board
rtl_dar/kick.vhd Main CPU and video boards logic
rtl_dar/kick_sound_board.vhd Main sound board logic
rtl_dar/ctc_controler.vhd Z80-CTC controler
rtl_dar/ctc_counter.vhd Z80-CTC counter
rtl_mikej/YM2149_linmix.vhd Copyright (c) MikeJ - Jan 2005
rtl_T80_304/T80se.vhdT80 Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
rtl_T80_304/T80_Reg.vhd
rtl_T80_304/T80_Pack.vhd
rtl_T80_304/T80_MCode.vhd
rtl_T80_304/T80_ALU.vhd
rtl_T80_304/T80.vhd
rtl_dar/kbd_joystick.vhd Keyboard key to player/coin input
rtl_dar/io_ps2_keyboard.vhd Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
rtl_dar/gen_ram.vhd Generic RAM (Peter Wendrich + DAR Modification)
rtl_dar/decodeur_7_seg.vhd 7 segments display decoder
rtl_dar/proms/kick_cpu.vhd CPU board PROMS
rtl_dar/proms/kick_bg_bits_2.vhd
rtl_dar/proms/kick_bg_bits_1.vhd
rtl_dar/proms/kick_sp_bits_4.vhd Video board PROMS
rtl_dar/proms/kick_sp_bits_3.vhd
rtl_dar/proms/kick_sp_bits_2.vhd
rtl_dar/proms/kick_sp_bits_1.vhd
rtl_dar/proms/kick_sound_cpu.vhd Sound board PROMS
rtl_dar/proms/midssio_82s123.vhd
----------------------
Quartus project files
----------------------
de10_lite/kick_de10_lite.sdc Timequest constraints file
de10_lite/kick_de10_lite.qsf de10_lite settings (files,pins...)
de10_lite/kick_de10_lite.qpf de10_lite project
-----------------------------
Required ROMs (Not included)
-----------------------------
You need the following 17 ROMs binary files from kick.zip and midssio.zip(MAME)
1200a-v2.b3 CRC 65924917
1300b-v2.b4 CRC 27929f52
1400c-v2.b5 CRC 69107ce6
1500d-v2.d4 CRC 04a23aa1
1600e-v2.d5 CRC 1d2834c0
1700f-v2.d6 CRC ddf84ce1
1800g-v2.g4 CRC b4d120f3
1900h-v2.g5 CRC c3ba4893
2600a-v2.1e CRC 2c5d6b55
2700b-v2.1d CRC 565ea97d
2800c-v2.1b CRC f3be56a1
2900d-v2.1a CRC 77da795e
4200-a.a7 CRC 9e35c02e
4300-b.a8 CRC ca2b7c28
4400-c.a9 CRC d1901551
4500-d.a10 CRC d36ddcdc
midssio_82s123.12d CRC e1281ee9
------
Tools
------
You need to build vhdl files from the binary file :
- Unzip the roms file in the tools/kick_unzip directory
- Double click (execute) the script tools/make_kick_proms.bat to get the following 9 files
kick_cpu.vhd
kick_bg_bits_2.vhd
kick_bg_bits_1.vhd
kick_sp_bits_4.vhd
kick_sp_bits_3.vhd
kick_sp_bits_2.vhd
kick_sp_bits_1.vhd
kick_sound_cpu.vhd
midssio_82s123.vhd
*DO NOT REDISTRIBUTE THESE FILES*
VHDL files are needed to compile and include roms into the project
The script make_kick_proms.bat uses make_vhdl_prom executables delivered both in linux and windows version. The script itself is delivered only in windows version (.bat) but should be easily ported to linux.
Source code of make_vhdl_prom.c is also delivered.
---------------------------------
Compiling for de10_lite
---------------------------------
You can build the project with ROM image embeded in the sof file.
*DO NOT REDISTRIBUTE THESE FILES*
3 steps
- put the VHDL ROM files (.vhd) into the rtl_dar/proms directory
- build kick_de10_lite
- program kick_de10_lite.sof
------------------------
------------------------
End of file
------------------------

View File

@@ -1,297 +0,0 @@
//============================================================================
// Arcade: Draw Poker by DarFPGA
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//============================================================================
module DrawPoker_MiST(
output LED,
output [5:0] VGA_R,
output [5:0] VGA_G,
output [5:0] VGA_B,
output VGA_HS,
output VGA_VS,
output AUDIO_L,
output AUDIO_R,
input SPI_SCK,
output SPI_DO,
input SPI_DI,
input SPI_SS2,
input SPI_SS3,
input CONF_DATA0,
input CLOCK_27,
output [12:0] SDRAM_A,
inout [15:0] SDRAM_DQ,
output SDRAM_DQML,
output SDRAM_DQMH,
output SDRAM_nWE,
output SDRAM_nCAS,
output SDRAM_nRAS,
output SDRAM_nCS,
output [1:0] SDRAM_BA,
output SDRAM_CLK,
output SDRAM_CKE
);
`include "rtl/build_id.v"
localparam CONF_STR = {
"DPOKER;;",
"O34,Scanlines,Off,25%,50%,75%;",
"O5,Blend,Off,On;",
"O6,BG Color ,Green,Blue;",
"T0,Reset;",
"V,v1.0.",`BUILD_DATE
};
assign LED = ~ioctl_downl;
assign SDRAM_CLK = clk_sys;
assign SDRAM_CKE = 1;
wire clk_sys;
wire pll_locked;
pll_mist pll(
.inclk0(CLOCK_27),
.areset(0),
.c0(clk_sys),
.locked(pll_locked)
);
wire [31:0] status;
wire [1:0] buttons;
wire [1:0] switches;
wire [7:0] joystick_0;
wire [7:0] joystick_1;
wire scandoublerD;
wire ypbpr;
wire [15:0] audio_l, audio_r;
wire hs, vs, cs;
wire blankn;
wire [3:0] g, r, b;
wire [14:0] rom_addr;
wire [15:0] rom_do;
wire rom_rd;
wire [13:0] snd_addr;
wire [15:0] snd_do;
wire snd_rd;
wire ioctl_downl;
wire [7:0] ioctl_index;
wire ioctl_wr;
wire [24:0] ioctl_addr;
wire [7:0] ioctl_dout;
data_io data_io(
.clk_sys ( clk_sys ),
.SPI_SCK ( SPI_SCK ),
.SPI_SS2 ( SPI_SS2 ),
.SPI_DI ( SPI_DI ),
.ioctl_download( ioctl_downl ),
.ioctl_index ( ioctl_index ),
.ioctl_wr ( ioctl_wr ),
.ioctl_addr ( ioctl_addr ),
.ioctl_dout ( ioctl_dout )
);
reg port1_req, port2_req;
sdram sdram(
.*,
.init_n ( pll_locked ),
.clk ( clk_sys ),
// port1 used for main CPU
.port1_req ( port1_req ),
.port1_ack ( ),
.port1_a ( ioctl_addr[23:1] ),
.port1_ds ( {ioctl_addr[0], ~ioctl_addr[0]} ),
.port1_we ( ioctl_downl ),
.port1_d ( {ioctl_dout, ioctl_dout} ),
.port1_q ( ),
.cpu1_addr ( ioctl_downl ? 15'h7fff : {1'b0, rom_addr[14:1]} ),
.cpu1_q ( rom_do ),
// port2 for sound board
.port2_req ( port2_req ),
.port2_ack ( ),
.port2_a ( ioctl_addr[23:1] - 16'h4000 ),
.port2_ds ( {ioctl_addr[0], ~ioctl_addr[0]} ),
.port2_we ( ioctl_downl ),
.port2_d ( {ioctl_dout, ioctl_dout} ),
.port2_q ( ),
.snd_addr ( ioctl_downl ? 15'h7fff : {2'b00, snd_addr[13:1]} ),
.snd_q ( snd_do )
);
always @(posedge clk_sys) begin
reg ioctl_wr_last = 0;
ioctl_wr_last <= ioctl_wr;
if (ioctl_downl) begin
if (~ioctl_wr_last && ioctl_wr) begin
port1_req <= ~port1_req;
port2_req <= ~port2_req;
end
end
end
reg reset = 1;
reg rom_loaded = 0;
always @(posedge clk_sys) begin
reg ioctl_downlD;
ioctl_downlD <= ioctl_downl;
if (ioctl_downlD & ~ioctl_downl) rom_loaded <= 1;
reset <= status[0] | buttons[1] | ~rom_loaded;
end
kick kick(
.clock_40(clk_sys),
.reset(reset),
.video_r(r),
.video_g(g),
.video_b(b),
.video_blankn(blankn),
.video_hs(hs),
.video_vs(vs),
.video_csync(cs),
.tv15Khz_mode(scandoublerD),
.separate_audio(1'b0),
.audio_out_l(audio_l),
.audio_out_r(audio_r),
.show_lamps(1),
.bgcolor(status[6]),
.STAND(btn_stand),
.CANCEL(btn_cancel),
.DEAL(btn_deal),
.HOLD5(btn_hold5),
.HOLD4(btn_hold4),
.HOLD3(btn_hold3),
.HOLD2(btn_hold2),
.HOLD1(btn_hold1),
.COIN1(btn_coin),
.COIN2(1'b0),
.GAMBLE_IN(btn_gamble_in),
.GAMBLE_OUT(btn_gamble_out),
.cpu_rom_addr ( rom_addr ),
.cpu_rom_do ( rom_addr[0] ? rom_do[15:8] : rom_do[7:0] ),
.snd_rom_addr ( snd_addr ),
.snd_rom_do ( snd_addr[0] ? snd_do[15:8] : snd_do[7:0] )
);
wire vs_out;
wire hs_out;
assign VGA_VS = scandoublerD | vs_out;
assign VGA_HS = scandoublerD ? cs : hs_out;
mist_video #(.COLOR_DEPTH(4), .SD_HCNT_WIDTH(10)) mist_video(
.clk_sys ( clk_sys ),
.SPI_SCK ( SPI_SCK ),
.SPI_SS3 ( SPI_SS3 ),
.SPI_DI ( SPI_DI ),
.R ( blankn ? r : 0 ),
.G ( blankn ? g : 0 ),
.B ( blankn ? b : 0 ),
.HSync ( hs ),
.VSync ( vs ),
.VGA_R ( VGA_R ),
.VGA_G ( VGA_G ),
.VGA_B ( VGA_B ),
.VGA_VS ( vs_out ),
.VGA_HS ( hs_out ),
.ce_divider ( 1'b1 ),
.blend ( status[5] ),
.scandoubler_disable( 1'b1 ),
.no_csync ( 1'b1 ),
.scanlines ( status[4:3] ),
.ypbpr ( ypbpr )
);
user_io #(
.STRLEN(($size(CONF_STR)>>3)))
user_io(
.clk_sys (clk_sys ),
.conf_str (CONF_STR ),
.SPI_CLK (SPI_SCK ),
.SPI_SS_IO (CONF_DATA0 ),
.SPI_MISO (SPI_DO ),
.SPI_MOSI (SPI_DI ),
.buttons (buttons ),
.switches (switches ),
.scandoubler_disable (scandoublerD ),
.ypbpr (ypbpr ),
.key_strobe (key_strobe ),
.key_pressed (key_pressed ),
.key_code (key_code ),
.joystick_0 (joystick_0 ),
.joystick_1 (joystick_1 ),
.status (status )
);
dac #(
.C_bits(16))
dac_l(
.clk_i(clk_sys),
.res_n_i(1),
.dac_i(audio_l),
.dac_o(AUDIO_L)
);
dac #(
.C_bits(16))
dac_r(
.clk_i(clk_sys),
.res_n_i(1),
.dac_i(audio_r),
.dac_o(AUDIO_R)
);
reg btn_gamble_in = 0;
reg btn_gamble_out = 0;
reg btn_stand = 0;
reg btn_cancel = 0;
reg btn_deal = 0;
reg btn_hold1 = 0;
reg btn_hold2 = 0;
reg btn_hold3 = 0;
reg btn_hold4 = 0;
reg btn_hold5 = 0;
reg btn_coin = 0;
wire key_pressed;
wire [7:0] key_code;
wire key_strobe;
always @(posedge clk_sys) begin
if(key_strobe) begin
case(key_code)
'h76: btn_coin <= key_pressed; // ESC
'h11: btn_stand <= key_pressed; // left ALT
'h14: btn_cancel <= key_pressed; // left ctrl
'h29: btn_deal <= key_pressed; // Space
'h2E: btn_hold5 <= key_pressed; // 5
'h25: btn_hold4 <= key_pressed; // 4
'h26: btn_hold3 <= key_pressed; // 3
'h1E: btn_hold2 <= key_pressed; // 2
'h16: btn_hold1 <= key_pressed; // 1
'h75: btn_gamble_in <= key_pressed; // Up
'h72: btn_gamble_out <= key_pressed; // Down
endcase
end
end
endmodule

View File

@@ -1,106 +0,0 @@
---------------------------------------------------------------------------------
-- Z80-CTC controler by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;
entity ctc_controler is
port(
clock : in std_logic;
clock_ena : in std_logic;
reset : in std_logic;
d_in : in std_logic_vector( 7 downto 0);
load_data : in std_logic;
int_ack : in std_logic;
int_pulse_0 : in std_logic;
int_pulse_1 : in std_logic;
int_pulse_2 : in std_logic;
int_pulse_3 : in std_logic;
d_out : out std_logic_vector( 7 downto 0);
int_n : out std_logic
);
end ctc_controler;
architecture struct of ctc_controler is
signal int_vector : std_logic_vector(4 downto 0);
signal wait_for_time_constant : std_logic;
signal load_data_r : std_logic; -- make sure load_data toggles to get one new data
signal int_reg_0 : std_logic;
signal int_reg_1 : std_logic;
signal int_reg_2 : std_logic;
signal int_reg_3 : std_logic;
signal int_ack_r : std_logic;
begin
int_n <= '0' when (int_reg_0 or int_reg_1 or int_reg_2 or int_reg_3) = '1' else '1';
d_out <= int_vector & "000" when int_reg_0 = '1' else
int_vector & "010" when int_reg_1 = '1' else
int_vector & "100" when int_reg_2 = '1' else
int_vector & "110" when int_reg_3 = '1' else (others => '0');
process (reset, clock)
begin
if reset = '1' then -- hardware and software reset
wait_for_time_constant <= '0';
int_reg_0 <= '0';
int_reg_1 <= '0';
int_reg_2 <= '0';
int_reg_3 <= '0';
load_data_r <= load_data;
int_vector <= (others => '0');
else
if rising_edge(clock) then
if clock_ena = '1' then
load_data_r <= load_data;
int_ack_r <= int_ack;
if load_data = '1' and load_data_r = '0' then
if wait_for_time_constant = '1' then
wait_for_time_constant <= '0';
else
if d_in(0) = '1' then -- check if its a control world
wait_for_time_constant <= d_in(2);
-- if d_in(1) = '1' then -- software reset
-- wait_for_time_constant <= '0';
-- end if;
else -- its an interrupt vector
int_vector <= d_in(7 downto 3);
end if;
end if;
end if;
if int_pulse_0 = '1' then int_reg_0 <= '1'; end if;
if int_pulse_1 = '1' then int_reg_1 <= '1'; end if;
if int_pulse_2 = '1' then int_reg_2 <= '1'; end if;
if int_pulse_3 = '1' then int_reg_3 <= '1'; end if;
if int_ack_r = '1' and int_ack = '0' then
if int_reg_0 = '1' then int_reg_0 <= '0';
elsif int_reg_1 = '1' then int_reg_1 <= '0';
elsif int_reg_2 = '1' then int_reg_2 <= '0';
elsif int_reg_3 = '1' then int_reg_3 <= '0'; end if;
end if;
end if;
end if;
end if;
end process;
end struct;

View File

@@ -1,152 +0,0 @@
---------------------------------------------------------------------------------
-- Z80-CTC counter by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;
entity ctc_counter is
port(
clock : in std_logic;
clock_ena : in std_logic;
reset : in std_logic;
d_in : in std_logic_vector( 7 downto 0);
load_data : in std_logic;
clk_trg : in std_logic;
d_out : out std_logic_vector(7 downto 0);
zc_to : out std_logic;
int_pulse : out std_logic
);
end ctc_counter;
architecture struct of ctc_counter is
signal control_word : std_logic_vector(7 downto 0);
signal wait_for_time_constant : std_logic;
signal time_constant_loaded : std_logic;
signal restart_on_next_clock : std_logic;
signal restart_on_next_trigger : std_logic;
signal prescale_max : std_logic_vector(7 downto 0);
signal prescale_in : std_logic_vector(7 downto 0) := (others => '0');
signal count_max : std_logic_vector(8 downto 0);
signal count_in : std_logic_vector(8 downto 0) := (others => '0');
signal zc_to_in : std_logic;
signal clk_trg_r : std_logic;
signal trigger : std_logic;
signal count_ena : std_logic;
signal load_data_r : std_logic; -- make sure load_data toggles to get one new data
begin
prescale_max <=
(others => '0') when control_word(6) = '1' else -- counter mode (prescale max = 0)
X"0F" when control_word(6 downto 5) = "00" else -- timer mode prescale 16
X"FF"; -- timer mode prescale 256
trigger <=
'1' when (clk_trg = '0' and clk_trg_r = '1' and control_word(4) = '0') or -- falling edge
(clk_trg = '1' and clk_trg_r = '0' and control_word(4) = '1') else '0'; -- rising edge
d_out <= count_in(7 downto 0);
zc_to <= zc_to_in;
int_pulse <= zc_to_in when control_word(7) = '1' else '0';
process (reset, clock)
begin
if reset = '1' then -- hardware reset
count_ena <= '0';
wait_for_time_constant <= '0';
time_constant_loaded <= '0';
restart_on_next_clock <= '0';
restart_on_next_trigger <= '0';
count_in <= (others=> '0');
zc_to_in <= '0';
clk_trg_r <= clk_trg;
else
if rising_edge(clock) then
if clock_ena = '1' then
clk_trg_r <= clk_trg;
load_data_r <= load_data;
if (restart_on_next_trigger = '1' and trigger = '1') or (restart_on_next_clock = '1') then
restart_on_next_clock <= '0';
restart_on_next_trigger <= '0';
count_ena <= '1';
count_in <= count_max;
prescale_in <= prescale_max;
end if;
if load_data = '1' and load_data_r = '0' then
if wait_for_time_constant = '1' then
wait_for_time_constant <= '0';
time_constant_loaded <= '1';
if d_in = X"00" then
count_max <= '1'&X"00";
else
count_max <= '0'&d_in;
end if;
if control_word(6) = '0' and count_ena = '0' then -- in timer mode, if count was stooped
if control_word(3) = '0' then -- auto start when time_constant loaded
restart_on_next_clock <= '1';
else -- wait for trigger to start
restart_on_next_trigger <= '1';
end if;
end if;
else -- not waiting for time constant
if d_in(0) = '1' then -- check if its a control world
control_word <= d_in;
wait_for_time_constant <= d_in(2);
restart_on_next_clock <= '0';
restart_on_next_trigger <= '0';
if d_in(1) = '1' then -- software reset
count_ena <= '0';
time_constant_loaded <= '0';
zc_to_in <= '0';
-- zc_to_in_r <= '0';
clk_trg_r <= clk_trg;
end if;
end if;
end if;
end if; -- end load data
-- counter
zc_to_in <= '0';
if ((control_word(6) = '1' and trigger = '1' ) or
(control_word(6) = '0' and count_ena = '1') ) and time_constant_loaded = '1' then
if prescale_in = 0 then
prescale_in <= '0'&prescale_max(7 downto 1); -- test divide by 2 !
if count_in = 0 then
zc_to_in <= '1';
count_in <= count_max;
else
count_in <= count_in - '1';
end if;
else
prescale_in <= prescale_in - '1';
end if;
end if;
end if;
end if;
end if;
end process;
end struct;

File diff suppressed because it is too large Load Diff

View File

@@ -1,547 +0,0 @@
---------------------------------------------------------------------------------
-- Kick_sound_board by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- gen_ram.vhd & io_ps2_keyboard
--------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
---------------------------------------------------------------------------------
-- T80/T80se - Version : 304
-----------------------------
-- Z80 compatible microprocessor core
-- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
---------------------------------------------------------------------------------
-- YM2149 (AY-3-8910)
-- Copyright (c) MikeJ - Jan 2005
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
--
-- SOUND : 1xZ80 @ 2.0MHz CPU accessing its program rom, working ram, 2x-AY3-8910
-- 8Kx8bits program rom
-- 1Kx8bits working ram
--
-- 1xAY-3-8910
-- 3 sound channels
--
-- 1xAY-3-8910
-- 3 sound channels
--
-- 6 sound modulation (required 8MHz signal => 40MHz/5)
-- 2 global volume control (not activated - not sure it was used for kick )
--
-- I/O :
-- 4x8bits command registers from main cpu board (IRAM)
-- 1x8bits status registers to main cpu board (STAT)
-- 5x8bits input buffers to main cpu board (IP0-IP5)
-- 2x8bits output registers from main cpu board (OP0/OP4)
--
---------------------------------------------------------------------------------
-- Schematics remarks :
-- Not sure global volume are used => both deactivated
-- Not sure if global channels are mixed together or not => allow for
-- external control mixed/separated
---------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;
entity kick_sound_board is
port(
clock_40 : in std_logic;
reset : in std_logic;
main_cpu_addr : in std_logic_vector(7 downto 0);
ssio_iowe : in std_logic;
ssio_di : in std_logic_vector(7 downto 0);
ssio_do : out std_logic_vector(7 downto 0);
input_0 : in std_logic_vector(7 downto 0);
input_1 : in std_logic_vector(7 downto 0);
input_2 : in std_logic_vector(7 downto 0);
input_3 : in std_logic_vector(7 downto 0);
input_4 : in std_logic_vector(7 downto 0);
separate_audio : in std_logic;
cpu_rom_addr : out std_logic_vector(13 downto 0);
cpu_rom_do : in std_logic_vector(7 downto 0);
cpu_rom_rd : out std_logic;
audio_out_l : out std_logic_vector(15 downto 0);
audio_out_r : out std_logic_vector(15 downto 0);
dbg_cpu_addr : out std_logic_vector(15 downto 0)
);
end kick_sound_board;
architecture struct of kick_sound_board is
signal reset_n : std_logic;
signal clock_snd : std_logic;
signal clock_sndn: std_logic;
signal clock_cnt1 : std_logic_vector(4 downto 0) := "00000";
signal cpu_ena : std_logic;
signal ena_4Mhz : std_logic;
signal clk_8Mhz : std_logic;
signal cpu_addr : std_logic_vector(15 downto 0);
signal cpu_di : std_logic_vector( 7 downto 0);
signal cpu_do : std_logic_vector( 7 downto 0);
signal cpu_wr_n : std_logic;
signal cpu_rd_n : std_logic;
signal cpu_mreq_n : std_logic;
signal cpu_ioreq_n : std_logic;
signal cpu_irq_n : std_logic;
signal cpu_m1_n : std_logic;
signal wram_we : std_logic;
signal wram_do : std_logic_vector( 7 downto 0);
signal iram_0_do : std_logic_vector( 7 downto 0);
signal iram_1_do : std_logic_vector( 7 downto 0);
signal iram_2_do : std_logic_vector( 7 downto 0);
signal iram_3_do : std_logic_vector( 7 downto 0);
signal ssio_status : std_logic_vector( 7 downto 0);
signal div_E11 : std_logic_vector(2 downto 0); -- binary counter 3msb of E11 - 74161
signal div_D11 : std_logic_vector(3 downto 0); -- decade counter - D11 - 74160
signal div_C12 : std_logic_vector(6 downto 0); -- stage ripple counter - C12 - MC140247
signal clr_int : std_logic;
signal ay1_audio_chan : std_logic_vector( 1 downto 0);
signal ay1_audio_muxed: std_logic_vector( 7 downto 0);
signal ay1_bc1 : std_logic;
signal ay1_bdir : std_logic;
signal ay1_do : std_logic_vector( 7 downto 0);
signal ay1_cs : std_logic;
signal ay1_port_a : std_logic_vector( 7 downto 0);
signal ay1_port_b : std_logic_vector( 7 downto 0);
signal ay2_audio_chan : std_logic_vector( 1 downto 0);
signal ay2_audio_muxed: std_logic_vector( 7 downto 0);
signal ay2_bc1 : std_logic;
signal ay2_bdir : std_logic;
signal ay2_do : std_logic_vector( 7 downto 0);
signal ay2_cs : std_logic;
signal ay2_port_a : std_logic_vector( 7 downto 0);
signal ay2_port_b : std_logic_vector( 7 downto 0);
signal ssio_82s123_addr : std_logic_vector(4 downto 0);
signal ssio_82s123_do : std_logic_vector(7 downto 0);
signal ssio_modulation_clock : std_logic;
signal ssio_modulation_clock_r : std_logic;
signal ssio_modulation_load : std_logic;
signal modulation_counter_a1 : std_logic_vector(3 downto 0);
signal modulation_counter_b1 : std_logic_vector(3 downto 0);
signal modulation_counter_c1 : std_logic_vector(3 downto 0);
signal modulation_counter_a2 : std_logic_vector(3 downto 0);
signal modulation_counter_b2 : std_logic_vector(3 downto 0);
signal modulation_counter_c2 : std_logic_vector(3 downto 0);
signal ch_a1 : std_logic_vector(7 downto 0);
signal ch_b1 : std_logic_vector(7 downto 0);
signal ch_c1 : std_logic_vector(7 downto 0);
signal ch_a2 : std_logic_vector(7 downto 0);
signal ch_b2 : std_logic_vector(7 downto 0);
signal ch_c2 : std_logic_vector(7 downto 0);
-- K volume data : 148 138 127 112 95 72 42 0
type bytes_array is array(0 to 7) of std_logic_vector(7 downto 0);
signal K_volume : bytes_array := (X"94",X"8A",X"7F",X"70",X"5F",X"48",X"2A",X"00");
signal volume_ch1 : std_logic_vector(7 downto 0);
signal volume_ch2 : std_logic_vector(7 downto 0);
signal snd_1 : std_logic_vector(17 downto 0);
signal snd_2 : std_logic_vector(17 downto 0);
signal snd_mono : std_logic_vector(18 downto 0);
begin
clock_snd <= clock_40;
clock_sndn <= not clock_40;
reset_n <= not reset;
-- debug
process (reset, clock_snd)
begin
if rising_edge(clock_snd) and cpu_ena ='1' and cpu_mreq_n ='0' then
dbg_cpu_addr <= cpu_addr;
end if;
end process;
-- make enables clock from clock_snd
process (clock_snd, reset)
begin
if reset='1' then
clock_cnt1 <= (others=>'0');
clk_8Mhz <= '0';
else
if rising_edge(clock_snd) then
if clock_cnt1 = "10011" then -- divide by 20
clock_cnt1 <= (others=>'0');
else
clock_cnt1 <= clock_cnt1 + 1;
end if;
if clock_cnt1 = "10011" or
clock_cnt1 = "00100" or
clock_cnt1 = "01001" or
clock_cnt1 = "01110" then
clk_8Mhz <= not clk_8Mhz; -- (50% duty cycle)
end if;
end if;
end if;
end process;
--
cpu_ena <= '1' when clock_cnt1 = "00000" else '0'; -- (2.0MHz)
ena_4Mhz <= '1' when clock_cnt1 = "00000" or
clock_cnt1 = "01010" else '0'; -- (4.0MHz)
------------------------------------------
-- cpu data input with address decoding --
------------------------------------------
cpu_di <= cpu_rom_do when cpu_mreq_n = '0' and cpu_addr(15 downto 14) = "00" else -- 0x0000-0x3FFF
wram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) = X"8" else -- 0x8000-0x83FF
iram_0_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9000" else
iram_1_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9001" else
iram_2_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9002" else
iram_3_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9003" else
ay1_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"A" else
ay2_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"B" else
x"FF" when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"F" else -- 0xF000 (sw3 dip - D14)
X"FF";
------------------------------------------
-- write enable to working ram from CPU --
------------------------------------------
wram_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 12) = X"8" else '0'; -- 0x8000-0x83FF
clr_int <= '1' when cpu_mreq_n = '0' and cpu_rd_n = '0' and cpu_addr(15 downto 12) = X"E" else '0'; -- 0xE000-0xEFFF
ay1_cs <= '1' when cpu_mreq_n = '0' and (cpu_rd_n = '0' or cpu_wr_n = '0') and cpu_addr(15 downto 12) = X"A" else '0'; -- 0xA000-0xAFFF
ay2_cs <= '1' when cpu_mreq_n = '0' and (cpu_rd_n = '0' or cpu_wr_n = '0') and cpu_addr(15 downto 12) = X"B" else '0'; -- 0xB000-0xBFFF
ay1_bdir <= not (not ay1_cs or cpu_addr(0) );
ay1_bc1 <= not (not ay1_cs or cpu_addr(1) );
ay2_bdir <= not (not ay2_cs or cpu_addr(0) );
ay2_bc1 <= not (not ay2_cs or cpu_addr(1) );
ssio_do <= input_0 when main_cpu_addr(2 downto 0) = "000" else -- Input 0 -- players, coins, ...
input_1 when main_cpu_addr(2 downto 0) = "001" else -- Input 1
input_2 when main_cpu_addr(2 downto 0) = "010" else -- Input 2
input_3 when main_cpu_addr(2 downto 0) = "011" else -- Input 3 -- sw1 dip
input_4 when main_cpu_addr(2 downto 0) = "100" else -- Input 4
ssio_status when main_cpu_addr(2 downto 0) = "111" else -- ssio status
x"FF";
process (clock_snd)
begin
if rising_edge(clock_snd) then
if cpu_wr_n = '0' and cpu_addr(15 downto 12) = X"C" then ssio_status <= cpu_do; end if; -- 0xC000-0xCFFF
end if;
end process;
------------------------------------------------------------------------
-- Misc registers : interrupt, counters E11/D11/C12
------------------------------------------------------------------------
process (clock_snd, reset, clr_int, ena_4Mhz)
begin
if reset = '1' then
div_E11 <= (others => '0'); -- 3msb of E11
div_D11 <= (others => '0'); -- decade counter
div_C12 <= (others => '0'); -- MC14024
else
if rising_edge(clock_snd) then
if ena_4Mhz = '1' then
div_E11 <= div_E11 + 1;
if div_E11 = "111" then
if div_D11 = "1001" then
div_D11 <= (others => '0');
else
div_D11 <= div_D11 + 1;
end if;
if div_D11 = "0100" then
div_C12 <= div_C12 + 1;
end if;
end if;
end if;
if clr_int = '1' then
div_C12 <= (others => '0');
end if;
end if;
end if;
end process;
cpu_irq_n <= not div_C12(6);
-------------------------------
-- sound modulation / volume --
-------------------------------
ssio_82s123_addr <= div_D11 & div_E11(2);
--74166 8 bits shift register (D13)
ssio_modulation_clock <= ssio_82s123_do(7-to_integer(unsigned(div_E11(1 downto 0) & clk_8Mhz)));
ssio_modulation_load <= '1' when div_D11 = "1001" else '0';
-- AY-3-8910 #1
-- ch A (pin 4) modulated by counter controled by port A3-0 (pin 18->21)
-- ch B (pin 3) modulated by counter controled by port A7-4 (pin 14->17)
-- ch C (pin 38) modulated by counter controled by port B3-0 (pin 10->13)
-- mute left and right port B7 (pin 6)
-- volume#1 contoled by port B6-4 (pin 7->9)
-- AY-3-8910 #2
-- ch A (pin 4) modulated by counter controled by port A3-0 (pin 18->21)
-- ch B (pin 3) modulated by counter controled by port A7-4 (pin 14->17)
-- ch C (pin 38) modulated by counter controled by port B3-0 (pin 10->13)
-- mute global port B7 (pin 6)
-- volume#2 contoled by port B6-4 (pin 7->9)
-- 4051 cmos mux (D5 and E3)
-- CBA
-- 000 => switch X0 (pin 13) ON others OFF
-- 001 => switch X1 (pin 14) ON others OFF
-- ...
-- 111 => switch X7 (pin 4) ON others OFF
-- Assuming R179 to R187 equivalent to
--
-- --------
-- --------| R2 |-------- -- with R1 = 24k + n*4.7k
-- ^ | -------- | ^ -- R2 = 24k
-- | --- --- | -- R3 = (7-n)*4.7
-- | | | | | | --
-- Vin | | | R1 R3 | | | Vout -- n being 4051 CBA value
-- | | | | | | --
-- | --- --- | -- which gives
-- | | | | -- Vout = Vin * (7-n)*4.7/(24+(7-n)*4.7)
-- ------------------------
--
-- let : Vout = Vin * K(n) = Vin * (7-n)*4.7/(24+(7-n)*4.7) * 256
--
-- with K(n) = [148 138 127 112 95 72 42 0]
--
process (clock_snd, ssio_modulation_clock, ssio_modulation_load)
begin
if rising_edge(clock_snd) then
ssio_modulation_clock_r <= ssio_modulation_clock;
if ssio_modulation_load = '1' then
modulation_counter_a1 <= ay1_port_a(3 downto 0);
modulation_counter_b1 <= ay1_port_a(7 downto 4);
modulation_counter_c1 <= ay1_port_b(3 downto 0);
modulation_counter_a2 <= ay2_port_a(3 downto 0);
modulation_counter_b2 <= ay2_port_a(7 downto 4);
modulation_counter_c2 <= ay2_port_b(3 downto 0);
else
if ssio_modulation_clock = '1' and ssio_modulation_clock_r = '0' then
if modulation_counter_a1 > X"0" then modulation_counter_a1 <= modulation_counter_a1 - 1; end if;
if modulation_counter_b1 > X"0" then modulation_counter_b1 <= modulation_counter_b1 - 1; end if;
if modulation_counter_c1 > X"0" then modulation_counter_c1 <= modulation_counter_c1 - 1; end if;
if modulation_counter_a2 > X"0" then modulation_counter_a2 <= modulation_counter_a2 - 1; end if;
if modulation_counter_b2 > X"0" then modulation_counter_b2 <= modulation_counter_b2 - 1; end if;
if modulation_counter_c2 > X"0" then modulation_counter_c2 <= modulation_counter_c2 - 1; end if;
end if;
end if;
case ay1_audio_chan is
when "00" => if modulation_counter_a1 = x"0" then ch_a1 <= ay1_audio_muxed; else ch_a1 <= (others => '0'); end if;
when "01" => if modulation_counter_b1 = x"0" then ch_b1 <= ay1_audio_muxed; else ch_b1 <= (others => '0'); end if;
when "10" => if modulation_counter_c1 = x"0" then ch_c1 <= ay1_audio_muxed; else ch_c1 <= (others => '0'); end if;
when others => null;
end case;
case ay2_audio_chan is
when "00" => if modulation_counter_a2 = x"0" then ch_a2 <= ay2_audio_muxed; else ch_a2 <= (others => '0'); end if;
when "01" => if modulation_counter_b2 = x"0" then ch_b2 <= ay2_audio_muxed; else ch_b2 <= (others => '0'); end if;
when "10" => if modulation_counter_c2 = x"0" then ch_c2 <= ay2_audio_muxed; else ch_c2 <= (others => '0'); end if;
when others => null;
end case;
-- volume_ch1 <= K_volume(to_integer(unsigned(ay1_port_b(6 downto 4))));
---- volume_ch2 <= K_volume(to_integer(unsigned(ay2_port_b(6 downto 4))));
-- volume_ch2 <= K_volume(to_integer(unsigned(ay1_port_b(6 downto 4)))); -- use ch1 control otherwise ch2 is always OFF!
volume_ch1 <= X"FF"; -- finaly don't use volume controls
volume_ch2 <= X"FF";
if ay1_audio_chan = "00" then
snd_1 <= (("00"&ch_a1) + ("00"&ch_b1) + ("00"&ch_c1)) * volume_ch1;
end if;
if ay2_audio_chan = "00" then
snd_2 <= (("00"&ch_a2) + ("00"&ch_b2) + ("00"&ch_c2)) * volume_ch2;
end if;
end if;
end process;
snd_mono <= ('0'&snd_1) + ('0'&snd_2);
audio_out_l <= snd_1(17 downto 2) when separate_audio = '1' else snd_mono(18 downto 3);
audio_out_r <= snd_2(17 downto 2) when separate_audio = '1' else snd_mono(18 downto 3);
------------------------------
-- components & sound board --
------------------------------
-- microprocessor Z80
cpu : entity work.T80se
generic map(Mode => 0, T2Write => 1, IOWait => 1)
port map(
RESET_n => reset_n,
CLK_n => clock_snd,
CLKEN => cpu_ena,
WAIT_n => '1',
INT_n => cpu_irq_n,
NMI_n => '1', --cpu_nmi_n,
BUSRQ_n => '1',
M1_n => cpu_m1_n,
MREQ_n => cpu_mreq_n,
IORQ_n => cpu_ioreq_n,
RD_n => cpu_rd_n,
WR_n => cpu_wr_n,
RFSH_n => open,
HALT_n => open,
BUSAK_n => open,
A => cpu_addr,
DI => cpu_di,
DO => cpu_do
);
-- cpu program ROM 0x0000-0x3FFF
cpu_rom_addr <= cpu_addr(13 downto 0);
cpu_rom_rd <= '1' when cpu_mreq_n = '0' and cpu_rd_n = '0' and cpu_addr(15 downto 14) = "00" else '0'; -- 0x0000-0x3FFF
-- working RAM 0x8000-0x83FF
wram : entity work.gen_ram
generic map( dWidth => 8, aWidth => 10)
port map(
clk => clock_sndn,
we => wram_we,
addr => cpu_addr(9 downto 0),
d => cpu_do,
q => wram_do
);
-- iram (command from main cpu to sound cpu)
process (clock_snd, reset, ssio_iowe)
begin
if reset = '1' then
iram_0_do <= (others => '0');
iram_1_do <= (others => '0');
iram_2_do <= (others => '0');
iram_3_do <= (others => '0');
else
if rising_edge(clock_snd) then
if ssio_iowe = '1' and main_cpu_addr(7 downto 2) = "000111" then -- 0x1C - 0x1F
case main_cpu_addr(1 downto 0) is
when "00" => iram_0_do <= ssio_di;
when "01" => iram_1_do <= ssio_di;
when "10" => iram_2_do <= ssio_di;
when "11" => iram_3_do <= ssio_di;
when others => null;
end case;
end if;
end if;
end if;
end process;
-- AY-3-8910 # 1
ay_3_8910_1 : entity work.YM2149
port map(
-- data bus
I_DA => cpu_do, -- in std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA => ay1_do, -- out std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA_OE_L => open, -- out std_logic;
-- control
I_A9_L => '0', -- in std_logic; -- pin 24
I_A8 => '1', -- in std_logic; -- pin 25
I_BDIR => ay1_bdir, -- in std_logic; -- pin 27
I_BC2 => '1', -- in std_logic; -- pin 28
I_BC1 => ay1_bc1, -- in std_logic; -- pin 29
I_SEL_L => '0', -- in std_logic;
O_AUDIO => ay1_audio_muxed, -- out std_logic_vector(7 downto 0);
O_CHAN => ay1_audio_chan, -- out std_logic_vector(1 downto 0);
-- port a
I_IOA => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA => ay1_port_a, -- out std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA_OE_L => open, -- out std_logic;
-- port b
I_IOB => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB => ay1_port_b, -- out std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB_OE_L => open, -- out std_logic;
ENA => cpu_ena, -- in std_logic; -- clock enable for higher speed operation
RESET_L => reset_n, -- in std_logic;
CLK => clock_snd -- in std_logic -- note 6 Mhz
);
-- AY-3-8910 # 2
ay_3_8910_2 : entity work.YM2149
port map(
-- data bus
I_DA => cpu_do, -- in std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA => ay2_do, -- out std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA_OE_L => open, -- out std_logic;
-- control
I_A9_L => '0', -- in std_logic; -- pin 24
I_A8 => '1', -- in std_logic; -- pin 25
I_BDIR => ay2_bdir, -- in std_logic; -- pin 27
I_BC2 => '1', -- in std_logic; -- pin 28
I_BC1 => ay2_bc1, -- in std_logic; -- pin 29
I_SEL_L => '0', -- in std_logic;
O_AUDIO => ay2_audio_muxed, -- out std_logic_vector(7 downto 0);
O_CHAN => ay2_audio_chan, -- out std_logic_vector(1 downto 0);
-- port a
I_IOA => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA => ay2_port_a, -- out std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA_OE_L => open, -- out std_logic;
-- port b
I_IOB => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB => ay2_port_b, -- out std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB_OE_L => open, -- out std_logic;
ENA => cpu_ena, -- in std_logic; -- clock enable for higher speed operation
RESET_L => reset_n, -- in std_logic;
CLK => clock_snd -- in std_logic -- note 6 Mhz
);
-- midway ssio sound modulation prom
midssio : entity work.midssio_82s123
port map(
clk => clock_sndn,
addr => ssio_82s123_addr,
data => ssio_82s123_do
);
end struct;

View File

@@ -1,4 +0,0 @@
set_global_assignment -name IP_TOOL_NAME "ALTPLL"
set_global_assignment -name IP_TOOL_VERSION "13.1"
set_global_assignment -name VHDL_FILE [file join $::quartus(qip_path) "pll_mist.vhd"]
set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) "pll_mist.ppf"]

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity draw_bg_bits_1 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of draw_bg_bits_1 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"BF",X"FE",X"BE",X"BE",X"AA",X"FE",X"AB",X"FA",X"AF",X"EA",X"BF",X"AA",X"BE",X"BE",X"BF",X"FE",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"7D",X"55",X"7D",X"55",X"55",
X"55",X"55",X"57",X"55",X"5D",X"D5",X"75",X"75",X"FF",X"FD",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"D5",X"55",X"D5",X"55",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"55",X"FF",X"D5",X"D5",X"55",X"D5",X"55",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"FF",X"D5",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"D7",X"FD",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"FF",X"FD",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"57",X"55",X"57",X"55",X"57",X"55",X"57",X"55",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"55",X"FD",X"55",X"75",X"55",X"75",X"D5",X"75",X"D5",X"75",X"FF",X"F5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"75",X"FF",X"D5",X"D5",X"75",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"5D",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"F5",X"7D",X"DD",X"DD",X"D7",X"5D",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"F5",X"5D",X"DD",X"5D",X"D7",X"5D",X"D5",X"DD",X"D5",X"7D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"D5",X"55",X"D5",X"55",X"55",X"55",
X"BF",X"FE",X"BE",X"BE",X"AA",X"FE",X"AB",X"FA",X"AF",X"EA",X"BF",X"AA",X"BE",X"BE",X"BF",X"FE",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"FF",X"FD",X"55",X"5D",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D7",X"5D",X"57",X"55",X"57",X"55",X"57",X"55",X"57",X"55",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"75",X"75",X"75",X"75",X"5D",X"D5",X"5D",X"D5",X"57",X"55",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D7",X"5D",X"D7",X"5D",X"DD",X"DD",X"DD",X"DD",X"75",X"75",X"55",X"55",
X"55",X"55",X"F5",X"7D",X"7D",X"F5",X"5F",X"D5",X"7D",X"F5",X"F5",X"7D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"75",X"75",X"5D",X"D5",X"57",X"55",X"57",X"55",X"57",X"55",X"55",X"55",
X"55",X"D5",X"7F",X"FD",X"75",X"D5",X"7F",X"FD",X"55",X"DD",X"55",X"DD",X"7F",X"FD",X"55",X"D5",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"54",X"00",X"53",X"FF",X"4F",X"FF",X"3F",X"FF",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"95",X"FF",X"C5",X"FF",X"F1",X"FF",X"FC",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"3F",X"FF",X"4F",X"FF",X"53",X"FF",X"54",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FF",X"FC",X"FF",X"F1",X"FF",X"C5",X"00",X"15",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"BF",X"FE",X"BE",X"BE",X"AA",X"FE",X"AB",X"FA",X"AF",X"EA",X"BF",X"AA",X"BE",X"BE",X"BF",X"FE",
X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"51",X"55",X"45",X"00",X"15",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"54",X"00",X"51",X"55",X"45",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"15",X"55",X"45",X"55",X"51",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",
X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",
X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",
X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"45",X"55",X"51",X"55",X"54",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"50",X"55",X"40",X"00",X"00",
X"54",X"00",X"53",X"FF",X"4F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"15",X"FF",X"C5",X"FF",X"F1",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"4F",X"FF",X"53",X"FF",X"54",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F1",X"FF",X"C5",X"00",X"15",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",
X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",
X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"15",X"55",X"55",X"55",X"55",X"55",
X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"50",X"55",X"40",X"00",X"01",
X"00",X"05",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"55",X"05",X"55",X"05",X"55",X"05",X"55",
X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",
X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"05",X"55",X"15",X"55",
X"55",X"55",X"55",X"75",X"55",X"F5",X"55",X"75",X"55",X"75",X"55",X"75",X"55",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"55",X"5D",X"7F",X"FD",X"D5",X"55",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"57",X"F5",X"55",X"5D",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"55",X"75",X"D5",X"75",X"D5",X"75",X"FF",X"FD",X"55",X"75",X"55",X"75",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"FF",X"FD",X"55",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"7F",X"FD",X"D5",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"7F",X"FD",X"55",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"BF",X"FE",X"BE",X"BE",X"AA",X"FE",X"AB",X"FA",X"AF",X"EA",X"BF",X"AA",X"BE",X"BE",X"BF",X"FE",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"FF",X"55",X"D5",X"55",X"D5",X"55",X"55",
X"55",X"55",X"5D",X"FF",X"5D",X"D5",X"5D",X"FF",X"FD",X"D5",X"5D",X"D5",X"5D",X"FF",X"55",X"55",
X"55",X"55",X"F5",X"D5",X"55",X"D5",X"D5",X"D5",X"55",X"D5",X"55",X"D5",X"FD",X"FF",X"55",X"55",
X"55",X"55",X"55",X"FF",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"5D",X"D5",X"FD",X"FF",X"55",X"55",
X"55",X"55",X"F5",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"F5",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F0",X"FF",X"C0",X"00",X"00",
X"00",X"00",X"00",X"01",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"00",X"55",X"40",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"55",X"05",X"55",X"01",X"55",X"01",X"55",
X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",
X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"01",X"55",X"05",X"55",
X"15",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"01",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"00",X"55",X"40",X"55",X"50",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"55",X"05",X"55",X"01",X"55",X"00",X"55",
X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",
X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",
X"00",X"55",X"01",X"55",X"05",X"55",X"15",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"00",X"55",X"40",X"55",X"50",X"55",X"54",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"05",X"55",X"01",X"55",X"00",X"55",
X"00",X"15",X"00",X"15",X"00",X"15",X"00",X"15",X"00",X"15",X"00",X"15",X"00",X"15",X"00",X"15",
X"00",X"15",X"00",X"15",X"00",X"55",X"01",X"55",X"05",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"57",X"55",X"5D",X"D5",X"75",X"75",X"FF",X"FD",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"D5",X"55",X"D5",X"55",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"55",X"FF",X"D5",X"D5",X"55",X"D5",X"55",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"55",X"FF",X"D5",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"D5",X"FD",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"FF",X"FD",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"57",X"55",X"57",X"55",X"57",X"55",X"57",X"55",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"5F",X"FD",X"55",X"75",X"55",X"75",X"D5",X"75",X"D5",X"75",X"7F",X"D5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"75",X"FF",X"D5",X"D5",X"75",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"D5",X"55",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"F5",X"7D",X"DD",X"DD",X"D7",X"5D",X"D5",X"5D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"F5",X"5D",X"DD",X"5D",X"D7",X"5D",X"D5",X"DD",X"D5",X"7D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"D5",X"55",X"D5",X"55",X"55",X"55",
X"55",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"FF",X"F5",X"D5",X"75",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"FF",X"FD",X"55",X"5D",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"57",X"55",X"57",X"55",X"57",X"55",X"57",X"55",X"57",X"55",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"75",X"75",X"75",X"75",X"5D",X"D5",X"5D",X"D5",X"57",X"55",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"D7",X"5D",X"D7",X"5D",X"D7",X"5D",X"DD",X"DD",X"75",X"75",X"55",X"55",
X"55",X"55",X"D5",X"5D",X"75",X"75",X"5D",X"D5",X"57",X"55",X"57",X"55",X"57",X"55",X"55",X"55",
X"55",X"55",X"F5",X"7D",X"7D",X"F5",X"5F",X"D5",X"7D",X"F5",X"F5",X"7D",X"D5",X"5D",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"55",X"75",X"55",X"F5",X"55",X"75",X"55",X"75",X"55",X"75",X"55",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"55",X"5D",X"7F",X"FD",X"D5",X"55",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"57",X"F5",X"55",X"5D",X"D5",X"5D",X"FF",X"FD",X"55",X"55",
X"55",X"55",X"55",X"75",X"D5",X"75",X"D5",X"75",X"FF",X"FD",X"55",X"75",X"55",X"75",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"55",X"FF",X"FD",X"55",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"7F",X"FD",X"D5",X"55",X"FF",X"F5",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"FF",X"FD",X"D5",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"5D",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"7F",X"F5",X"D5",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"7F",X"F5",X"D5",X"5D",X"7F",X"FD",X"55",X"5D",X"D5",X"5D",X"7F",X"F5",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"7D",X"55",X"7D",X"55",X"55",
X"57",X"55",X"7F",X"FD",X"77",X"55",X"7F",X"FD",X"57",X"5D",X"57",X"5D",X"7F",X"FD",X"57",X"55",
X"AA",X"95",X"AA",X"A5",X"A5",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",
X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"A9",X"AA",X"A5",X"AA",X"95",
X"AA",X"A9",X"AA",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"AA",X"A5",
X"AA",X"A5",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"69",X"A5",X"69",X"AA",X"A9",X"AA",X"A9",
X"5A",X"95",X"6A",X"A5",X"69",X"A5",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"AA",X"A9",
X"AA",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",
X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",
X"AA",X"95",X"AA",X"A5",X"A5",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A5",X"69",X"AA",X"A5",
X"A5",X"5A",X"A5",X"5A",X"A5",X"5A",X"A5",X"5A",X"A6",X"9A",X"A6",X"9A",X"A6",X"9A",X"A6",X"9A",
X"A6",X"9A",X"A6",X"9A",X"AA",X"AA",X"AA",X"AA",X"A9",X"6A",X"A9",X"6A",X"A5",X"5A",X"A5",X"5A",
X"AA",X"A9",X"AA",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"AA",X"A9",
X"AA",X"A9",X"55",X"69",X"55",X"69",X"55",X"69",X"A5",X"69",X"A5",X"69",X"AA",X"A9",X"AA",X"A9",
X"AA",X"AA",X"AA",X"AA",X"96",X"96",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",
X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",X"56",X"95",
X"A5",X"69",X"A5",X"69",X"A5",X"69",X"A9",X"69",X"A9",X"69",X"A9",X"69",X"AA",X"69",X"A6",X"69",
X"A6",X"69",X"A6",X"A9",X"A5",X"A9",X"A5",X"A9",X"A5",X"A9",X"A5",X"69",X"A5",X"69",X"A5",X"69",
X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"55",X"A5",X"69",X"A5",X"69",X"AA",X"A9",X"AA",X"A9",
X"5F",X"D5",X"7F",X"F5",X"FD",X"FD",X"F5",X"7D",X"F5",X"55",X"FD",X"55",X"7F",X"55",X"5F",X"D5",
X"57",X"F5",X"55",X"FD",X"55",X"7D",X"F5",X"7D",X"F5",X"7D",X"FD",X"FD",X"7F",X"F5",X"5F",X"D5",
X"FF",X"FF",X"FF",X"FF",X"D7",X"D7",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",
X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",
X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"FD",X"7D",X"FD",X"7D",X"FD",X"7D",X"FF",X"7D",X"F7",X"7D",
X"F7",X"7D",X"F7",X"FD",X"F5",X"FD",X"F5",X"FD",X"F5",X"FD",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",
X"5F",X"D5",X"5F",X"D5",X"7D",X"F5",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"FF",X"FD",
X"FF",X"FD",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",
X"FF",X"55",X"FF",X"D5",X"F5",X"F5",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",
X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"FD",X"FF",X"F5",X"FF",X"D5",
X"55",X"40",X"55",X"40",X"55",X"50",X"55",X"54",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"01",X"55",X"00",X"55",
X"00",X"15",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",
X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"05",
X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"15",X"00",X"55",X"01",X"55",X"55",X"55",X"55",X"55",
X"55",X"F5",X"57",X"F5",X"5F",X"F5",X"5F",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",
X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"5F",X"FF",X"5F",X"FF",X"5F",X"FF",
X"5F",X"D5",X"7F",X"F5",X"FD",X"FD",X"F5",X"7D",X"55",X"7D",X"55",X"7D",X"55",X"7D",X"55",X"F5",
X"57",X"F5",X"5F",X"D5",X"7F",X"55",X"FD",X"55",X"F5",X"55",X"F5",X"7D",X"FF",X"FD",X"FF",X"FD",
X"5F",X"D5",X"7F",X"F5",X"FD",X"FD",X"F5",X"7D",X"55",X"7D",X"55",X"7D",X"55",X"FD",X"5F",X"F5",
X"5F",X"F5",X"55",X"FD",X"55",X"7D",X"55",X"7D",X"F5",X"7D",X"FD",X"FD",X"7F",X"F5",X"5F",X"D5",
X"55",X"F5",X"55",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",X"F5",
X"FF",X"FD",X"FF",X"FD",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",
X"FF",X"FD",X"FF",X"FD",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F7",X"D5",X"FF",X"F5",
X"FD",X"FD",X"F5",X"7D",X"55",X"7D",X"55",X"7D",X"F5",X"7D",X"FD",X"FD",X"7F",X"F5",X"5F",X"D5",
X"50",X"15",X"40",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"05",X"55",X"05",X"55",X"00",X"15",
X"00",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"05",X"50",X"15",
X"00",X"01",X"00",X"01",X"05",X"41",X"05",X"41",X"55",X"41",X"55",X"05",X"55",X"05",X"55",X"05",
X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",
X"50",X"15",X"40",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"05",X"50",X"15",
X"40",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"05",X"50",X"15",
X"50",X"15",X"40",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"01",
X"50",X"01",X"55",X"41",X"55",X"41",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"01",X"50",X"05",
X"50",X"15",X"40",X"05",X"01",X"01",X"05",X"41",X"05",X"41",X"05",X"41",X"05",X"41",X"05",X"41",
X"05",X"41",X"05",X"41",X"05",X"41",X"05",X"41",X"05",X"41",X"01",X"01",X"40",X"05",X"50",X"15",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"54",X"05",X"54",X"05",X"54",X"05",
X"50",X"15",X"40",X"05",X"00",X"01",X"04",X"41",X"04",X"41",X"04",X"55",X"00",X"05",X"40",X"01",
X"54",X"41",X"04",X"41",X"00",X"01",X"00",X"01",X"40",X"05",X"50",X"15",X"55",X"55",X"55",X"55",
X"FD",X"FD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"FD",X"FD",X"5D",X"D5",X"FD",X"FD",X"D5",X"5D",X"D5",X"5D",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"FD",X"FD",X"D5",X"DD",X"FD",X"DD",X"5D",X"DD",X"5D",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"FD",X"FD",X"5D",X"D5",X"5D",X"FD",X"5D",X"5D",X"5D",X"5D",X"5D",X"FD",X"55",X"55",X"FF",X"FD",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"55",X"55",X"55",X"55",
X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"54",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FD",X"FD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",X"55",X"55",
X"FF",X"D5",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",
X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"FD",X"FD",X"7D",X"F5",
X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",X"5F",X"D5",
X"55",X"55",X"55",X"55",X"55",X"95",X"55",X"95",X"55",X"55",X"55",X"95",X"55",X"95",X"55",X"95",
X"55",X"55",X"55",X"55",X"95",X"95",X"95",X"95",X"95",X"95",X"95",X"95",X"95",X"95",X"95",X"95",
X"55",X"55",X"55",X"55",X"95",X"95",X"95",X"A9",X"95",X"55",X"95",X"55",X"95",X"95",X"95",X"95",
X"55",X"55",X"55",X"56",X"95",X"56",X"99",X"5A",X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"59",
X"55",X"95",X"55",X"95",X"55",X"55",X"55",X"55",X"5A",X"AA",X"55",X"55",X"55",X"55",X"55",X"55",
X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"A9",X"55",X"55",X"55",X"55",X"55",X"55",
X"95",X"95",X"95",X"95",X"95",X"55",X"95",X"55",X"9A",X"AA",X"55",X"55",X"55",X"55",X"55",X"55",
X"54",X"00",X"53",X"FF",X"4F",X"FF",X"3F",X"FF",X"3A",X"BF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FC",X"00",X"F3",X"FF",X"CF",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"FF",X"FD",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"FD",X"FD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"FD",X"FD",X"5D",X"D5",X"FD",X"FD",X"D5",X"5D",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"FD",X"FD",X"D5",X"DD",X"FD",X"DD",X"5D",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"5F",X"D5",X"7F",X"F5",X"FD",X"FD",X"F5",X"7D",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",
X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"7D",X"FD",X"FD",X"7F",X"F5",X"5F",X"D5",
X"5F",X"D5",X"7F",X"F5",X"FD",X"FD",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",
X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"FD",X"FD",X"7F",X"F5",X"5F",X"D5",
X"7F",X"FD",X"7F",X"FD",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",
X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"57",X"D5",X"7F",X"FD",X"7F",X"FD",
X"FF",X"D5",X"FF",X"F5",X"F5",X"FD",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"FD",X"FF",X"F5",
X"FF",X"F5",X"F5",X"FD",X"F5",X"7D",X"F5",X"7D",X"F5",X"7D",X"F5",X"FD",X"FF",X"F5",X"FF",X"D5",
X"FF",X"FD",X"FF",X"FD",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"FF",X"F5",
X"FF",X"F5",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"F5",X"55",X"FF",X"FD",X"FF",X"FD",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"5F",X"F5",X"75",X"5D",X"D7",X"D7",X"DD",X"57",X"DD",X"57",X"D7",X"D7",X"75",X"5D",X"5F",X"F5",
X"55",X"55",X"55",X"55",X"55",X"55",X"54",X"00",X"54",X"00",X"54",X"15",X"54",X"15",X"54",X"15",
X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"54",X"15",X"54",X"15",X"54",X"15",
X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"15",X"00",X"15",X"54",X"15",X"54",X"15",X"54",X"15",
X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"15",
X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"00",X"54",X"00",X"54",X"15",X"54",X"15",X"54",X"15",
X"54",X"15",X"54",X"15",X"54",X"15",X"00",X"00",X"00",X"00",X"54",X"15",X"54",X"15",X"54",X"15",
X"54",X"15",X"54",X"15",X"54",X"15",X"00",X"15",X"00",X"15",X"54",X"15",X"54",X"15",X"54",X"15",
X"54",X"15",X"54",X"15",X"54",X"15",X"54",X"00",X"54",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"54",X"15",X"54",X"15",X"54",X"15",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"54",X"15",X"54",X"15",X"54",X"15",X"00",X"15",X"00",X"15",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"FD",X"FD",X"DD",X"DD",X"DD",X"DD",X"DD",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"FD",X"FD",X"5D",X"D5",X"FD",X"FD",X"D5",X"5D",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"FD",X"FD",X"D5",X"DD",X"FD",X"DD",X"5D",X"DD",X"FD",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"FD",X"FD",X"5D",X"D5",X"5D",X"FD",X"5D",X"5D",X"5D",X"FD",X"55",X"55",X"FF",X"FD",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"AA");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity draw_bg_bits_2 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of draw_bg_bits_2 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"3C",X"00",X"3C",X"00",X"00",
X"00",X"00",X"03",X"00",X"0C",X"C0",X"30",X"30",X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"FF",X"F0",X"C0",X"0C",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"FF",X"F0",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"0C",X"C0",X"00",X"C0",X"00",X"C0",X"0C",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"FF",X"F0",X"00",X"00",
X"00",X"00",X"FF",X"F0",X"C0",X"00",X"FF",X"C0",X"C0",X"00",X"C0",X"00",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"00",X"FF",X"C0",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"00",X"C3",X"FC",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"03",X"00",X"03",X"00",X"03",X"00",X"03",X"00",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"00",X"FC",X"00",X"30",X"00",X"30",X"C0",X"30",X"C0",X"30",X"FF",X"F0",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"C0",X"30",X"FF",X"C0",X"C0",X"30",X"C0",X"0C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"0C",X"C0",X"0C",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"F0",X"3C",X"CC",X"CC",X"C3",X"0C",X"C0",X"0C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"F0",X"0C",X"CC",X"0C",X"C3",X"0C",X"C0",X"CC",X"C0",X"3C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"3F",X"F0",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"FF",X"F0",X"C0",X"00",X"C0",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"00",X"FF",X"FC",X"00",X"0C",X"C0",X"0C",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C3",X"0C",X"03",X"00",X"03",X"00",X"03",X"00",X"03",X"00",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"30",X"30",X"30",X"30",X"0C",X"C0",X"0C",X"C0",X"03",X"00",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"C3",X"0C",X"C3",X"0C",X"CC",X"CC",X"CC",X"CC",X"30",X"30",X"00",X"00",
X"00",X"00",X"F0",X"3C",X"3C",X"F0",X"0F",X"C0",X"3C",X"F0",X"F0",X"3C",X"C0",X"0C",X"00",X"00",
X"00",X"00",X"C0",X"0C",X"30",X"30",X"0C",X"C0",X"03",X"00",X"03",X"00",X"03",X"00",X"00",X"00",
X"00",X"C0",X"3F",X"FC",X"30",X"C0",X"3F",X"FC",X"00",X"CC",X"00",X"CC",X"3F",X"FC",X"00",X"C0",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"CC",X"03",X"33",X"0C",X"CC",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"CC",X"CC",X"33",X"33",X"CC",X"CC",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"C0",X"CC",X"C0",X"33",X"30",X"CC",X"CC",
X"33",X"33",X"CC",X"CC",X"33",X"33",X"CC",X"CC",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"33",X"33",X"CC",X"CC",X"33",X"33",X"CC",X"CC",
X"33",X"33",X"0C",X"CC",X"03",X"33",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"33",X"33",X"CC",X"CC",X"33",X"33",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"33",X"30",X"CC",X"C0",X"33",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F0",X"FF",X"C0",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"03",X"FF",X"0F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"FF",X"C0",X"FF",X"F0",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"0F",X"FF",X"03",X"FF",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F1",X"FF",X"C5",X"00",X"15",
X"00",X"00",X"03",X"FF",X"0F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"FF",X"C0",X"FF",X"F0",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",
X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"0F",X"FF",X"03",X"FF",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F0",X"FF",X"C0",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",
X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",
X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"00",X"00",X"00",X"00",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"F1",X"FF",X"C5",X"00",X"14",
X"55",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"50",X"00",X"50",X"00",X"50",X"00",
X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",
X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"40",X"00",
X"00",X"00",X"00",X"30",X"00",X"F0",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"FC",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"00",X"0C",X"3F",X"FC",X"C0",X"00",X"C0",X"0C",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"0C",X"03",X"F0",X"00",X"0C",X"C0",X"0C",X"FF",X"FC",X"00",X"00",
X"00",X"00",X"00",X"30",X"C0",X"30",X"C0",X"30",X"FF",X"FC",X"00",X"30",X"00",X"30",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"00",X"FF",X"FC",X"00",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"3F",X"FC",X"C0",X"00",X"FF",X"F0",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"FF",X"FC",X"C0",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"00",
X"00",X"00",X"3F",X"F0",X"C0",X"0C",X"3F",X"F0",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"3F",X"F0",X"C0",X"0C",X"3F",X"FC",X"00",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"3F",X"F0",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"3F",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"80",X"00",X"80",X"00",X"80",X"00",X"AA",X"00",X"80",X"00",X"80",X"00",X"00",
X"00",X"00",X"08",X"AA",X"08",X"80",X"08",X"AA",X"A8",X"80",X"08",X"80",X"08",X"AA",X"00",X"00",
X"00",X"00",X"A0",X"80",X"00",X"80",X"80",X"80",X"00",X"80",X"00",X"80",X"A8",X"AA",X"00",X"00",
X"00",X"00",X"00",X"AA",X"00",X"80",X"00",X"80",X"00",X"80",X"08",X"80",X"A8",X"AA",X"00",X"00",
X"00",X"00",X"A0",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"A0",X"00",X"00",X"00",
X"00",X"00",X"00",X"80",X"00",X"80",X"00",X"80",X"00",X"AA",X"00",X"80",X"00",X"80",X"00",X"00",
X"00",X"00",X"08",X"AA",X"08",X"80",X"08",X"AA",X"A8",X"80",X"08",X"80",X"08",X"AA",X"00",X"00",
X"00",X"00",X"A0",X"80",X"00",X"80",X"80",X"80",X"00",X"80",X"00",X"80",X"A8",X"AA",X"00",X"00",
X"00",X"00",X"00",X"AA",X"00",X"80",X"00",X"80",X"00",X"80",X"08",X"80",X"A8",X"AA",X"00",X"00",
X"00",X"00",X"A0",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"A0",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"33",X"30",X"CC",X"CC",X"33",X"30",X"CC",X"CC",X"33",X"30",X"CC",X"C1",X"33",X"05",X"00",X"15",
X"55",X"55",X"55",X"54",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"55",X"00",X"15",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"50",X"00",X"54",X"00",X"54",X"00",
X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",
X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"50",X"00",
X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"54",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"55",X"00",X"15",X"00",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"50",X"00",X"54",X"00",X"55",X"00",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"55",X"00",X"54",X"00",X"50",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"55",X"00",X"15",X"00",X"05",X"00",X"01",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"00",X"54",X"00",X"55",X"00",
X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",
X"55",X"40",X"55",X"40",X"55",X"00",X"54",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"01",X"00",X"04",X"40",X"10",X"10",X"55",X"54",X"40",X"04",X"40",X"04",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"04",X"55",X"50",X"40",X"04",X"40",X"04",X"55",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"04",X"40",X"00",X"40",X"00",X"40",X"04",X"55",X"54",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"04",X"40",X"04",X"40",X"04",X"40",X"04",X"55",X"50",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"00",X"55",X"40",X"40",X"00",X"40",X"00",X"55",X"54",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"00",X"55",X"40",X"40",X"00",X"40",X"00",X"40",X"00",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"00",X"40",X"54",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"40",X"04",X"40",X"04",X"40",X"04",X"55",X"54",X"40",X"04",X"40",X"04",X"00",X"00",
X"00",X"00",X"55",X"54",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"55",X"54",X"00",X"00",
X"00",X"00",X"05",X"54",X"00",X"10",X"00",X"10",X"40",X"10",X"40",X"10",X"15",X"40",X"00",X"00",
X"00",X"00",X"40",X"04",X"40",X"10",X"55",X"40",X"40",X"10",X"40",X"04",X"40",X"04",X"00",X"00",
X"00",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"55",X"54",X"00",X"00",
X"00",X"00",X"40",X"04",X"50",X"14",X"44",X"44",X"41",X"04",X"40",X"04",X"40",X"04",X"00",X"00",
X"00",X"00",X"50",X"04",X"44",X"04",X"41",X"04",X"40",X"44",X"40",X"14",X"40",X"04",X"00",X"00",
X"00",X"00",X"15",X"50",X"40",X"04",X"40",X"04",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"04",X"40",X"04",X"55",X"50",X"40",X"00",X"40",X"00",X"00",X"00",
X"00",X"00",X"55",X"50",X"40",X"04",X"40",X"04",X"55",X"50",X"40",X"10",X"40",X"04",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"00",X"55",X"54",X"00",X"04",X"40",X"04",X"55",X"54",X"00",X"00",
X"00",X"00",X"55",X"54",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"00",X"00",
X"00",X"00",X"40",X"04",X"40",X"04",X"40",X"04",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"40",X"04",X"10",X"10",X"10",X"10",X"04",X"40",X"04",X"40",X"01",X"00",X"00",X"00",
X"00",X"00",X"40",X"04",X"41",X"04",X"41",X"04",X"41",X"04",X"44",X"44",X"10",X"10",X"00",X"00",
X"00",X"00",X"40",X"04",X"10",X"10",X"04",X"40",X"01",X"00",X"01",X"00",X"01",X"00",X"00",X"00",
X"00",X"00",X"50",X"14",X"14",X"50",X"05",X"40",X"14",X"50",X"50",X"14",X"40",X"04",X"00",X"00",
X"00",X"00",X"15",X"50",X"40",X"04",X"40",X"04",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"10",X"00",X"50",X"00",X"10",X"00",X"10",X"00",X"10",X"00",X"54",X"00",X"00",
X"00",X"00",X"55",X"54",X"00",X"04",X"15",X"54",X"40",X"00",X"40",X"04",X"55",X"54",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"04",X"01",X"50",X"00",X"04",X"40",X"04",X"55",X"54",X"00",X"00",
X"00",X"00",X"00",X"10",X"40",X"10",X"40",X"10",X"55",X"54",X"00",X"10",X"00",X"10",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"00",X"55",X"54",X"00",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"54",X"40",X"00",X"55",X"50",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"40",X"04",X"00",X"04",X"00",X"04",X"00",X"04",X"00",X"04",X"00",X"00",
X"00",X"00",X"15",X"50",X"40",X"04",X"15",X"50",X"40",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"40",X"04",X"15",X"54",X"00",X"04",X"40",X"04",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"14",X"00",X"14",X"00",X"00",
X"01",X"00",X"15",X"54",X"11",X"00",X"15",X"54",X"01",X"04",X"01",X"04",X"15",X"54",X"01",X"00",
X"AA",X"80",X"AA",X"A0",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"A8",X"AA",X"A0",X"AA",X"80",
X"AA",X"A8",X"AA",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"AA",X"A0",
X"AA",X"A0",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"28",X"A0",X"28",X"AA",X"A8",X"AA",X"A8",
X"0A",X"80",X"2A",X"A0",X"28",X"A0",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"AA",X"A8",
X"AA",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",
X"AA",X"80",X"AA",X"A0",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"AA",X"A0",
X"A0",X"0A",X"A0",X"0A",X"A0",X"0A",X"A0",X"0A",X"A2",X"8A",X"A2",X"8A",X"A2",X"8A",X"A2",X"8A",
X"A2",X"8A",X"A2",X"8A",X"AA",X"AA",X"AA",X"AA",X"A8",X"2A",X"A8",X"2A",X"A0",X"0A",X"A0",X"0A",
X"AA",X"A8",X"AA",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"AA",X"A8",
X"AA",X"A8",X"00",X"28",X"00",X"28",X"00",X"28",X"A0",X"28",X"A0",X"28",X"AA",X"A8",X"AA",X"A8",
X"AA",X"AA",X"AA",X"AA",X"82",X"82",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",
X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",
X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A8",X"28",X"A8",X"28",X"A8",X"28",X"AA",X"28",X"A2",X"28",
X"A2",X"28",X"A2",X"A8",X"A0",X"A8",X"A0",X"A8",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"28",X"A0",X"28",X"AA",X"A8",X"AA",X"A8",
X"0A",X"80",X"2A",X"A0",X"A8",X"A8",X"A0",X"28",X"A0",X"00",X"A8",X"00",X"2A",X"00",X"0A",X"80",
X"02",X"A0",X"00",X"A8",X"00",X"28",X"A0",X"28",X"A0",X"28",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",
X"AA",X"AA",X"AA",X"AA",X"82",X"82",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",
X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",
X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A8",X"28",X"A8",X"28",X"A8",X"28",X"AA",X"28",X"A2",X"28",
X"A2",X"28",X"A2",X"A8",X"A0",X"A8",X"A0",X"A8",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"0A",X"80",X"0A",X"80",X"28",X"A0",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"AA",X"A8",
X"AA",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"AA",X"00",X"AA",X"80",X"A0",X"A0",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"A8",X"AA",X"A0",X"AA",X"80",
X"00",X"15",X"00",X"15",X"00",X"05",X"00",X"01",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"54",X"00",X"55",X"00",
X"55",X"40",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",
X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",
X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"40",X"55",X"00",X"54",X"00",X"00",X"00",X"00",X"00",
X"00",X"A0",X"02",X"A0",X"0A",X"A0",X"0A",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",
X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"0A",X"AA",X"0A",X"AA",X"0A",X"AA",
X"0A",X"80",X"2A",X"A0",X"A8",X"A8",X"A0",X"28",X"00",X"28",X"00",X"28",X"00",X"28",X"00",X"A0",
X"02",X"A0",X"0A",X"80",X"2A",X"00",X"A8",X"00",X"A0",X"00",X"A0",X"28",X"AA",X"A8",X"AA",X"A8",
X"0A",X"80",X"2A",X"A0",X"A8",X"A8",X"A0",X"28",X"00",X"28",X"00",X"28",X"00",X"A8",X"0A",X"A0",
X"0A",X"A0",X"00",X"A8",X"00",X"28",X"00",X"28",X"A0",X"28",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",
X"00",X"A0",X"00",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",X"A0",
X"AA",X"A8",X"AA",X"A8",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",
X"AA",X"A8",X"AA",X"A8",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A2",X"80",X"AA",X"A0",
X"A8",X"A8",X"A0",X"28",X"00",X"28",X"00",X"28",X"A0",X"28",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"FC",X"FC",X"CC",X"CC",X"CC",X"CC",X"CC",X"CC",X"CC",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"FC",X"FC",X"0C",X"C0",X"FC",X"FC",X"C0",X"0C",X"C0",X"0C",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"FC",X"FC",X"C0",X"CC",X"FC",X"CC",X"0C",X"CC",X"0C",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"FC",X"FC",X"0C",X"C0",X"0C",X"FC",X"0C",X"0C",X"0C",X"0C",X"0C",X"FC",X"00",X"00",X"FF",X"FC",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"55",X"00",X"00",X"00",X"00",
X"00",X"05",X"00",X"05",X"00",X"05",X"00",X"01",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"54",X"54",X"44",X"44",X"44",X"44",X"44",X"44",X"54",X"54",X"00",X"00",X"55",X"54",X"00",X"00",
X"FF",X"C0",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",
X"F0",X"3C",X"F0",X"3C",X"F0",X"3C",X"F0",X"3C",X"F0",X"3C",X"F0",X"3C",X"FC",X"FC",X"3C",X"F0",
X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",X"0F",X"C0",
X"15",X"54",X"17",X"D7",X"17",X"17",X"17",X"17",X"15",X"5F",X"17",X"17",X"17",X"17",X"17",X"17",
X"14",X"14",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",X"17",
X"15",X"54",X"17",X"D7",X"17",X"3F",X"17",X"03",X"15",X"57",X"0F",X"D7",X"17",X"17",X"17",X"17",
X"15",X"54",X"1D",X"74",X"1D",X"74",X"01",X"70",X"01",X"70",X"01",X"70",X"01",X"70",X"01",X"70",
X"17",X"17",X"17",X"17",X"15",X"57",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"01",X"70",X"01",X"70",X"01",X"70",X"03",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"17",X"17",X"17",X"17",X"15",X"57",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"03",X"FF",X"0F",X"AE",X"3F",X"FF",X"3A",X"AF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FC",X"00",X"F0",X"CC",X"C3",X"33",X"0C",X"CC",X"33",X"33",X"0C",X"CC",X"33",X"33",X"0C",X"CC",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"54",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FC",X"FC",X"CC",X"CC",X"CC",X"CC",X"CC",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"00",X"00",X"FC",X"FC",X"0C",X"C0",X"FC",X"FC",X"C0",X"0C",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"00",X"00",X"FC",X"FC",X"C0",X"CC",X"FC",X"CC",X"0C",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"0A",X"80",X"2A",X"A0",X"A8",X"A8",X"A0",X"28",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",
X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"28",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",
X"0A",X"80",X"2A",X"A0",X"A8",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",
X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",
X"2A",X"A8",X"2A",X"A8",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",
X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"02",X"80",X"2A",X"A8",X"2A",X"A8",
X"AA",X"80",X"AA",X"A0",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"A8",X"AA",X"A0",
X"AA",X"A0",X"A0",X"A8",X"A0",X"28",X"A0",X"28",X"A0",X"28",X"A0",X"A8",X"AA",X"A0",X"AA",X"80",
X"AA",X"A8",X"AA",X"A8",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"AA",X"A0",
X"AA",X"A0",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"A0",X"00",X"AA",X"A8",X"AA",X"A8",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"F0",X"30",X"0C",X"C3",X"C3",X"CC",X"03",X"CC",X"03",X"C3",X"C3",X"30",X"0C",X"0F",X"F0",
X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"FF",X"03",X"FF",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"C0",X"FF",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"FF",X"03",X"FF",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"FF",X"FF",X"FF",X"FF",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"FF",X"C0",X"FF",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"C0",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"03",X"FF",X"03",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"03",X"C0",X"03",X"C0",X"03",X"C0",X"FF",X"C0",X"FF",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FC",X"FC",X"CC",X"CC",X"CC",X"CC",X"CC",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"00",X"00",X"FC",X"FC",X"0C",X"C0",X"FC",X"FC",X"C0",X"0C",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"00",X"00",X"FC",X"FC",X"C0",X"CC",X"FC",X"CC",X"0C",X"CC",X"FC",X"FC",X"00",X"00",X"FF",X"FC",
X"00",X"00",X"FC",X"FC",X"0C",X"C0",X"0C",X"FC",X"0C",X"0C",X"0C",X"FC",X"00",X"00",X"FF",X"FC",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,134 +0,0 @@
## Generated SDC file "vectrex_MiST.out.sdc"
## Copyright (C) 1991-2013 Altera Corporation
## Your use of Altera Corporation's design tools, logic functions
## and other software and tools, and its AMPP partner logic
## functions, and any output files from any of the foregoing
## (including device programming or simulation files), and any
## associated documentation or information are expressly subject
## to the terms and conditions of the Altera Program License
## Subscription Agreement, Altera MegaCore Function License
## Agreement, or other applicable license agreement, including,
## without limitation, that your use is for the sole purpose of
## programming logic devices manufactured by Altera and sold by
## Altera or its authorized distributors. Please refer to the
## applicable agreement for further details.
## VENDOR "Altera"
## PROGRAM "Quartus II"
## VERSION "Version 13.1.0 Build 162 10/23/2013 SJ Web Edition"
## DATE "Sun Jun 24 12:53:00 2018"
##
## DEVICE "EP3C25E144C8"
##
# Clock constraints
# Automatically constrain PLL and other generated clocks
derive_pll_clocks -create_base_clocks
# Automatically calculate clock uncertainty to jitter and other effects.
derive_clock_uncertainty
# tsu/th constraints
# tco constraints
# tpd constraints
#**************************************************************
# Time Information
#**************************************************************
set_time_format -unit ns -decimal_places 3
#**************************************************************
# Create Clock
#**************************************************************
create_clock -name {SPI_SCK} -period 41.666 -waveform { 20.8 41.666 } [get_ports {SPI_SCK}]
set sys_clk "pll|altpll_component|auto_generated|pll1|clk[0]"
set sdram_clk "pll|altpll_component|auto_generated|pll1|clk[0]"
#**************************************************************
# Create Generated Clock
#**************************************************************
#**************************************************************
# Set Clock Latency
#**************************************************************
#**************************************************************
# Set Clock Uncertainty
#**************************************************************
#**************************************************************
# Set Input Delay
#**************************************************************
set_input_delay -add_delay -clock_fall -clock [get_clocks {CLOCK_27}] 1.000 [get_ports {CLOCK_27}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {CONF_DATA0}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_DI}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SCK}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SS2}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SS3}]
set_input_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -max 6.6 [get_ports SDRAM_DQ[*]]
set_input_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -min 3.5 [get_ports SDRAM_DQ[*]]
#**************************************************************
# Set Output Delay
#**************************************************************
set_output_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_DO}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {AUDIO_L}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {AUDIO_R}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {LED}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {VGA_*}]
set_output_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -max 1.5 [get_ports {SDRAM_D* SDRAM_A* SDRAM_BA* SDRAM_n* SDRAM_CKE}]
set_output_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -min -0.8 [get_ports {SDRAM_D* SDRAM_A* SDRAM_BA* SDRAM_n* SDRAM_CKE}]
#**************************************************************
# Set Clock Groups
#**************************************************************
set_clock_groups -asynchronous -group [get_clocks {SPI_SCK}] -group [get_clocks {pll|altpll_component|auto_generated|pll1|clk[*]}]
#**************************************************************
# Set False Path
#**************************************************************
#**************************************************************
# Set Multicycle Path
#**************************************************************
set_multicycle_path -to {VGA_*[*]} -setup 2
set_multicycle_path -to {VGA_*[*]} -hold 1
#**************************************************************
# Set Maximum Delay
#**************************************************************
#**************************************************************
# Set Minimum Delay
#**************************************************************
#**************************************************************
# Set Input Transition
#**************************************************************

View File

@@ -1,37 +0,0 @@
@echo off
del /s *.bak
del /s *.orig
del /s *.rej
del /s *~
rmdir /s /q db
rmdir /s /q incremental_db
rmdir /s /q output_files
rmdir /s /q simulation
rmdir /s /q greybox_tmp
rmdir /s /q hc_output
rmdir /s /q .qsys_edit
rmdir /s /q hps_isw_handoff
rmdir /s /q sys\.qsys_edit
rmdir /s /q sys\vip
cd sys
for /d %%i in (*_sim) do rmdir /s /q "%%~nxi"
cd ..
for /d %%i in (*_sim) do rmdir /s /q "%%~nxi"
del build_id.v
del c5_pin_model_dump.txt
del PLLJ_PLLSPE_INFO.txt
del /s *.qws
del /s *.ppf
del /s *.ddb
del /s *.csv
del /s *.cmp
del /s *.sip
del /s *.spd
del /s *.bsf
del /s *.f
del /s *.sopcinfo
del /s *.xml
del /s new_rtl_netlist
del /s old_rtl_netlist
pause

View File

@@ -1,574 +0,0 @@
-- changes for seperate audio outputs and enable now enables cpu access as well
--
-- A simulation model of YM2149 (AY-3-8910 with bells on)
-- Copyright (c) MikeJ - Jan 2005
--
-- All rights reserved
--
-- Redistribution and use in source and synthezised forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- Redistributions in synthesized form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
--
-- Neither the name of the author nor the names of other contributors may
-- be used to endorse or promote products derived from this software without
-- specific prior written permission.
--
-- THIS CODE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--
-- You are responsible for any legal issues arising from your use of this code.
--
-- The latest version of this file can be found at: www.fpgaarcade.com
--
-- Email support@fpgaarcade.com
--
-- Revision list
--
-- version 001 initial release
--
-- Clues from MAME sound driver and Kazuhiro TSUJIKAWA
--
-- These are the measured outputs from a real chip for a single Isolated channel into a 1K load (V)
-- vol 15 .. 0
-- 3.27 2.995 2.741 2.588 2.452 2.372 2.301 2.258 2.220 2.198 2.178 2.166 2.155 2.148 2.141 2.132
-- As the envelope volume is 5 bit, I have fitted a curve to the not quite log shape in order
-- to produced all the required values.
-- (The first part of the curve is a bit steeper and the last bit is more linear than expected)
--
-- NOTE, this component uses LINEAR mixing of the three analogue channels, and is only
-- accurate for designs where the outputs are buffered and not simply wired together.
-- The ouput level is more complex in that case and requires a larger table.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity YM2149 is
port (
-- data bus
I_DA : in std_logic_vector(7 downto 0);
O_DA : out std_logic_vector(7 downto 0);
O_DA_OE_L : out std_logic;
-- control
I_A9_L : in std_logic;
I_A8 : in std_logic;
I_BDIR : in std_logic;
I_BC2 : in std_logic;
I_BC1 : in std_logic;
I_SEL_L : in std_logic;
O_AUDIO : out std_logic_vector(7 downto 0);
O_CHAN : out std_logic_vector(1 downto 0);
-- port a
I_IOA : in std_logic_vector(7 downto 0);
O_IOA : out std_logic_vector(7 downto 0);
O_IOA_OE_L : out std_logic;
-- port b
I_IOB : in std_logic_vector(7 downto 0);
O_IOB : out std_logic_vector(7 downto 0);
O_IOB_OE_L : out std_logic;
ENA : in std_logic; -- clock enable for higher speed operation
RESET_L : in std_logic;
CLK : in std_logic -- note 6 Mhz
);
end;
architecture RTL of YM2149 is
type array_16x8 is array (0 to 15) of std_logic_vector( 7 downto 0);
type array_3x12 is array (1 to 3) of std_logic_vector(11 downto 0);
signal cnt_div : std_logic_vector(3 downto 0) := (others => '0');
signal cnt_div_t1 : std_logic_vector(3 downto 0);
signal noise_div : std_logic := '0';
signal ena_div : std_logic;
signal ena_div_noise : std_logic;
signal poly17 : std_logic_vector(16 downto 0) := (others => '0');
-- registers
signal addr : std_logic_vector(7 downto 0);
signal busctrl_addr : std_logic;
signal busctrl_we : std_logic;
signal busctrl_re : std_logic;
signal reg : array_16x8;
signal env_reset : std_logic;
signal ioa_inreg : std_logic_vector(7 downto 0);
signal iob_inreg : std_logic_vector(7 downto 0);
signal noise_gen_cnt : std_logic_vector(4 downto 0);
signal noise_gen_op : std_logic;
signal tone_gen_cnt : array_3x12 := (others => (others => '0'));
signal tone_gen_op : std_logic_vector(3 downto 1) := "000";
signal env_gen_cnt : std_logic_vector(15 downto 0);
signal env_ena : std_logic;
signal env_hold : std_logic;
signal env_inc : std_logic;
signal env_vol : std_logic_vector(4 downto 0);
signal tone_ena_l : std_logic;
signal tone_src : std_logic;
signal noise_ena_l : std_logic;
signal chan_vol : std_logic_vector(4 downto 0);
signal dac_amp : std_logic_vector(7 downto 0);
begin
-- cpu i/f
p_busdecode : process(I_BDIR, I_BC2, I_BC1, addr, I_A9_L, I_A8)
variable cs : std_logic;
variable sel : std_logic_vector(2 downto 0);
begin
-- BDIR BC2 BC1 MODE
-- 0 0 0 inactive
-- 0 0 1 address
-- 0 1 0 inactive
-- 0 1 1 read
-- 1 0 0 address
-- 1 0 1 inactive
-- 1 1 0 write
-- 1 1 1 read
busctrl_addr <= '0';
busctrl_we <= '0';
busctrl_re <= '0';
cs := '0';
if (I_A9_L = '0') and (I_A8 = '1') and (addr(7 downto 4) = "0000") then
cs := '1';
end if;
sel := (I_BDIR & I_BC2 & I_BC1);
case sel is
when "000" => null;
when "001" => busctrl_addr <= '1';
when "010" => null;
when "011" => busctrl_re <= cs;
when "100" => busctrl_addr <= '1';
when "101" => null;
when "110" => busctrl_we <= cs;
when "111" => busctrl_addr <= '1';
when others => null;
end case;
end process;
p_oe : process(busctrl_re)
begin
-- if we are emulating a real chip, maybe clock this to fake up the tristate typ delay of 100ns
O_DA_OE_L <= not (busctrl_re);
end process;
--
-- CLOCKED
--
p_waddr : process(RESET_L, CLK)
begin
-- looks like registers are latches in real chip, but the address is caught at the end of the address state.
if (RESET_L = '0') then
addr <= (others => '0');
elsif rising_edge(CLK) then
if (ENA = '1') then
if (busctrl_addr = '1') then
addr <= I_DA;
end if;
end if;
end if;
end process;
p_wdata : process(RESET_L, CLK)
begin
if (RESET_L = '0') then
reg <= (others => (others => '0'));
env_reset <= '1';
elsif rising_edge(CLK) then
if (ENA = '1') then
env_reset <= '0';
if (busctrl_we = '1') then
case addr(3 downto 0) is
when x"0" => reg(0) <= I_DA;
when x"1" => reg(1) <= I_DA;
when x"2" => reg(2) <= I_DA;
when x"3" => reg(3) <= I_DA;
when x"4" => reg(4) <= I_DA;
when x"5" => reg(5) <= I_DA;
when x"6" => reg(6) <= I_DA;
when x"7" => reg(7) <= I_DA;
when x"8" => reg(8) <= I_DA;
when x"9" => reg(9) <= I_DA;
when x"A" => reg(10) <= I_DA;
when x"B" => reg(11) <= I_DA;
when x"C" => reg(12) <= I_DA;
when x"D" => reg(13) <= I_DA; env_reset <= '1';
when x"E" => reg(14) <= I_DA;
when x"F" => reg(15) <= I_DA;
when others => null;
end case;
end if;
end if;
end if;
end process;
p_rdata : process(busctrl_re, addr, reg, ioa_inreg, iob_inreg)
begin
O_DA <= (others => '0'); -- 'X'
if (busctrl_re = '1') then -- not necessary, but useful for putting 'X's in the simulator
case addr(3 downto 0) is
when x"0" => O_DA <= reg(0) ;
when x"1" => O_DA <= "0000" & reg(1)(3 downto 0) ;
when x"2" => O_DA <= reg(2) ;
when x"3" => O_DA <= "0000" & reg(3)(3 downto 0) ;
when x"4" => O_DA <= reg(4) ;
when x"5" => O_DA <= "0000" & reg(5)(3 downto 0) ;
when x"6" => O_DA <= "000" & reg(6)(4 downto 0) ;
when x"7" => O_DA <= reg(7) ;
when x"8" => O_DA <= "000" & reg(8)(4 downto 0) ;
when x"9" => O_DA <= "000" & reg(9)(4 downto 0) ;
when x"A" => O_DA <= "000" & reg(10)(4 downto 0) ;
when x"B" => O_DA <= reg(11);
when x"C" => O_DA <= reg(12);
when x"D" => O_DA <= "0000" & reg(13)(3 downto 0);
when x"E" => if (reg(7)(6) = '0') then -- input
O_DA <= ioa_inreg;
else
O_DA <= reg(14); -- read output reg
end if;
when x"F" => if (Reg(7)(7) = '0') then
O_DA <= iob_inreg;
else
O_DA <= reg(15);
end if;
when others => null;
end case;
end if;
end process;
--
p_divider : process
begin
wait until rising_edge(CLK);
-- / 8 when SEL is high and /16 when SEL is low
if (ENA = '1') then
ena_div <= '0';
ena_div_noise <= '0';
if (cnt_div = "0000") then
cnt_div <= (not I_SEL_L) & "111";
ena_div <= '1';
noise_div <= not noise_div;
if (noise_div = '1') then
ena_div_noise <= '1';
end if;
else
cnt_div <= cnt_div - "1";
end if;
end if;
end process;
p_noise_gen : process
variable noise_gen_comp : std_logic_vector(4 downto 0);
variable poly17_zero : std_logic;
begin
wait until rising_edge(CLK);
if (reg(6)(4 downto 0) = "00000") then
noise_gen_comp := "00000";
else
noise_gen_comp := (reg(6)(4 downto 0) - "1");
end if;
poly17_zero := '0';
if (poly17 = "00000000000000000") then poly17_zero := '1'; end if;
if (ENA = '1') then
if (ena_div_noise = '1') then -- divider ena
if (noise_gen_cnt >= noise_gen_comp) then
noise_gen_cnt <= "00000";
poly17 <= (poly17(0) xor poly17(2) xor poly17_zero) & poly17(16 downto 1);
else
noise_gen_cnt <= (noise_gen_cnt + "1");
end if;
end if;
end if;
end process;
noise_gen_op <= poly17(0);
p_tone_gens : process
variable tone_gen_freq : array_3x12;
variable tone_gen_comp : array_3x12;
begin
wait until rising_edge(CLK);
-- looks like real chips count up - we need to get the Exact behaviour ..
tone_gen_freq(1) := reg(1)(3 downto 0) & reg(0);
tone_gen_freq(2) := reg(3)(3 downto 0) & reg(2);
tone_gen_freq(3) := reg(5)(3 downto 0) & reg(4);
-- period 0 = period 1
for i in 1 to 3 loop
if (tone_gen_freq(i) = x"000") then
tone_gen_comp(i) := x"000";
else
tone_gen_comp(i) := (tone_gen_freq(i) - "1");
end if;
end loop;
if (ENA = '1') then
for i in 1 to 3 loop
if (ena_div = '1') then -- divider ena
if (tone_gen_cnt(i) >= tone_gen_comp(i)) then
tone_gen_cnt(i) <= x"000";
tone_gen_op(i) <= not tone_gen_op(i);
else
tone_gen_cnt(i) <= (tone_gen_cnt(i) + "1");
end if;
end if;
end loop;
end if;
end process;
p_envelope_freq : process
variable env_gen_freq : std_logic_vector(15 downto 0);
variable env_gen_comp : std_logic_vector(15 downto 0);
begin
wait until rising_edge(CLK);
env_gen_freq := reg(12) & reg(11);
-- envelope freqs 1 and 0 are the same.
if (env_gen_freq = x"0000") then
env_gen_comp := x"0000";
else
env_gen_comp := (env_gen_freq - "1");
end if;
if (ENA = '1') then
env_ena <= '0';
if (ena_div = '1') then -- divider ena
if (env_gen_cnt >= env_gen_comp) then
env_gen_cnt <= x"0000";
env_ena <= '1';
else
env_gen_cnt <= (env_gen_cnt + "1");
end if;
end if;
end if;
end process;
p_envelope_shape : process(env_reset, reg, CLK)
variable is_bot : boolean;
variable is_bot_p1 : boolean;
variable is_top_m1 : boolean;
variable is_top : boolean;
begin
-- envelope shapes
-- C AtAlH
-- 0 0 x x \___
--
-- 0 1 x x /___
--
-- 1 0 0 0 \\\\
--
-- 1 0 0 1 \___
--
-- 1 0 1 0 \/\/
-- ___
-- 1 0 1 1 \
--
-- 1 1 0 0 ////
-- ___
-- 1 1 0 1 /
--
-- 1 1 1 0 /\/\
--
-- 1 1 1 1 /___
if (env_reset = '1') then
-- load initial state
if (reg(13)(2) = '0') then -- attack
env_vol <= "11111";
env_inc <= '0'; -- -1
else
env_vol <= "00000";
env_inc <= '1'; -- +1
end if;
env_hold <= '0';
elsif rising_edge(CLK) then
is_bot := (env_vol = "00000");
is_bot_p1 := (env_vol = "00001");
is_top_m1 := (env_vol = "11110");
is_top := (env_vol = "11111");
if (ENA = '1') then
if (env_ena = '1') then
if (env_hold = '0') then
if (env_inc = '1') then
env_vol <= (env_vol + "00001");
else
env_vol <= (env_vol + "11111");
end if;
end if;
-- envelope shape control.
if (reg(13)(3) = '0') then
if (env_inc = '0') then -- down
if is_bot_p1 then env_hold <= '1'; end if;
else
if is_top then env_hold <= '1'; end if;
end if;
else
if (reg(13)(0) = '1') then -- hold = 1
if (env_inc = '0') then -- down
if (reg(13)(1) = '1') then -- alt
if is_bot then env_hold <= '1'; end if;
else
if is_bot_p1 then env_hold <= '1'; end if;
end if;
else
if (reg(13)(1) = '1') then -- alt
if is_top then env_hold <= '1'; end if;
else
if is_top_m1 then env_hold <= '1'; end if;
end if;
end if;
elsif (reg(13)(1) = '1') then -- alternate
if (env_inc = '0') then -- down
if is_bot_p1 then env_hold <= '1'; end if;
if is_bot then env_hold <= '0'; env_inc <= '1'; end if;
else
if is_top_m1 then env_hold <= '1'; end if;
if is_top then env_hold <= '0'; env_inc <= '0'; end if;
end if;
end if;
end if;
end if;
end if;
end if;
end process;
p_chan_mixer : process(cnt_div, reg, tone_gen_op)
begin
tone_ena_l <= '1'; tone_src <= '1';
noise_ena_l <= '1'; chan_vol <= "00000";
case cnt_div(1 downto 0) is
when "00" =>
tone_ena_l <= reg(7)(0); tone_src <= tone_gen_op(1); chan_vol <= reg(8)(4 downto 0);
noise_ena_l <= reg(7)(3);
when "01" =>
tone_ena_l <= reg(7)(1); tone_src <= tone_gen_op(2); chan_vol <= reg(9)(4 downto 0);
noise_ena_l <= reg(7)(4);
when "10" =>
tone_ena_l <= reg(7)(2); tone_src <= tone_gen_op(3); chan_vol <= reg(10)(4 downto 0);
noise_ena_l <= reg(7)(5);
when "11" => null; -- tone gen outputs become valid on this clock
when others => null;
end case;
end process;
p_op_mixer : process
variable chan_mixed : std_logic;
variable chan_amp : std_logic_vector(4 downto 0);
begin
wait until rising_edge(CLK);
if (ENA = '1') then
chan_mixed := (tone_ena_l or tone_src) and (noise_ena_l or noise_gen_op);
chan_amp := (others => '0');
if (chan_mixed = '1') then
if (chan_vol(4) = '0') then
if (chan_vol(3 downto 0) = "0000") then -- nothing is easy ! make sure quiet is quiet
chan_amp := "00000";
else
chan_amp := chan_vol(3 downto 0) & '1'; -- make sure level 31 (env) = level 15 (tone)
end if;
else
chan_amp := env_vol(4 downto 0);
end if;
end if;
dac_amp <= x"00";
case chan_amp is
when "11111" => dac_amp <= x"FF";
when "11110" => dac_amp <= x"D9";
when "11101" => dac_amp <= x"BA";
when "11100" => dac_amp <= x"9F";
when "11011" => dac_amp <= x"88";
when "11010" => dac_amp <= x"74";
when "11001" => dac_amp <= x"63";
when "11000" => dac_amp <= x"54";
when "10111" => dac_amp <= x"48";
when "10110" => dac_amp <= x"3D";
when "10101" => dac_amp <= x"34";
when "10100" => dac_amp <= x"2C";
when "10011" => dac_amp <= x"25";
when "10010" => dac_amp <= x"1F";
when "10001" => dac_amp <= x"1A";
when "10000" => dac_amp <= x"16";
when "01111" => dac_amp <= x"13";
when "01110" => dac_amp <= x"10";
when "01101" => dac_amp <= x"0D";
when "01100" => dac_amp <= x"0B";
when "01011" => dac_amp <= x"09";
when "01010" => dac_amp <= x"08";
when "01001" => dac_amp <= x"07";
when "01000" => dac_amp <= x"06";
when "00111" => dac_amp <= x"05";
when "00110" => dac_amp <= x"04";
when "00101" => dac_amp <= x"03";
when "00100" => dac_amp <= x"03";
when "00011" => dac_amp <= x"02";
when "00010" => dac_amp <= x"02";
when "00001" => dac_amp <= x"01";
when "00000" => dac_amp <= x"00";
when others => null;
end case;
cnt_div_t1 <= cnt_div;
end if;
end process;
p_audio_output : process(RESET_L, CLK)
begin
if (RESET_L = '0') then
O_AUDIO <= (others => '0');
O_CHAN <= (others => '0');
elsif rising_edge(CLK) then
if (ENA = '1') then
O_AUDIO <= dac_amp(7 downto 0);
O_CHAN <= cnt_div_t1(1 downto 0);
end if;
end if;
end process;
p_io_ports : process(reg)
begin
O_IOA <= reg(14);
O_IOA_OE_L <= not reg(7)(6);
O_IOB <= reg(15);
O_IOB_OE_L <= not reg(7)(7);
end process;
p_io_ports_inreg : process
begin
wait until rising_edge(CLK);
if (ENA = '1') then -- resync
ioa_inreg <= I_IOA;
iob_inreg <= I_IOB;
end if;
end process;
end architecture RTL;

View File

@@ -1,35 +0,0 @@
# ================================================================================
#
# Build ID Verilog Module Script
# Jeff Wiencrot - 8/1/2011
#
# Generates a Verilog module that contains a timestamp,
# from the current build. These values are available from the build_date, build_time,
# physical_address, and host_name output ports of the build_id module in the build_id.v
# Verilog source file.
#
# ================================================================================
proc generateBuildID_Verilog {} {
# Get the timestamp (see: http://www.altera.com/support/examples/tcl/tcl-date-time-stamp.html)
set buildDate [ clock format [ clock seconds ] -format %y%m%d ]
set buildTime [ clock format [ clock seconds ] -format %H%M%S ]
# Create a Verilog file for output
set outputFileName "rtl/build_id.v"
set outputFile [open $outputFileName "w"]
# Output the Verilog source
puts $outputFile "`define BUILD_DATE \"$buildDate\""
puts $outputFile "`define BUILD_TIME \"$buildTime\""
close $outputFile
# Send confirmation message to the Messages window
post_message "Generated build identification Verilog module: [pwd]/$outputFileName"
post_message "Date: $buildDate"
post_message "Time: $buildTime"
}
# Comment out this line to prevent the process from automatically executing when the file is sourced:
generateBuildID_Verilog

View File

@@ -1,84 +0,0 @@
-- -----------------------------------------------------------------------
--
-- Syntiac's generic VHDL support files.
--
-- -----------------------------------------------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
--
-- Modified April 2016 by Dar (darfpga@aol.fr)
-- http://darfpga.blogspot.fr
-- Remove address register when writing
--
-- -----------------------------------------------------------------------
--
-- gen_rwram.vhd
--
-- -----------------------------------------------------------------------
--
-- generic ram.
--
-- -----------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.numeric_std.ALL;
-- -----------------------------------------------------------------------
entity gen_ram is
generic (
dWidth : integer := 8;
aWidth : integer := 10
);
port (
clk : in std_logic;
we : in std_logic;
addr : in std_logic_vector((aWidth-1) downto 0);
d : in std_logic_vector((dWidth-1) downto 0);
q : out std_logic_vector((dWidth-1) downto 0)
);
end entity;
-- -----------------------------------------------------------------------
architecture rtl of gen_ram is
subtype addressRange is integer range 0 to ((2**aWidth)-1);
type ramDef is array(addressRange) of std_logic_vector((dWidth-1) downto 0);
signal ram: ramDef;
signal rAddrReg : std_logic_vector((aWidth-1) downto 0);
signal qReg : std_logic_vector((dWidth-1) downto 0);
begin
-- -----------------------------------------------------------------------
-- Signals to entity interface
-- -----------------------------------------------------------------------
-- q <= qReg;
-- -----------------------------------------------------------------------
-- Memory write
-- -----------------------------------------------------------------------
process(clk)
begin
if rising_edge(clk) then
if we = '1' then
ram(to_integer(unsigned(addr))) <= d;
end if;
end if;
end process;
-- -----------------------------------------------------------------------
-- Memory read
-- -----------------------------------------------------------------------
process(clk)
begin
if rising_edge(clk) then
-- qReg <= ram(to_integer(unsigned(rAddrReg)));
-- rAddrReg <= addr;
---- qReg <= ram(to_integer(unsigned(addr)));
q <= ram(to_integer(unsigned(addr)));
end if;
end process;
--q <= ram(to_integer(unsigned(addr)));
end architecture;

View File

@@ -1,397 +0,0 @@
-- megafunction wizard: %ALTPLL%
-- GENERATION: STANDARD
-- VERSION: WM1.0
-- MODULE: altpll
-- ============================================================
-- File Name: pll_mist.vhd
-- Megafunction Name(s):
-- altpll
--
-- Simulation Library Files(s):
-- altera_mf
-- ============================================================
-- ************************************************************
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
--
-- 13.1.0 Build 162 10/23/2013 SJ Web Edition
-- ************************************************************
--Copyright (C) 1991-2013 Altera Corporation
--Your use of Altera Corporation's design tools, logic functions
--and other software and tools, and its AMPP partner logic
--functions, and any output files from any of the foregoing
--(including device programming or simulation files), and any
--associated documentation or information are expressly subject
--to the terms and conditions of the Altera Program License
--Subscription Agreement, Altera MegaCore Function License
--Agreement, or other applicable license agreement, including,
--without limitation, that your use is for the sole purpose of
--programming logic devices manufactured by Altera and sold by
--Altera or its authorized distributors. Please refer to the
--applicable agreement for further details.
LIBRARY ieee;
USE ieee.std_logic_1164.all;
LIBRARY altera_mf;
USE altera_mf.all;
ENTITY pll_mist IS
PORT
(
areset : IN STD_LOGIC := '0';
inclk0 : IN STD_LOGIC := '0';
c0 : OUT STD_LOGIC ;
c1 : OUT STD_LOGIC ;
locked : OUT STD_LOGIC
);
END pll_mist;
ARCHITECTURE SYN OF pll_mist IS
SIGNAL sub_wire0 : STD_LOGIC_VECTOR (4 DOWNTO 0);
SIGNAL sub_wire1 : STD_LOGIC ;
SIGNAL sub_wire2 : STD_LOGIC ;
SIGNAL sub_wire3 : STD_LOGIC ;
SIGNAL sub_wire4 : STD_LOGIC ;
SIGNAL sub_wire5 : STD_LOGIC_VECTOR (1 DOWNTO 0);
SIGNAL sub_wire6_bv : BIT_VECTOR (0 DOWNTO 0);
SIGNAL sub_wire6 : STD_LOGIC_VECTOR (0 DOWNTO 0);
COMPONENT altpll
GENERIC (
bandwidth_type : STRING;
clk0_divide_by : NATURAL;
clk0_duty_cycle : NATURAL;
clk0_multiply_by : NATURAL;
clk0_phase_shift : STRING;
clk1_divide_by : NATURAL;
clk1_duty_cycle : NATURAL;
clk1_multiply_by : NATURAL;
clk1_phase_shift : STRING;
compensate_clock : STRING;
inclk0_input_frequency : NATURAL;
intended_device_family : STRING;
lpm_hint : STRING;
lpm_type : STRING;
operation_mode : STRING;
pll_type : STRING;
port_activeclock : STRING;
port_areset : STRING;
port_clkbad0 : STRING;
port_clkbad1 : STRING;
port_clkloss : STRING;
port_clkswitch : STRING;
port_configupdate : STRING;
port_fbin : STRING;
port_inclk0 : STRING;
port_inclk1 : STRING;
port_locked : STRING;
port_pfdena : STRING;
port_phasecounterselect : STRING;
port_phasedone : STRING;
port_phasestep : STRING;
port_phaseupdown : STRING;
port_pllena : STRING;
port_scanaclr : STRING;
port_scanclk : STRING;
port_scanclkena : STRING;
port_scandata : STRING;
port_scandataout : STRING;
port_scandone : STRING;
port_scanread : STRING;
port_scanwrite : STRING;
port_clk0 : STRING;
port_clk1 : STRING;
port_clk2 : STRING;
port_clk3 : STRING;
port_clk4 : STRING;
port_clk5 : STRING;
port_clkena0 : STRING;
port_clkena1 : STRING;
port_clkena2 : STRING;
port_clkena3 : STRING;
port_clkena4 : STRING;
port_clkena5 : STRING;
port_extclk0 : STRING;
port_extclk1 : STRING;
port_extclk2 : STRING;
port_extclk3 : STRING;
self_reset_on_loss_lock : STRING;
width_clock : NATURAL
);
PORT (
areset : IN STD_LOGIC ;
clk : OUT STD_LOGIC_VECTOR (4 DOWNTO 0);
inclk : IN STD_LOGIC_VECTOR (1 DOWNTO 0);
locked : OUT STD_LOGIC
);
END COMPONENT;
BEGIN
sub_wire6_bv(0 DOWNTO 0) <= "0";
sub_wire6 <= To_stdlogicvector(sub_wire6_bv);
sub_wire3 <= sub_wire0(0);
sub_wire1 <= sub_wire0(1);
c1 <= sub_wire1;
locked <= sub_wire2;
c0 <= sub_wire3;
sub_wire4 <= inclk0;
sub_wire5 <= sub_wire6(0 DOWNTO 0) & sub_wire4;
altpll_component : altpll
GENERIC MAP (
bandwidth_type => "AUTO",
clk0_divide_by => 27,
clk0_duty_cycle => 50,
clk0_multiply_by => 40,
clk0_phase_shift => "0",
clk1_divide_by => 27,
clk1_duty_cycle => 50,
clk1_multiply_by => 80,
clk1_phase_shift => "0",
compensate_clock => "CLK0",
inclk0_input_frequency => 37037,
intended_device_family => "Cyclone III",
lpm_hint => "CBX_MODULE_PREFIX=pll_mist",
lpm_type => "altpll",
operation_mode => "NORMAL",
pll_type => "AUTO",
port_activeclock => "PORT_UNUSED",
port_areset => "PORT_USED",
port_clkbad0 => "PORT_UNUSED",
port_clkbad1 => "PORT_UNUSED",
port_clkloss => "PORT_UNUSED",
port_clkswitch => "PORT_UNUSED",
port_configupdate => "PORT_UNUSED",
port_fbin => "PORT_UNUSED",
port_inclk0 => "PORT_USED",
port_inclk1 => "PORT_UNUSED",
port_locked => "PORT_USED",
port_pfdena => "PORT_UNUSED",
port_phasecounterselect => "PORT_UNUSED",
port_phasedone => "PORT_UNUSED",
port_phasestep => "PORT_UNUSED",
port_phaseupdown => "PORT_UNUSED",
port_pllena => "PORT_UNUSED",
port_scanaclr => "PORT_UNUSED",
port_scanclk => "PORT_UNUSED",
port_scanclkena => "PORT_UNUSED",
port_scandata => "PORT_UNUSED",
port_scandataout => "PORT_UNUSED",
port_scandone => "PORT_UNUSED",
port_scanread => "PORT_UNUSED",
port_scanwrite => "PORT_UNUSED",
port_clk0 => "PORT_USED",
port_clk1 => "PORT_USED",
port_clk2 => "PORT_UNUSED",
port_clk3 => "PORT_UNUSED",
port_clk4 => "PORT_UNUSED",
port_clk5 => "PORT_UNUSED",
port_clkena0 => "PORT_UNUSED",
port_clkena1 => "PORT_UNUSED",
port_clkena2 => "PORT_UNUSED",
port_clkena3 => "PORT_UNUSED",
port_clkena4 => "PORT_UNUSED",
port_clkena5 => "PORT_UNUSED",
port_extclk0 => "PORT_UNUSED",
port_extclk1 => "PORT_UNUSED",
port_extclk2 => "PORT_UNUSED",
port_extclk3 => "PORT_UNUSED",
self_reset_on_loss_lock => "OFF",
width_clock => 5
)
PORT MAP (
areset => areset,
inclk => sub_wire5,
clk => sub_wire0,
locked => sub_wire2
);
END SYN;
-- ============================================================
-- CNX file retrieval info
-- ============================================================
-- Retrieval info: PRIVATE: ACTIVECLK_CHECK STRING "0"
-- Retrieval info: PRIVATE: BANDWIDTH STRING "1.000"
-- Retrieval info: PRIVATE: BANDWIDTH_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: BANDWIDTH_FREQ_UNIT STRING "MHz"
-- Retrieval info: PRIVATE: BANDWIDTH_PRESET STRING "Low"
-- Retrieval info: PRIVATE: BANDWIDTH_USE_AUTO STRING "1"
-- Retrieval info: PRIVATE: BANDWIDTH_USE_PRESET STRING "0"
-- Retrieval info: PRIVATE: CLKBAD_SWITCHOVER_CHECK STRING "0"
-- Retrieval info: PRIVATE: CLKLOSS_CHECK STRING "0"
-- Retrieval info: PRIVATE: CLKSWITCH_CHECK STRING "0"
-- Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING "0"
-- Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING "0"
-- Retrieval info: PRIVATE: CREATE_INCLK1_CHECK STRING "0"
-- Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c0"
-- Retrieval info: PRIVATE: CUR_FBIN_CLK STRING "c0"
-- Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING "8"
-- Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC "27"
-- Retrieval info: PRIVATE: DIV_FACTOR1 NUMERIC "27"
-- Retrieval info: PRIVATE: DUTY_CYCLE0 STRING "50.00000000"
-- Retrieval info: PRIVATE: DUTY_CYCLE1 STRING "50.00000000"
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING "40.000000"
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE1 STRING "80.000000"
-- Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING "0"
-- Retrieval info: PRIVATE: EXT_FEEDBACK_RADIO STRING "0"
-- Retrieval info: PRIVATE: GLOCKED_COUNTER_EDIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: GLOCKED_FEATURE_ENABLED STRING "0"
-- Retrieval info: PRIVATE: GLOCKED_MODE_CHECK STRING "0"
-- Retrieval info: PRIVATE: GLOCK_COUNTER_EDIT NUMERIC "1048575"
-- Retrieval info: PRIVATE: HAS_MANUAL_SWITCHOVER STRING "1"
-- Retrieval info: PRIVATE: INCLK0_FREQ_EDIT STRING "27.000"
-- Retrieval info: PRIVATE: INCLK0_FREQ_UNIT_COMBO STRING "MHz"
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT STRING "100.000"
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_COMBO STRING "MHz"
-- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone III"
-- Retrieval info: PRIVATE: INT_FEEDBACK__MODE_RADIO STRING "1"
-- Retrieval info: PRIVATE: LOCKED_OUTPUT_CHECK STRING "1"
-- Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING "1"
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE STRING "Not Available"
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE_DIRTY NUMERIC "0"
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT0 STRING "deg"
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT1 STRING "ps"
-- Retrieval info: PRIVATE: MIG_DEVICE_SPEED_GRADE STRING "Any"
-- Retrieval info: PRIVATE: MIRROR_CLK0 STRING "0"
-- Retrieval info: PRIVATE: MIRROR_CLK1 STRING "0"
-- Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC "40"
-- Retrieval info: PRIVATE: MULT_FACTOR1 NUMERIC "80"
-- Retrieval info: PRIVATE: NORMAL_MODE_RADIO STRING "1"
-- Retrieval info: PRIVATE: OUTPUT_FREQ0 STRING "40.00000000"
-- Retrieval info: PRIVATE: OUTPUT_FREQ1 STRING "80.00000000"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE0 STRING "0"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE1 STRING "0"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING "MHz"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT1 STRING "MHz"
-- Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING "0"
-- Retrieval info: PRIVATE: PHASE_SHIFT0 STRING "0.00000000"
-- Retrieval info: PRIVATE: PHASE_SHIFT1 STRING "0.00000000"
-- Retrieval info: PRIVATE: PHASE_SHIFT_STEP_ENABLED_CHECK STRING "0"
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT0 STRING "deg"
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT1 STRING "deg"
-- Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_ARESET_CHECK STRING "1"
-- Retrieval info: PRIVATE: PLL_AUTOPLL_CHECK NUMERIC "1"
-- Retrieval info: PRIVATE: PLL_ENHPLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_FASTPLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_FBMIMIC_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_LVDS_PLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_PFDENA_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_TARGET_HARCOPY_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PRIMARY_CLK_COMBO STRING "inclk0"
-- Retrieval info: PRIVATE: RECONFIG_FILE STRING "pll_mist.mif"
-- Retrieval info: PRIVATE: SACN_INPUTS_CHECK STRING "0"
-- Retrieval info: PRIVATE: SCAN_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: SELF_RESET_LOCK_LOSS STRING "0"
-- Retrieval info: PRIVATE: SHORT_SCAN_RADIO STRING "0"
-- Retrieval info: PRIVATE: SPREAD_FEATURE_ENABLED STRING "0"
-- Retrieval info: PRIVATE: SPREAD_FREQ STRING "50.000"
-- Retrieval info: PRIVATE: SPREAD_FREQ_UNIT STRING "KHz"
-- Retrieval info: PRIVATE: SPREAD_PERCENT STRING "0.500"
-- Retrieval info: PRIVATE: SPREAD_USE STRING "0"
-- Retrieval info: PRIVATE: SRC_SYNCH_COMP_RADIO STRING "0"
-- Retrieval info: PRIVATE: STICKY_CLK0 STRING "1"
-- Retrieval info: PRIVATE: STICKY_CLK1 STRING "1"
-- Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUMERIC "1"
-- Retrieval info: PRIVATE: SWITCHOVER_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
-- Retrieval info: PRIVATE: USE_CLK0 STRING "1"
-- Retrieval info: PRIVATE: USE_CLK1 STRING "1"
-- Retrieval info: PRIVATE: USE_CLKENA0 STRING "0"
-- Retrieval info: PRIVATE: USE_CLKENA1 STRING "0"
-- Retrieval info: PRIVATE: USE_MIL_SPEED_GRADE NUMERIC "0"
-- Retrieval info: PRIVATE: ZERO_DELAY_RADIO STRING "0"
-- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
-- Retrieval info: CONSTANT: BANDWIDTH_TYPE STRING "AUTO"
-- Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC "27"
-- Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC "50"
-- Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC "40"
-- Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING "0"
-- Retrieval info: CONSTANT: CLK1_DIVIDE_BY NUMERIC "27"
-- Retrieval info: CONSTANT: CLK1_DUTY_CYCLE NUMERIC "50"
-- Retrieval info: CONSTANT: CLK1_MULTIPLY_BY NUMERIC "80"
-- Retrieval info: CONSTANT: CLK1_PHASE_SHIFT STRING "0"
-- Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK0"
-- Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC "37037"
-- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone III"
-- Retrieval info: CONSTANT: LPM_TYPE STRING "altpll"
-- Retrieval info: CONSTANT: OPERATION_MODE STRING "NORMAL"
-- Retrieval info: CONSTANT: PLL_TYPE STRING "AUTO"
-- Retrieval info: CONSTANT: PORT_ACTIVECLOCK STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_ARESET STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_CLKBAD0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKBAD1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKLOSS STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKSWITCH STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CONFIGUPDATE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_FBIN STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_INCLK0 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_INCLK1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_LOCKED STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_PFDENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASECOUNTERSELECT STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASEDONE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASESTEP STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASEUPDOWN STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PLLENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANACLR STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANCLK STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANCLKENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDATA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDATAOUT STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDONE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANREAD STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANWRITE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_clk2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk4 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk5 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena4 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena5 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: SELF_RESET_ON_LOSS_LOCK STRING "OFF"
-- Retrieval info: CONSTANT: WIDTH_CLOCK NUMERIC "5"
-- Retrieval info: USED_PORT: @clk 0 0 5 0 OUTPUT_CLK_EXT VCC "@clk[4..0]"
-- Retrieval info: USED_PORT: @inclk 0 0 2 0 INPUT_CLK_EXT VCC "@inclk[1..0]"
-- Retrieval info: USED_PORT: areset 0 0 0 0 INPUT GND "areset"
-- Retrieval info: USED_PORT: c0 0 0 0 0 OUTPUT_CLK_EXT VCC "c0"
-- Retrieval info: USED_PORT: c1 0 0 0 0 OUTPUT_CLK_EXT VCC "c1"
-- Retrieval info: USED_PORT: inclk0 0 0 0 0 INPUT_CLK_EXT GND "inclk0"
-- Retrieval info: USED_PORT: locked 0 0 0 0 OUTPUT GND "locked"
-- Retrieval info: CONNECT: @areset 0 0 0 0 areset 0 0 0 0
-- Retrieval info: CONNECT: @inclk 0 0 1 1 GND 0 0 0 0
-- Retrieval info: CONNECT: @inclk 0 0 1 0 inclk0 0 0 0 0
-- Retrieval info: CONNECT: c0 0 0 0 0 @clk 0 0 1 0
-- Retrieval info: CONNECT: c1 0 0 0 0 @clk 0 0 1 1
-- Retrieval info: CONNECT: locked 0 0 0 0 @locked 0 0 0 0
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.vhd TRUE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.ppf TRUE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.inc FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.cmp FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.bsf FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist_inst.vhd FALSE
-- Retrieval info: LIB_FILE: altera_mf
-- Retrieval info: CBX_MODULE_PREFIX: ON

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity kick_bg_bits_1 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of kick_bg_bits_1 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"55",X"55",X"55",X"55",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"AA",X"AA",X"FF",X"FF",X"AA",X"AA",X"AA",X"AA",X"00",X"00",X"FF",X"FF",
X"AA",X"A0",X"AA",X"A8",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"0F",X"55",X"0F",X"55",X"4F",X"FF",X"FF",X"AA",X"AA",X"AA",X"AA",X"00",X"00",X"FF",X"FF",
X"00",X"00",X"55",X"55",X"55",X"55",X"FF",X"FF",X"AA",X"AA",X"AA",X"AA",X"00",X"00",X"FF",X"FF",
X"00",X"AA",X"00",X"2A",X"00",X"0A",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"00",X"0F",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",
X"C0",X"03",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",X"C2",X"AB",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",
X"FF",X"FF",X"AA",X"AA",X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"80",X"00",X"FF",X"FF",X"FF",X"FF",
X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"CA",X"A8",X"80",X"00",
X"00",X"00",X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"AA",X"A8",X"AA",X"A8",X"AA",X"A8",X"AA",X"A8",
X"55",X"50",X"55",X"50",X"55",X"50",X"00",X"00",X"AA",X"A0",X"AA",X"A8",X"FF",X"FF",X"FF",X"FF",
X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",
X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",X"55",X"50",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"AA",X"AA",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",
X"A6",X"6A",X"A6",X"6A",X"AE",X"6A",X"AA",X"EA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"A5",X"5A",X"A6",X"AA",X"A5",X"5A",X"A6",X"AA",X"A5",X"5A",X"AA",X"AA",X"A5",X"5A",
X"AA",X"AA",X"A5",X"5A",X"A6",X"9A",X"A6",X"9A",X"A9",X"6A",X"AA",X"AA",X"A5",X"5A",X"AA",X"9A",
X"A5",X"5A",X"AA",X"9A",X"A5",X"5A",X"AA",X"AA",X"A5",X"5A",X"A6",X"6A",X"A5",X"5A",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"00",X"05",X"00",X"05",X"00",X"15",X"00",X"15",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"AA",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"95",X"55",X"95",X"55",X"95",X"55",X"95",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"55",X"00",X"55",X"00",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"0F",X"00",X"03",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"03",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"08",X"00",X"08",X"00",X"0A",X"00",X"0A",X"00",X"0A",X"80",X"0A",X"80",X"02",X"A0",X"02",X"A8",
X"02",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"2A",X"00",X"0A",X"00",X"02",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"03",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"0C",
X"55",X"5A",X"55",X"5A",X"55",X"56",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"51",X"95",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"51",X"95",X"59",X"95",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"15",X"51",X"95",X"59",X"95",X"59",X"95",X"00",X"00",
X"00",X"00",X"55",X"15",X"51",X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"6A",X"AA",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"57",X"00",X"00",X"00",
X"00",X"00",X"51",X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"6A",X"AA",X"2A",X"AA",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"5C",X"01",X"5C",X"C1",X"5C",X"00",X"00",X"00",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"54",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"51",X"54",X"51",X"54",X"50",X"00",X"50",X"00",X"55",X"54",X"55",X"54",X"55",X"55",
X"55",X"55",X"51",X"00",X"51",X"00",X"51",X"14",X"51",X"14",X"50",X"14",X"50",X"14",X"55",X"55",
X"55",X"55",X"51",X"14",X"51",X"14",X"51",X"14",X"51",X"14",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"54",X"05",X"54",X"05",X"55",X"45",X"55",X"45",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"14",X"51",X"14",X"51",X"14",X"51",X"14",X"51",X"00",X"51",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"44",X"51",X"44",X"51",X"40",X"51",X"40",X"55",X"55",
X"55",X"55",X"55",X"55",X"50",X"55",X"51",X"55",X"51",X"55",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"14",X"51",X"14",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"04",X"50",X"04",X"51",X"44",X"51",X"44",X"50",X"00",X"50",X"00",X"55",X"55",
X"00",X"00",X"59",X"95",X"59",X"95",X"6A",X"AA",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"15",X"51",X"95",X"59",X"95",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"57",X"00",X"57",X"30",X"57",X"00",X"57",X"00",X"00",X"00",
X"00",X"00",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"55",X"55",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"15",X"51",X"95",X"59",X"95",X"59",X"95",X"00",X"00",
X"00",X"00",X"55",X"55",X"57",X"00",X"57",X"30",X"57",X"00",X"57",X"00",X"57",X"FF",X"00",X"00",
X"00",X"00",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"55",X"55",X"55",X"55",X"00",X"00",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"45",X"51",X"45",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"50",X"44",X"50",X"44",X"50",X"00",X"55",X"40",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"54",X"51",X"54",X"51",X"54",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"50",X"50",X"50",X"00",X"54",X"01",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"14",X"51",X"14",X"51",X"14",X"51",X"54",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"45",X"51",X"45",X"51",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"54",X"51",X"40",X"51",X"40",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"55",X"45",X"55",X"45",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"51",X"54",X"51",X"54",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"54",X"55",X"55",
X"55",X"55",X"55",X"40",X"55",X"40",X"51",X"54",X"51",X"54",X"50",X"00",X"50",X"00",X"51",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"54",X"05",X"50",X"41",X"51",X"50",X"51",X"54",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"55",X"54",X"55",X"54",X"55",X"50",X"55",X"50",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"55",X"50",X"00",X"51",X"55",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"54",X"15",X"55",X"01",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"54",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"45",X"51",X"45",X"50",X"05",X"50",X"05",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"54",X"51",X"50",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"51",X"15",X"51",X"05",X"50",X"00",X"50",X"10",X"55",X"55",
X"55",X"55",X"50",X"14",X"51",X"14",X"51",X"14",X"51",X"00",X"51",X"00",X"55",X"55",X"55",X"55",
X"55",X"55",X"50",X"55",X"51",X"54",X"50",X"00",X"50",X"00",X"51",X"54",X"50",X"55",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"55",X"54",X"55",X"54",X"50",X"00",X"50",X"00",X"55",X"55",
X"55",X"55",X"51",X"55",X"50",X"05",X"50",X"00",X"55",X"40",X"50",X"05",X"51",X"55",X"55",X"55",
X"55",X"55",X"50",X"00",X"50",X"00",X"55",X"54",X"50",X"00",X"55",X"54",X"50",X"00",X"55",X"55",
X"55",X"55",X"51",X"54",X"50",X"40",X"55",X"05",X"50",X"15",X"50",X"45",X"51",X"50",X"55",X"55",
X"55",X"55",X"51",X"55",X"50",X"15",X"54",X"00",X"55",X"00",X"50",X"55",X"51",X"55",X"55",X"55",
X"55",X"55",X"51",X"50",X"51",X"40",X"51",X"04",X"50",X"14",X"50",X"54",X"51",X"54",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"55",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"55",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"6A",X"AA",X"5A",X"AA",X"5A",X"AA",X"02",X"AA",X"02",X"AA",
X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",
X"00",X"55",X"01",X"55",X"01",X"55",X"05",X"55",X"15",X"55",X"15",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"55",X"15",X"51",X"95",X"59",X"95",X"59",X"95",X"59",X"95",X"6A",X"AA",X"00",X"00",
X"00",X"00",X"57",X"00",X"57",X"00",X"57",X"00",X"57",X"FF",X"55",X"55",X"55",X"55",X"00",X"00",
X"00",X"00",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"A9",X"FF",X"00",X"00",
X"00",X"00",X"51",X"95",X"59",X"95",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"00",X"00",
X"00",X"00",X"55",X"55",X"55",X"55",X"57",X"00",X"57",X"30",X"57",X"00",X"57",X"00",X"00",X"00",
X"00",X"00",X"59",X"95",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"55",X"55",X"00",X"00",
X"00",X"00",X"55",X"55",X"57",X"00",X"57",X"30",X"57",X"00",X"57",X"00",X"57",X"FF",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"6A",X"AA",X"5A",X"AA",
X"00",X"00",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"00",X"00",X"55",X"C0",X"55",X"C0",X"55",X"FF",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"00",X"00",X"55",X"FF",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"56",X"AA",X"55",X"AA",X"55",X"AA",X"55",X"6A",X"55",X"5A",X"55",X"5A",X"55",X"56",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"20",X"02",X"20",X"02",X"20",X"2A",X"AA",X"2A",X"AA",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"15",X"30",X"15",X"00",X"15",X"00",X"15",X"FF",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"C0",X"0A",X"CC",X"0A",X"C0",X"0A",X"C0",X"0A",X"FF",X"C0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"30",X"00",X"33",X"00",X"30",X"00",X"30",X"00",X"3F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0F",X"00",X"00",
X"55",X"45",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"59",X"95",X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",X"55",X"55",X"55",X"55",
X"2A",X"AA",X"6A",X"AA",X"59",X"95",X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",
X"56",X"FF",X"56",X"FF",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"59",X"95",X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",
X"5C",X"00",X"5C",X"00",X"5C",X"81",X"5C",X"01",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"6A",X"AA",X"59",X"95",X"59",X"95",X"51",X"95",
X"57",X"00",X"57",X"00",X"57",X"00",X"57",X"30",X"57",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"55",X"55",X"55",X"55",
X"59",X"95",X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"57",X"FF",X"57",X"00",X"57",X"00",X"57",X"30",X"57",X"00",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",
X"2A",X"AA",X"6A",X"AA",X"59",X"95",X"59",X"95",X"59",X"95",X"51",X"95",X"55",X"15",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"57",X"FF",X"57",X"00",X"57",X"00",X"57",X"00",X"57",X"00",
X"57",X"30",X"57",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"59",X"95",X"51",X"95",X"55",X"15",
X"57",X"FF",X"57",X"00",X"57",X"00",X"57",X"30",X"57",X"00",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"6A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"6A",X"AA",X"59",X"95",X"59",X"95",
X"55",X"55",X"57",X"FF",X"57",X"00",X"57",X"00",X"57",X"30",X"57",X"00",X"55",X"55",X"55",X"55",
X"55",X"55",X"FF",X"D5",X"C0",X"1A",X"C0",X"0A",X"CC",X"0A",X"C0",X"1A",X"55",X"55",X"55",X"55",
X"55",X"55",X"FF",X"D5",X"C0",X"1A",X"C0",X"0A",X"CC",X"0A",X"C0",X"1A",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"7F",X"55",X"70",X"55",X"70",X"55",X"73",X"55",X"70",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"5F",X"55",X"5C",X"55",X"5C",X"55",X"5C",X"55",X"5C",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"A5",X"AA",X"AA",X"5A",X"AA",X"5A",X"A5",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"6A",X"AA",X"5A",X"AA",X"56",X"AA",X"55",X"AA",X"55",X"6A",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"5A",X"AA",
X"56",X"AA",X"56",X"AA",X"55",X"AA",X"55",X"AA",X"55",X"6A",X"55",X"5A",X"55",X"56",X"55",X"56",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"50",X"55",X"50",X"55",X"40",X"55",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"2A",X"AA",X"0A",X"AA",X"5A",X"AA",X"56",X"AA",X"55",X"AA",X"55",X"AA",
X"54",X"00",X"50",X"00",X"40",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0A",X"AA",X"02",X"AA",X"00",X"AA",X"00",X"2A",X"00",X"2A",X"00",X"0A",X"00",X"0A",X"00",X"02",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"2A",X"AA",X"2A",X"AA",X"0A",X"AA",
X"6A",X"AA",X"6A",X"AA",X"00",X"0A",X"00",X"02",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"5A",X"55",X"5A",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"50",X"55",X"50",X"55",X"40",X"55",X"00",X"55",X"00",X"54",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"5A",X"55",X"5A",X"55",X"5A",X"55",X"5A",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"02",X"AA",X"00",X"AA",X"00",X"2A",X"00",X"2A",X"C0",X"0A",X"FF",X"0A",X"00",X"00",X"C0",X"00",
X"55",X"57",X"55",X"57",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FF",X"FF",X"FF",X"FF",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"FF",X"AA",X"FF",X"AA",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"2A",X"AA",X"0A",X"AA",X"0A",X"AA",
X"54",X"00",X"54",X"00",X"54",X"00",X"55",X"00",X"55",X"00",X"55",X"40",X"55",X"40",X"55",X"40",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"2A",X"00",X"2A",X"00",X"0A",X"00",X"02",X"00",X"02",X"FF",X"C0",X"C0",X"00",X"C0",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"40",X"55",X"00",X"55",X"00",X"54",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"AA",X"AA",X"2A",X"AA",X"0A",X"AA",X"0A",X"AA",X"02",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"2A",
X"50",X"00",X"50",X"00",X"50",X"00",X"50",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",
X"0A",X"AA",X"02",X"AA",X"00",X"AA",X"80",X"2A",X"00",X"2A",X"00",X"0A",X"A8",X"0A",X"00",X"00",
X"55",X"00",X"55",X"00",X"55",X"00",X"55",X"00",X"54",X"00",X"54",X"00",X"54",X"00",X"54",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"40",X"55",X"00",
X"00",X"AA",X"00",X"2A",X"28",X"0A",X"00",X"02",X"00",X"02",X"0C",X"02",X"02",X"A0",X"02",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"0A",X"AA",X"0A",X"AA",X"02",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"56",X"55",X"6A",X"55",X"AA",X"5A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"56",X"55",X"6A",
X"02",X"AA",X"2A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",X"40",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0A",X"00",X"AA",X"02",X"AA",X"2A",X"AA",X"AA",X"AA",
X"55",X"56",X"55",X"6A",X"55",X"AA",X"5A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"55",X"AA",X"56",X"AA",X"5A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"56",X"55",X"6A",X"56",X"AA",X"5A",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"6A",X"55",X"56",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"55",X"FF",X"55",X"FF",
X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",
X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"FF",X"AA",X"FF",X"AA",
X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"AA",X"FF",X"AA",X"00",X"AA",X"02",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",
X"55",X"FF",X"55",X"FF",X"55",X"00",X"55",X"40",X"55",X"50",X"55",X"54",X"55",X"55",X"55",X"55",
X"55",X"6A",X"55",X"5A",X"55",X"56",X"55",X"56",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"57",X"67",X"67",X"67",X"65",X"67",X"66",X"65",X"56",X"67",X"76",X"57",X"75",X"77",X"76",X"77",
X"AA",X"57",X"AA",X"67",X"AA",X"67",X"AA",X"65",X"AA",X"67",X"AA",X"57",X"AA",X"77",X"AA",X"75",
X"55",X"55",X"55",X"41",X"41",X"14",X"40",X"04",X"41",X"14",X"51",X"14",X"55",X"41",X"55",X"55",
X"55",X"55",X"55",X"55",X"51",X"04",X"51",X"15",X"51",X"15",X"50",X"15",X"55",X"55",X"55",X"55",
X"00",X"00",X"15",X"54",X"14",X"14",X"11",X"44",X"11",X"44",X"11",X"44",X"15",X"54",X"00",X"00",
X"5A",X"AA",X"5A",X"AA",X"5A",X"AA",X"56",X"AA",X"56",X"AA",X"55",X"AA",X"55",X"6A",X"55",X"56",
X"55",X"56",X"55",X"6A",X"55",X"AA",X"56",X"AA",X"56",X"AA",X"5A",X"AA",X"5A",X"AA",X"5A",X"AA",
X"AA",X"A5",X"AA",X"A5",X"AA",X"A5",X"AA",X"95",X"AA",X"95",X"AA",X"55",X"A9",X"55",X"95",X"55",
X"95",X"55",X"A9",X"55",X"AA",X"55",X"AA",X"95",X"AA",X"95",X"AA",X"A5",X"AA",X"A5",X"AA",X"A5",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"30",X"00",X"C0",X"00",X"0C",X"03",X"0C",X"08",X"38",X"00",X"30",X"00",X"00",X"00",X"00",X"00",
X"02",X"00",X"00",X"E0",X"00",X"30",X"00",X"0F",X"00",X"00",X"FF",X"FF",X"03",X"03",X"0C",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"C0",X"00",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"20",X"00",X"C0",X"00",X"CF",X"00",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"02",X"AA",X"00",X"00",X"A3",X"00",X"80",X"C0",X"00",X"30",X"0F",X"FF",X"00",X"00",X"00",X"03",
X"00",X"00",X"00",X"00",X"00",X"00",X"A8",X"00",X"2A",X"A0",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"02",X"00",X"00",X"80",X"00",X"AA",X"00",X"00",X"00",X"00",X"00",X"02",X"00",X"28",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"E0",X"00",X"E0",X"00",X"E0",X"00",X"E0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"C0",X"08",X"C0",X"08",X"C0",X"08",X"C0",X"08",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"08",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity kick_bg_bits_2 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of kick_bg_bits_2 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0A",X"00",X"02",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"00",X"00",
X"55",X"55",X"55",X"55",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"40",X"00",X"55",X"55",X"55",X"55",
X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"45",X"54",X"40",X"00",
X"00",X"00",X"00",X"00",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",X"55",X"54",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"50",X"55",X"54",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0A",X"A0",X"08",X"00",X"0A",X"A0",X"08",X"00",X"0A",X"A0",X"00",X"00",X"0A",X"A0",
X"00",X"00",X"0A",X"A0",X"08",X"20",X"08",X"20",X"02",X"80",X"00",X"00",X"0A",X"A0",X"00",X"20",
X"0A",X"A0",X"00",X"20",X"0A",X"A0",X"00",X"00",X"0A",X"A0",X"08",X"80",X"0A",X"A0",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"A9",X"AA",X"A5",X"AA",X"A5",X"AA",X"95",X"AA",X"95",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"0F",X"00",X"03",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"03",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0C",X"00",X"0C",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"C0",X"0F",X"C0",X"03",X"F0",X"03",X"FC",
X"03",X"FF",X"00",X"FF",X"00",X"FF",X"00",X"3F",X"00",X"0F",X"00",X"03",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"03",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"0C",
X"55",X"5A",X"55",X"5A",X"55",X"56",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",X"C0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"0C",X"C0",X"00",X"00",
X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"3F",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"55",X"00",X"00",
X"00",X"00",X"04",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"3F",X"FF",X"7F",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0D",X"54",X"0D",X"14",X"0D",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"01",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"04",X"01",X"04",X"01",X"05",X"55",X"05",X"55",X"00",X"01",X"00",X"01",X"00",X"00",
X"00",X"00",X"04",X"55",X"04",X"55",X"04",X"41",X"04",X"41",X"05",X"41",X"05",X"41",X"00",X"00",
X"00",X"00",X"04",X"41",X"04",X"41",X"04",X"41",X"04",X"41",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"01",X"50",X"01",X"50",X"00",X"10",X"00",X"10",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"41",X"04",X"41",X"04",X"41",X"04",X"41",X"04",X"55",X"04",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"11",X"04",X"11",X"04",X"15",X"04",X"15",X"00",X"00",
X"00",X"00",X"00",X"00",X"05",X"00",X"04",X"00",X"04",X"00",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"41",X"04",X"41",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"51",X"05",X"51",X"04",X"11",X"04",X"11",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"0C",X"C0",X"0C",X"C0",X"3F",X"FF",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"55",X"03",X"45",X"03",X"55",X"03",X"55",X"00",X"00",
X"00",X"00",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"0C",X"C0",X"00",X"00",
X"00",X"00",X"00",X"00",X"03",X"55",X"03",X"45",X"03",X"55",X"03",X"55",X"03",X"FF",X"00",X"00",
X"00",X"00",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"10",X"04",X"10",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"05",X"11",X"05",X"11",X"05",X"55",X"00",X"15",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"01",X"04",X"01",X"04",X"01",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"05",X"05",X"05",X"55",X"01",X"54",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"41",X"04",X"41",X"04",X"41",X"04",X"01",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"10",X"04",X"10",X"04",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"01",X"04",X"15",X"04",X"15",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"00",X"10",X"00",X"10",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"04",X"01",X"04",X"01",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"01",X"00",X"00",
X"00",X"00",X"00",X"15",X"00",X"15",X"04",X"01",X"04",X"01",X"05",X"55",X"05",X"55",X"04",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"01",X"50",X"05",X"14",X"04",X"05",X"04",X"01",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"00",X"01",X"00",X"01",X"00",X"05",X"00",X"05",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"00",X"05",X"55",X"04",X"00",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"01",X"40",X"00",X"54",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"01",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"10",X"04",X"10",X"05",X"50",X"05",X"50",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"01",X"04",X"05",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"04",X"40",X"04",X"50",X"05",X"55",X"05",X"45",X"00",X"00",
X"00",X"00",X"05",X"41",X"04",X"41",X"04",X"41",X"04",X"55",X"04",X"55",X"00",X"00",X"00",X"00",
X"00",X"00",X"05",X"00",X"04",X"01",X"05",X"55",X"05",X"55",X"04",X"01",X"05",X"00",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"00",X"01",X"00",X"01",X"05",X"55",X"05",X"55",X"00",X"00",
X"00",X"00",X"04",X"00",X"05",X"50",X"05",X"55",X"00",X"15",X"05",X"50",X"04",X"00",X"00",X"00",
X"00",X"00",X"05",X"55",X"05",X"55",X"00",X"01",X"05",X"55",X"00",X"01",X"05",X"55",X"00",X"00",
X"00",X"00",X"04",X"01",X"05",X"15",X"00",X"50",X"05",X"40",X"05",X"10",X"04",X"05",X"00",X"00",
X"00",X"00",X"04",X"00",X"05",X"40",X"01",X"55",X"00",X"55",X"05",X"00",X"04",X"00",X"00",X"00",
X"00",X"00",X"04",X"05",X"04",X"15",X"04",X"51",X"05",X"41",X"05",X"01",X"04",X"01",X"00",X"00",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"00",X"00",X"01",X"00",X"05",X"00",X"05",X"00",X"15",X"00",X"55",X"00",X"AA",X"00",X"AA",
X"00",X"00",X"00",X"01",X"00",X"05",X"00",X"05",X"00",X"15",X"00",X"55",X"00",X"AA",X"00",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"6A",X"AA",X"5A",X"AA",X"5A",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"2A",X"00",X"2A",X"00",X"2A",X"00",X"2A",X"00",X"2A",X"00",X"2A",X"00",X"2A",X"00",X"2A",
X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",
X"AA",X"55",X"A9",X"55",X"A9",X"55",X"A5",X"55",X"95",X"55",X"95",X"55",X"55",X"55",X"55",X"55",
X"00",X"00",X"00",X"40",X"04",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"3F",X"FF",X"00",X"00",
X"00",X"00",X"03",X"55",X"03",X"55",X"03",X"55",X"03",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"04",X"C0",X"0C",X"C0",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"55",X"03",X"45",X"03",X"55",X"03",X"55",X"00",X"00",
X"00",X"00",X"0C",X"C0",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"03",X"55",X"03",X"45",X"03",X"55",X"03",X"55",X"03",X"FF",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"6A",X"AA",X"6A",X"AA",X"5A",X"AA",
X"00",X"00",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"D5",X"00",X"D5",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"56",X"AA",X"55",X"AA",X"55",X"AA",X"55",X"6A",X"55",X"5A",X"55",X"5A",X"55",X"56",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"6A",X"00",X"00",
X"AA",X"AA",X"AA",X"9A",X"A9",X"BA",X"AB",X"BA",X"AB",X"BA",X"BF",X"FF",X"7F",X"FF",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"55",X"80",X"45",X"40",X"55",X"40",X"55",X"80",X"FF",X"AA",X"00",X"00",
X"AA",X"AA",X"A9",X"AA",X"D5",X"6F",X"D1",X"5F",X"D5",X"5F",X"D5",X"6F",X"FF",X"EA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"B5",X"AA",X"B4",X"AA",X"B5",X"AA",X"B5",X"AA",X"BF",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AD",X"AA",X"AD",X"AA",X"AD",X"AA",X"AD",X"AA",X"AF",X"AA",X"AA",
X"00",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"7F",X"FF",X"3F",X"FF",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",
X"0D",X"55",X"0D",X"55",X"0D",X"14",X"0D",X"54",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"3F",X"FF",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",
X"03",X"55",X"03",X"55",X"03",X"55",X"03",X"45",X"03",X"55",X"00",X"00",X"00",X"00",X"00",X"00",
X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"00",X"00",X"00",X"00",
X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"03",X"FF",X"03",X"55",X"03",X"55",X"03",X"45",X"03",X"55",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",
X"7F",X"FF",X"3F",X"FF",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"04",X"C0",X"00",X"40",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"FF",X"03",X"55",X"03",X"55",X"03",X"55",X"03",X"55",
X"03",X"45",X"03",X"55",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"0C",X"C0",X"04",X"C0",X"00",X"40",
X"03",X"FF",X"03",X"55",X"03",X"55",X"03",X"45",X"03",X"55",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"3F",X"FF",X"7F",X"FF",X"7F",X"FF",X"7F",X"FF",X"3F",X"FF",X"0C",X"C0",X"0C",X"C0",
X"00",X"00",X"03",X"FF",X"03",X"55",X"03",X"55",X"03",X"45",X"03",X"55",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"C0",X"D5",X"4F",X"D5",X"5F",X"D1",X"5F",X"D5",X"4F",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"C0",X"D5",X"4F",X"D5",X"5F",X"D1",X"5F",X"D5",X"4F",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"3F",X"00",X"35",X"00",X"35",X"00",X"34",X"00",X"35",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"0F",X"00",X"0D",X"00",X"0D",X"00",X"0D",X"00",X"0D",X"00",X"00",X"00",X"00",
X"00",X"00",X"0A",X"00",X"00",X"A0",X"00",X"A0",X"0A",X"00",X"00",X"00",X"00",X"00",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"03",X"00",X"03",X"00",X"0F",X"00",X"3F",
X"0F",X"FF",X"3F",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FD",X"55",X"FD",X"55",X"F5",X"55",X"D5",X"55",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"EA",X"AA",X"EA",X"AA",X"5A",X"AA",X"56",X"AA",X"55",X"AA",X"55",X"6A",
X"00",X"00",X"00",X"00",X"00",X"03",X"00",X"0F",X"00",X"3F",X"00",X"3F",X"00",X"FF",X"03",X"FF",
X"00",X"03",X"00",X"0F",X"00",X"3F",X"00",X"FF",X"00",X"FF",X"03",X"FF",X"0F",X"FF",X"3F",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"EA",X"AA",X"FA",X"AA",
X"FE",X"AA",X"FE",X"AA",X"FF",X"AA",X"FF",X"AA",X"FF",X"EA",X"FF",X"FA",X"FF",X"FE",X"FF",X"FE",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"0A",X"00",X"0A",X"00",X"2A",X"00",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"FF",X"3F",X"FF",X"FF",X"FF",X"FF",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"FA",X"AA",X"FE",X"AA",X"FF",X"AA",X"FF",X"AA",
X"02",X"AA",X"0A",X"AA",X"2A",X"AA",X"2A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"0A",X"00",X"0A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"00",X"0A",X"00",X"0A",X"00",X"2A",X"00",X"AA",X"00",X"AA",X"02",X"AA",
X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"0A",X"00",X"0A",X"00",X"0A",X"00",X"0A",X"00",X"0A",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FE",X"AA",X"FF",X"AA",X"FF",X"EA",X"FF",X"EA",X"3F",X"FA",X"00",X"FA",X"FF",X"FF",X"3F",X"FF",
X"00",X"02",X"00",X"02",X"0A",X"AA",X"2A",X"AA",X"2A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"EA",X"AA",X"FA",X"AA",X"FA",X"AA",
X"03",X"FF",X"03",X"FF",X"03",X"FF",X"00",X"FF",X"00",X"FF",X"00",X"3F",X"00",X"3F",X"00",X"3F",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"EA",X"FF",X"EA",X"FF",X"FA",X"FF",X"FE",X"FF",X"FE",X"00",X"3F",X"3F",X"FF",X"3F",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"2A",X"00",X"AA",X"00",X"AA",X"02",X"AA",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"EA",X"AA",X"FA",X"AA",X"FA",X"AA",X"FE",X"AA",X"FF",X"AA",X"FF",X"AA",X"FF",X"EA",
X"0F",X"FF",X"0F",X"FF",X"0F",X"FF",X"0F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",X"3F",X"FF",
X"FA",X"AA",X"FE",X"AA",X"FF",X"AA",X"3F",X"EA",X"FF",X"EA",X"FF",X"FA",X"03",X"FA",X"FF",X"FF",
X"00",X"FF",X"00",X"FF",X"00",X"FF",X"00",X"FF",X"03",X"FF",X"03",X"FF",X"03",X"FF",X"03",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"00",X"3F",X"00",X"3F",X"00",X"3F",X"00",X"FF",
X"FF",X"AA",X"FF",X"EA",X"C3",X"FA",X"FF",X"FE",X"FF",X"FE",X"F3",X"FE",X"FC",X"0F",X"FC",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"FA",X"AA",X"FA",X"AA",X"FE",X"AA",
X"55",X"55",X"15",X"55",X"05",X"55",X"01",X"55",X"00",X"55",X"00",X"15",X"00",X"05",X"00",X"01",
X"55",X"55",X"55",X"56",X"55",X"6A",X"55",X"AA",X"5A",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"56",X"55",X"6A",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",X"2A",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"AA",X"FE",X"AA",X"FA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FE",X"FF",X"EA",X"FE",X"AA",X"FA",X"AA",
X"3F",X"FF",X"0F",X"FF",X"03",X"FF",X"AB",X"FF",X"AA",X"FF",X"AA",X"BF",X"AA",X"AF",X"AA",X"AB",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"AA",
X"00",X"AA",X"00",X"AA",X"00",X"AA",X"00",X"2A",X"00",X"02",X"00",X"00",X"00",X"00",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"2A",X"AA",X"00",X"00",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"00",X"AA",X"00",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"FF",X"AA",X"FE",X"AA",X"EA",X"AA",X"EA",X"AA",X"EA",X"AA",X"EA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",
X"00",X"AA",X"00",X"AA",X"00",X"FF",X"00",X"3F",X"00",X"0F",X"00",X"03",X"00",X"00",X"00",X"00",
X"FF",X"EA",X"FF",X"FA",X"FF",X"FE",X"FF",X"FE",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FE",X"CE",X"CE",X"CE",X"CF",X"CE",X"CC",X"CF",X"FC",X"CE",X"EC",X"FE",X"EF",X"EE",X"EC",X"EE",
X"AA",X"FE",X"AA",X"CE",X"AA",X"CE",X"AA",X"CF",X"AA",X"CE",X"AA",X"FE",X"AA",X"EE",X"AA",X"EF",
X"00",X"00",X"00",X"14",X"14",X"41",X"15",X"51",X"14",X"41",X"04",X"41",X"00",X"14",X"00",X"00",
X"00",X"00",X"00",X"00",X"04",X"51",X"04",X"40",X"04",X"40",X"05",X"40",X"00",X"00",X"00",X"00",
X"55",X"55",X"40",X"01",X"41",X"41",X"44",X"11",X"44",X"11",X"44",X"11",X"40",X"01",X"55",X"55",
X"0F",X"FF",X"0F",X"FF",X"0F",X"FF",X"03",X"FF",X"03",X"FF",X"00",X"FF",X"00",X"3F",X"00",X"03",
X"00",X"03",X"00",X"3F",X"00",X"FF",X"03",X"FF",X"03",X"FF",X"0F",X"FF",X"0F",X"FF",X"0F",X"FF",
X"FF",X"F0",X"FF",X"F0",X"FF",X"F0",X"FF",X"C0",X"FF",X"C0",X"FF",X"00",X"FC",X"00",X"C0",X"00",
X"C0",X"00",X"FC",X"00",X"FF",X"00",X"FF",X"C0",X"FF",X"C0",X"FF",X"F0",X"FF",X"F0",X"FF",X"F0",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"CF",X"FF",X"3F",X"FF",X"F3",X"FC",X"F3",X"F3",X"C3",X"FF",X"CF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FC",X"FF",X"FF",X"0F",X"FF",X"CF",X"FF",X"F0",X"FF",X"FF",X"00",X"00",X"FC",X"FC",X"F3",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"00",X"FF",X"3F",X"FF",X"3F",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"CF",X"FF",X"3F",X"FF",X"30",X"FF",X"3F",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FC",X"00",X"FF",X"FF",X"0C",X"FF",X"3F",X"3F",X"FF",X"CF",X"F0",X"00",X"FF",X"FF",X"FF",X"FC",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"03",X"FF",X"C0",X"0F",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FC",X"FF",X"FF",X"3F",X"FF",X"00",X"FF",X"FF",X"FF",X"FF",X"FF",X"FC",X"FF",X"C3",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

File diff suppressed because it is too large Load Diff

View File

@@ -1,24 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity midssio_82s123 is
port (
clk : in std_logic;
addr : in std_logic_vector(4 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of midssio_82s123 is
type rom is array(0 to 31) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"FF",X"FF",X"FF",X"FF",X"FF",X"7F",X"FF",X"FF",X"FE",X"FF",X"FF",X"FD",X"FF",X"FE",X"FF",X"F7",
X"FB",X"EF",X"6D",X"07",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,323 +0,0 @@
//
// sdram.v
//
// sdram controller implementation for the MiST board
// https://github.com/mist-devel/mist-board
//
// Copyright (c) 2013 Till Harbaum <till@harbaum.org>
// Copyright (c) 2019 Gyorgy Szombathelyi
//
// This source file is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This source file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
module sdram (
// interface to the MT48LC16M16 chip
inout reg [15:0] SDRAM_DQ, // 16 bit bidirectional data bus
output reg [12:0] SDRAM_A, // 13 bit multiplexed address bus
output reg SDRAM_DQML, // two byte masks
output reg SDRAM_DQMH, // two byte masks
output reg [1:0] SDRAM_BA, // two banks
output SDRAM_nCS, // a single chip select
output SDRAM_nWE, // write enable
output SDRAM_nRAS, // row address select
output SDRAM_nCAS, // columns address select
// cpu/chipset interface
input init_n, // init signal after FPGA config to initialize RAM
input clk, // sdram clock
input port1_req,
output reg port1_ack,
input port1_we,
input [23:1] port1_a,
input [1:0] port1_ds,
input [15:0] port1_d,
output [15:0] port1_q,
input [15:1] cpu1_addr,
output reg [15:0] cpu1_q,
input port2_req,
output reg port2_ack,
input port2_we,
input [23:1] port2_a,
input [1:0] port2_ds,
input [15:0] port2_d,
output [15:0] port2_q,
input [15:1] snd_addr,
output reg [15:0] snd_q
);
localparam RASCAS_DELAY = 3'd2; // tRCD=20ns -> 2 cycles@<100MHz
localparam BURST_LENGTH = 3'b000; // 000=1, 001=2, 010=4, 011=8
localparam ACCESS_TYPE = 1'b0; // 0=sequential, 1=interleaved
localparam CAS_LATENCY = 3'd2; // 2/3 allowed
localparam OP_MODE = 2'b00; // only 00 (standard operation) allowed
localparam NO_WRITE_BURST = 1'b1; // 0= write burst enabled, 1=only single access write
localparam MODE = { 3'b000, NO_WRITE_BURST, OP_MODE, CAS_LATENCY, ACCESS_TYPE, BURST_LENGTH};
// 64ms/8192 rows = 7.8us -> 842 cycles@108MHz
localparam RFRSH_CYCLES = 10'd842;
// ---------------------------------------------------------------------
// ------------------------ cycle state machine ------------------------
// ---------------------------------------------------------------------
/*
SDRAM state machine for 2 bank interleaved access
1 word burst, CL2
cmd issued registered
0 RAS0 cas1
1 ras0
2 CAS0 data1 returned
3 RAS1 cas0
4 ras1
5 CAS1 data0 returned
*/
localparam STATE_RAS0 = 3'd0; // first state in cycle
localparam STATE_RAS1 = 3'd3; // Second ACTIVE command after RAS0 + tRRD (15ns)
localparam STATE_CAS0 = STATE_RAS0 + RASCAS_DELAY; // CAS phase - 3
localparam STATE_CAS1 = STATE_RAS1 + RASCAS_DELAY; // CAS phase - 5
localparam STATE_READ0 = 3'd0; //STATE_CAS0 + CAS_LATENCY + 1'd1; // 7
localparam STATE_READ1 = 3'd3;
localparam STATE_LAST = 3'd5;
reg [2:0] t;
always @(posedge clk) begin
t <= t + 1'd1;
if (t == STATE_LAST) t <= STATE_RAS0;
end
// ---------------------------------------------------------------------
// --------------------------- startup/reset ---------------------------
// ---------------------------------------------------------------------
// wait 1ms (32 8Mhz cycles) after FPGA config is done before going
// into normal operation. Initialize the ram in the last 16 reset cycles (cycles 15-0)
reg [4:0] reset;
reg init = 1'b1;
always @(posedge clk, negedge init_n) begin
if(!init_n) begin
reset <= 5'h1f;
init <= 1'b1;
end else begin
if((t == STATE_LAST) && (reset != 0)) reset <= reset - 5'd1;
init <= !(reset == 0);
end
end
// ---------------------------------------------------------------------
// ------------------ generate ram control signals ---------------------
// ---------------------------------------------------------------------
// all possible commands
localparam CMD_INHIBIT = 4'b1111;
localparam CMD_NOP = 4'b0111;
localparam CMD_ACTIVE = 4'b0011;
localparam CMD_READ = 4'b0101;
localparam CMD_WRITE = 4'b0100;
localparam CMD_BURST_TERMINATE = 4'b0110;
localparam CMD_PRECHARGE = 4'b0010;
localparam CMD_AUTO_REFRESH = 4'b0001;
localparam CMD_LOAD_MODE = 4'b0000;
reg [3:0] sd_cmd; // current command sent to sd ram
reg [15:0] sd_din;
// drive control signals according to current command
assign SDRAM_nCS = sd_cmd[3];
assign SDRAM_nRAS = sd_cmd[2];
assign SDRAM_nCAS = sd_cmd[1];
assign SDRAM_nWE = sd_cmd[0];
reg [24:1] addr_latch[2];
reg [24:1] addr_latch_next[2];
reg [15:1] addr_last[2];
reg [15:1] addr_last2[2];
reg [15:0] din_latch[2];
reg [1:0] oe_latch;
reg [1:0] we_latch;
reg [1:0] ds[2];
localparam PORT_NONE = 2'd0;
localparam PORT_CPU1 = 2'd1;
localparam PORT_REQ = 2'd2;
localparam PORT_SND = 2'd1;
reg [2:0] next_port[2];
reg [2:0] port[2];
reg refresh;
reg [10:0] refresh_cnt;
wire need_refresh = (refresh_cnt >= RFRSH_CYCLES);
// PORT1: bank 0,1
always @(*) begin
if (refresh) begin
next_port[0] = PORT_NONE;
addr_latch_next[0] = addr_latch[0];
end else if (port1_req ^ port1_ack) begin
next_port[0] = PORT_REQ;
addr_latch_next[0] = { 1'b0, port1_a };
end else if (cpu1_addr != addr_last[PORT_CPU1]) begin
next_port[0] = PORT_CPU1;
addr_latch_next[0] = { 9'd0, cpu1_addr };
end else begin
next_port[0] = PORT_NONE;
addr_latch_next[0] = addr_latch[0];
end
end
// PORT2: bank 2,3
always @(*) begin
if (port2_req ^ port2_ack) begin
next_port[1] = PORT_REQ;
addr_latch_next[1] = { 1'b1, port2_a };
end else if (snd_addr != addr_last2[PORT_SND]) begin
next_port[1] = PORT_SND;
addr_latch_next[1] = { 1'b1, 8'd0, snd_addr };
end else begin
next_port[1] = PORT_NONE;
addr_latch_next[1] = addr_latch[1];
end
end
always @(posedge clk) begin
// permanently latch ram data to reduce delays
sd_din <= SDRAM_DQ;
SDRAM_DQ <= 16'bZZZZZZZZZZZZZZZZ;
{ SDRAM_DQMH, SDRAM_DQML } <= 2'b11;
sd_cmd <= CMD_NOP; // default: idle
refresh_cnt <= refresh_cnt + 1'd1;
if(init) begin
// initialization takes place at the end of the reset phase
if(t == STATE_RAS0) begin
if(reset == 15) begin
sd_cmd <= CMD_PRECHARGE;
SDRAM_A[10] <= 1'b1; // precharge all banks
end
if(reset == 10 || reset == 8) begin
sd_cmd <= CMD_AUTO_REFRESH;
end
if(reset == 2) begin
sd_cmd <= CMD_LOAD_MODE;
SDRAM_A <= MODE;
SDRAM_BA <= 2'b00;
end
end
end else begin
// RAS phase
// bank 0,1
if(t == STATE_RAS0) begin
addr_latch[0] <= addr_latch_next[0];
port[0] <= next_port[0];
{ oe_latch[0], we_latch[0] } <= 2'b00;
if (next_port[0] != PORT_NONE) begin
sd_cmd <= CMD_ACTIVE;
SDRAM_A <= addr_latch_next[0][22:10];
SDRAM_BA <= addr_latch_next[0][24:23];
addr_last[next_port[0]] <= addr_latch_next[0][15:1];
if (next_port[0] == PORT_REQ) begin
{ oe_latch[0], we_latch[0] } <= { ~port1_we, port1_we };
ds[0] <= port1_ds;
din_latch[0] <= port1_d;
end else begin
{ oe_latch[0], we_latch[0] } <= 2'b10;
ds[0] <= 2'b11;
end
end
end
// bank 2,3
if(t == STATE_RAS1) begin
refresh <= 1'b0;
addr_latch[1] <= addr_latch_next[1];
{ oe_latch[1], we_latch[1] } <= 2'b00;
port[1] <= next_port[1];
if (next_port[1] != PORT_NONE) begin
sd_cmd <= CMD_ACTIVE;
SDRAM_A <= addr_latch_next[1][22:10];
SDRAM_BA <= addr_latch_next[1][24:23];
addr_last2[next_port[1]] <= addr_latch_next[1][15:1];
if (next_port[1] == PORT_REQ) begin
{ oe_latch[1], we_latch[1] } <= { ~port2_we, port2_we };
ds[1] <= port2_ds;
din_latch[1] <= port2_d;
end else begin
{ oe_latch[1], we_latch[1] } <= 2'b10;
ds[1] <= 2'b11;
end
end
if (next_port[1] == PORT_NONE && need_refresh && !we_latch[0] && !oe_latch[0]) begin
refresh <= 1'b1;
refresh_cnt <= 0;
sd_cmd <= CMD_AUTO_REFRESH;
end
end
// CAS phase
if(t == STATE_CAS0 && (we_latch[0] || oe_latch[0])) begin
sd_cmd <= we_latch[0]?CMD_WRITE:CMD_READ;
{ SDRAM_DQMH, SDRAM_DQML } <= ~ds[0];
if (we_latch[0]) begin
SDRAM_DQ <= din_latch[0];
port1_ack <= port1_req;
end
SDRAM_A <= { 4'b0010, addr_latch[0][9:1] }; // auto precharge
SDRAM_BA <= addr_latch[0][24:23];
end
if(t == STATE_CAS1 && (we_latch[1] || oe_latch[1])) begin
sd_cmd <= we_latch[1]?CMD_WRITE:CMD_READ;
{ SDRAM_DQMH, SDRAM_DQML } <= ~ds[1];
if (we_latch[1]) begin
SDRAM_DQ <= din_latch[1];
port2_ack <= port2_req;
end
SDRAM_A <= { 4'b0010, addr_latch[1][9:1] }; // auto precharge
SDRAM_BA <= addr_latch[1][24:23];
end
// Data returned
if(t == STATE_READ0 && oe_latch[0]) begin
case(port[0])
PORT_REQ: begin port1_q <= sd_din; port1_ack <= port1_req; end
PORT_CPU1: begin cpu1_q <= sd_din; end
default: ;
endcase;
end
if(t == STATE_READ1 && oe_latch[1]) begin
case(port[1])
PORT_REQ: begin port2_q <= sd_din; port2_ack <= port2_req; end
PORT_SND: begin snd_q <= sd_din; end
default: ;
endcase;
end
end
end
endmodule

View File

@@ -1,10 +1,29 @@
---------------------------------------------------------------------------------
--
-- Arcade: Kickman port to MiST by Gehstock
--
-- Arcade: Midway MCR1 (Kick/man, Solar Fox, Draw Poker)
-- Based on Kickman by Dar port to MiST by Gehstock
-- 3 November 2019
--
-- VGA Only
--
-- 15kHz interlaced/VGA
--
-- Generic controls:
-- ESC/5/6 - coin
-- 1,2 - start 1,2 players
--
-- Draw Poker controls:
-- Button A (LCtrl) - Stand
-- Button B (LAlt) - Cancel
-- Button C (Space) - Deal
-- Z,X,C,V,B - Hold
--
-- Usage:
-- Create ROM and ARC files from MAME ROM zip files using the mra utility and the MRA files.
-- Example: mra -A -z /path/to/mame/roms Kick.mra
-- Copy the RBF and the ARC files to the same folder.
-- Copy the ROM files to the root of the SD Card.
--
-- MRA utilty: https://github.com/sebdel/mra-tools-c
--
---------------------------------------------------------------------------------
-- DE10_lite Top level for Kick (Midway MCR) by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr

View File

@@ -1,319 +0,0 @@
---------------------------------------------------------------------------------
--
-- Arcade: Solar Fox port to MiST by Gehstock
-- 8 November 2019
--
-- VGA Only
---------------------------------------------------------------------------------
-- DE10_lite Top level for Kick (Midway MCR) by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
-- Use kick_de10_lite.sdc to compile (Timequest constraints)
-- /!\
-- Don't forget to set device configuration mode with memory initialization
-- (Assignments/Device/Pin options/Configuration mode)
---------------------------------------------------------------------------------
--
-- Main features :
-- PS2 keyboard input @gpio pins 35/34 (beware voltage translation/protection)
-- Audio pwm output @gpio pins 1/3 (beware voltage translation/protection)
--
-- Video : 31Khz/60Hz
-- Cocktail mode : NO
-- Sound : OK
--
-- For hardware schematic see my other project : NES
--
-- Uses 1 pll 40MHz from 50MHz to make 20MHz and 8Mhz
--
-- Board key :
-- 0 : reset game
--
-- Keyboard players inputs :
--
-- F3 : Add coin
-- F2 : Start 2 players
-- F1 : Start 1 player
-- SPACE : move faster
-- RIGHT arrow : move right
-- LEFT arrow : move left
-- UP arrow : toggle service mode ON/OFF
-- DOWN arrow : kick
--
-- Other details : see kick.vhd
-- For USB inputs and SGT5000 audio output see my other project: xevious_de10_lite
---------------------------------------------------------------------------------
-- Kick by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- gen_ram.vhd & io_ps2_keyboard
--------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
---------------------------------------------------------------------------------
-- T80/T80se - Version : 304
-----------------------------
-- Z80 compatible microprocessor core
-- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
---------------------------------------------------------------------------------
-- YM2149 (AY-3-8910)
-- Copyright (c) MikeJ - Jan 2005
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
-- Features :
-- Video : 31Khz/60Hz
-- Coctail mode : NO
-- Sound : OK
-- Use with MAME roms from kick.zip and midssio.zip
--
-- Use make_kick_proms.bat to build vhd file from binaries
-- (CRC list included)
-- Kick/Kickman (Midway mcr) Hardware caracteristics :
--
-- VIDEO : 1xZ80@3MHz CPU accessing its program rom, working ram,
-- sprite data ram, I/O, sound board register and trigger.
-- 24Kx8bits program rom
--
-- One char/background tile map 30x32
-- 2x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- 128 sprites, up to ~15/line, 32x32 with flip H/V
-- 4x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- Working ram : 2Kx8bits
-- video (char/background) ram : 1Kx8bits
-- Sprites ram : 512x8bits + 512x8bits cache buffer
-- Sprites line buffer rams : 1 scan line delay flip/flop 2x256x8bits
--
-- SOUND : see Kick_sound_board.vhd
---------------------------------------------------------------------------------
-- Schematics remarks :
--
-- Display is 512x480 pixels (video 635x525 lines @ 20MHz )
-- 635/20e6 = 31.75us per line (31.750KHz)
-- 31.75*525 = 16.67ms per frame (59.99Hz)
--
-- Original video is interlaced 240 display lines per 1/2 frame
--
-- H0 and V0 are not use for background => each bg tile is 16x16 pixel but
-- background graphics is 2x2 pixels defintion.
--
-- Sprite are 32x32 pixels with 1x1 pixel definition, 16 lines for odd 1/2
-- frame and 16 lines for even 2/2 frame thanks to V8 on sprite rom ROMAD2
-- (look at 74ls86 G1 pin 9 on video genration board schematics)
--
-- *H and V stand for Horizontal en Vertical counter (Hcnt, Vcnt in VHDL code)
--
-- /!\ For VHDL port interlaced video mode is replaced with progressive video
-- mode.
--
-- Sprite data are stored first by cpu into a 'cache' buffer (staging ram at
-- K6/L6) this buffer is read and write for cpu. After visible display, cache
-- buffer (512x8) is moved to actual sprite ram buffer (512x8). Actual sprite
-- buffer is access by transfer address counter during 2 scanlines after
-- visible area and only by sprite machine during visible area.
--
-- Thus cpu can read and update sprites position during entire frame except
-- during 2 lines.
--
-- Sprite data are organised (as seen by cpu F000-F1FF) into 128 * 4bytes.
-- bytes #1 : Vertical position
-- bytes #2 : code and attribute
-- bytes #3 : Horizontal position
-- bytes #4 : not used
--
-- Athough 1x1 pixel defintion sprite position horizontal/vertical is made on
-- on a 2x2 grid (due to only 8bits for position data)
--
-- Z80-CTC : interruption ar managed by CTC chip. ONly channel 3 is trigered
-- by hardware signal line 493. channel 0 to 2 are in timer mode. Schematic
-- show zc/to of channel 0 connected to clk/trg of channel 1. This seems to be
-- unsued for that (Kick) game.
--
-- CPU programs 4 interuptions : (Vector D0)
--
-- IT ch 3 : triggered by line 493 : once per frame : start @00D8
-- set timer ch0 to launch interrupt around line 20
-- set timer ch1 to launch interrupt around line 240
--
-- IT ch 0 : triggered by timer ch 0 : once per frame : start @017E
-- stop timer 0
--
-- IT ch 1 : triggered by timer ch 1 : once per frame : start @0192
-- stop timer 1
--
-- IT ch 2 : trigged by timer ch 2 : once every ~105 scanlines : start @04E1
-- read angle decoder
--
-- Z80-CTC VHDL port keep separated interrupt controler and each counter so
-- one can use them on its own. Priority daisy-chain is not done (not used in
-- that game). clock polarity selection is not done since it has no meaning
-- with digital clock/enable (e.g cpu_ena signal) method.
--
-- Angle (spin) decoder : Original design is a simple Up/Down 4 bits counter.
-- Replacement is proposed in kick_de10_lite.vhd as a 10bits counter allowing
-- more stable speed. It make use of CTC zc_to channel 2 signal to avoid
-- aliasing problems. Despite speed selection (faster/slower) is available
-- from keyboard key it hardly simulate a real spinner.
--
-- Ressource : input clock 40MHz is chosen to allow easy making of 20MHz for
-- pixel clock and 8MHz signal for amplitude modulation circuit of ssio board
--
--
-- TODO :
-- Working ram could be initialized to set initial difficulty level and
-- initial bases (live) number. Otherwise one can set it up by using service
-- menu at each power up.
--
+----------------------------------------------------------------------------------+
; Fitter Summary ;
+------------------------------------+---------------------------------------------+
; Fitter Status ; Successful - Sat Nov 02 22:31:20 2019 ;
; Quartus Prime Version ; 18.1.0 Build 625 09/12/2018 SJ Lite Edition ;
; Revision Name ; kick_de10_lite ;
; Top-level Entity Name ; kick_de10_lite ;
; Family ; MAX 10 ;
; Device ; 10M50DAF484C6GES ;
; Timing Models ; Preliminary ;
; Total logic elements ; 7,125 / 49,760 ( 14 % ) ;
; Total combinational functions ; 6,705 / 49,760 ( 13 % ) ;
; Dedicated logic registers ; 2,068 / 49,760 ( 4 % ) ;
; Total registers ; 2068 ;
; Total pins ; 105 / 360 ( 29 % ) ;
; Total virtual pins ; 0 ;
; Total memory bits ; 700,416 / 1,677,312 ( 42 % ) ;
; Embedded Multiplier 9-bit elements ; 0 / 288 ( 0 % ) ;
; Total PLLs ; 1 / 4 ( 25 % ) ;
; UFM blocks ; 0 / 1 ( 0 % ) ;
; ADC blocks ; 0 / 2 ( 0 % ) ;
+------------------------------------+---------------------------------------------+
---------------
VHDL File list
---------------
de10_lite/max10_pll_40M.vhd Pll 40MHz from 50MHz altera mf
rtl_dar/kick_de10_lite.vhd Top level for de10_lite board
rtl_dar/kick.vhd Main CPU and video boards logic
rtl_dar/kick_sound_board.vhd Main sound board logic
rtl_dar/ctc_controler.vhd Z80-CTC controler
rtl_dar/ctc_counter.vhd Z80-CTC counter
rtl_mikej/YM2149_linmix.vhd Copyright (c) MikeJ - Jan 2005
rtl_T80_304/T80se.vhdT80 Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
rtl_T80_304/T80_Reg.vhd
rtl_T80_304/T80_Pack.vhd
rtl_T80_304/T80_MCode.vhd
rtl_T80_304/T80_ALU.vhd
rtl_T80_304/T80.vhd
rtl_dar/kbd_joystick.vhd Keyboard key to player/coin input
rtl_dar/io_ps2_keyboard.vhd Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
rtl_dar/gen_ram.vhd Generic RAM (Peter Wendrich + DAR Modification)
rtl_dar/decodeur_7_seg.vhd 7 segments display decoder
rtl_dar/proms/kick_cpu.vhd CPU board PROMS
rtl_dar/proms/kick_bg_bits_2.vhd
rtl_dar/proms/kick_bg_bits_1.vhd
rtl_dar/proms/kick_sp_bits_4.vhd Video board PROMS
rtl_dar/proms/kick_sp_bits_3.vhd
rtl_dar/proms/kick_sp_bits_2.vhd
rtl_dar/proms/kick_sp_bits_1.vhd
rtl_dar/proms/kick_sound_cpu.vhd Sound board PROMS
rtl_dar/proms/midssio_82s123.vhd
----------------------
Quartus project files
----------------------
de10_lite/kick_de10_lite.sdc Timequest constraints file
de10_lite/kick_de10_lite.qsf de10_lite settings (files,pins...)
de10_lite/kick_de10_lite.qpf de10_lite project
-----------------------------
Required ROMs (Not included)
-----------------------------
You need the following 17 ROMs binary files from kick.zip and midssio.zip(MAME)
1200a-v2.b3 CRC 65924917
1300b-v2.b4 CRC 27929f52
1400c-v2.b5 CRC 69107ce6
1500d-v2.d4 CRC 04a23aa1
1600e-v2.d5 CRC 1d2834c0
1700f-v2.d6 CRC ddf84ce1
1800g-v2.g4 CRC b4d120f3
1900h-v2.g5 CRC c3ba4893
2600a-v2.1e CRC 2c5d6b55
2700b-v2.1d CRC 565ea97d
2800c-v2.1b CRC f3be56a1
2900d-v2.1a CRC 77da795e
4200-a.a7 CRC 9e35c02e
4300-b.a8 CRC ca2b7c28
4400-c.a9 CRC d1901551
4500-d.a10 CRC d36ddcdc
midssio_82s123.12d CRC e1281ee9
------
Tools
------
You need to build vhdl files from the binary file :
- Unzip the roms file in the tools/kick_unzip directory
- Double click (execute) the script tools/make_kick_proms.bat to get the following 9 files
kick_cpu.vhd
kick_bg_bits_2.vhd
kick_bg_bits_1.vhd
kick_sp_bits_4.vhd
kick_sp_bits_3.vhd
kick_sp_bits_2.vhd
kick_sp_bits_1.vhd
kick_sound_cpu.vhd
midssio_82s123.vhd
*DO NOT REDISTRIBUTE THESE FILES*
VHDL files are needed to compile and include roms into the project
The script make_kick_proms.bat uses make_vhdl_prom executables delivered both in linux and windows version. The script itself is delivered only in windows version (.bat) but should be easily ported to linux.
Source code of make_vhdl_prom.c is also delivered.
---------------------------------
Compiling for de10_lite
---------------------------------
You can build the project with ROM image embeded in the sof file.
*DO NOT REDISTRIBUTE THESE FILES*
3 steps
- put the VHDL ROM files (.vhd) into the rtl_dar/proms directory
- build kick_de10_lite
- program kick_de10_lite.sof
------------------------
------------------------
End of file
------------------------

View File

@@ -1,31 +0,0 @@
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2017 Intel Corporation. All rights reserved.
# Your use of Intel Corporation's design tools, logic functions
# and other software and tools, and its AMPP partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Intel Program License
# Subscription Agreement, the Intel Quartus Prime License Agreement,
# the Intel MegaCore Function License Agreement, or other
# applicable license agreement, including, without limitation,
# that your use is for the sole purpose of programming logic
# devices manufactured by Intel and sold by Intel or its
# authorized distributors. Please refer to the applicable
# agreement for further details.
#
# -------------------------------------------------------------------------- #
#
# Quartus Prime
# Version 17.0.1 Build 598 06/07/2017 SJ Standard Edition
# Date created = 04:04:47 October 16, 2017
#
# -------------------------------------------------------------------------- #
QUARTUS_VERSION = "17.0"
DATE = "04:04:47 October 16, 2017"
# Revisions
PROJECT_REVISION = "SolarFox"

View File

@@ -1,235 +0,0 @@
# -------------------------------------------------------------------------- #
#
# Copyright (C) 1991-2013 Altera Corporation
# Your use of Altera Corporation's design tools, logic functions
# and other software and tools, and its AMPP partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Altera Program License
# Subscription Agreement, Altera MegaCore Function License
# Agreement, or other applicable license agreement, including,
# without limitation, that your use is for the sole purpose of
# programming logic devices manufactured by Altera and sold by
# Altera or its authorized distributors. Please refer to the
# applicable agreement for further details.
#
# -------------------------------------------------------------------------- #
#
# Quartus II 64-Bit
# Version 13.1.0 Build 162 10/23/2013 SJ Web Edition
# Date created = 19:37:16 November 10, 2019
#
# -------------------------------------------------------------------------- #
#
# Notes:
#
# 1) The default values for assignments are stored in the file:
# SolarFox_assignment_defaults.qdf
# If this file doesn't exist, see file:
# assignment_defaults.qdf
#
# 2) Altera recommends that you do not modify this file. This
# file is updated automatically by the Quartus II software
# and any changes you make may be lost or overwritten.
#
# -------------------------------------------------------------------------- #
# Project-Wide Assignments
# ========================
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name NUM_PARALLEL_PROCESSORS ALL
set_global_assignment -name LAST_QUARTUS_VERSION 13.1
set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:rtl/build_id.tcl"
# Pin & Location Assignments
# ==========================
set_location_assignment PIN_7 -to LED
set_location_assignment PIN_54 -to CLOCK_27
set_location_assignment PIN_144 -to VGA_R[5]
set_location_assignment PIN_143 -to VGA_R[4]
set_location_assignment PIN_142 -to VGA_R[3]
set_location_assignment PIN_141 -to VGA_R[2]
set_location_assignment PIN_137 -to VGA_R[1]
set_location_assignment PIN_135 -to VGA_R[0]
set_location_assignment PIN_133 -to VGA_B[5]
set_location_assignment PIN_132 -to VGA_B[4]
set_location_assignment PIN_125 -to VGA_B[3]
set_location_assignment PIN_121 -to VGA_B[2]
set_location_assignment PIN_120 -to VGA_B[1]
set_location_assignment PIN_115 -to VGA_B[0]
set_location_assignment PIN_114 -to VGA_G[5]
set_location_assignment PIN_113 -to VGA_G[4]
set_location_assignment PIN_112 -to VGA_G[3]
set_location_assignment PIN_111 -to VGA_G[2]
set_location_assignment PIN_110 -to VGA_G[1]
set_location_assignment PIN_106 -to VGA_G[0]
set_location_assignment PIN_136 -to VGA_VS
set_location_assignment PIN_119 -to VGA_HS
set_location_assignment PIN_65 -to AUDIO_L
set_location_assignment PIN_80 -to AUDIO_R
set_location_assignment PIN_105 -to SPI_DO
set_location_assignment PIN_88 -to SPI_DI
set_location_assignment PIN_126 -to SPI_SCK
set_location_assignment PIN_127 -to SPI_SS2
set_location_assignment PIN_91 -to SPI_SS3
set_location_assignment PIN_13 -to CONF_DATA0
set_location_assignment PIN_49 -to SDRAM_A[0]
set_location_assignment PIN_44 -to SDRAM_A[1]
set_location_assignment PIN_42 -to SDRAM_A[2]
set_location_assignment PIN_39 -to SDRAM_A[3]
set_location_assignment PIN_4 -to SDRAM_A[4]
set_location_assignment PIN_6 -to SDRAM_A[5]
set_location_assignment PIN_8 -to SDRAM_A[6]
set_location_assignment PIN_10 -to SDRAM_A[7]
set_location_assignment PIN_11 -to SDRAM_A[8]
set_location_assignment PIN_28 -to SDRAM_A[9]
set_location_assignment PIN_50 -to SDRAM_A[10]
set_location_assignment PIN_30 -to SDRAM_A[11]
set_location_assignment PIN_32 -to SDRAM_A[12]
set_location_assignment PIN_83 -to SDRAM_DQ[0]
set_location_assignment PIN_79 -to SDRAM_DQ[1]
set_location_assignment PIN_77 -to SDRAM_DQ[2]
set_location_assignment PIN_76 -to SDRAM_DQ[3]
set_location_assignment PIN_72 -to SDRAM_DQ[4]
set_location_assignment PIN_71 -to SDRAM_DQ[5]
set_location_assignment PIN_69 -to SDRAM_DQ[6]
set_location_assignment PIN_68 -to SDRAM_DQ[7]
set_location_assignment PIN_86 -to SDRAM_DQ[8]
set_location_assignment PIN_87 -to SDRAM_DQ[9]
set_location_assignment PIN_98 -to SDRAM_DQ[10]
set_location_assignment PIN_99 -to SDRAM_DQ[11]
set_location_assignment PIN_100 -to SDRAM_DQ[12]
set_location_assignment PIN_101 -to SDRAM_DQ[13]
set_location_assignment PIN_103 -to SDRAM_DQ[14]
set_location_assignment PIN_104 -to SDRAM_DQ[15]
set_location_assignment PIN_58 -to SDRAM_BA[0]
set_location_assignment PIN_51 -to SDRAM_BA[1]
set_location_assignment PIN_85 -to SDRAM_DQMH
set_location_assignment PIN_67 -to SDRAM_DQML
set_location_assignment PIN_60 -to SDRAM_nRAS
set_location_assignment PIN_64 -to SDRAM_nCAS
set_location_assignment PIN_66 -to SDRAM_nWE
set_location_assignment PIN_59 -to SDRAM_nCS
set_location_assignment PIN_33 -to SDRAM_CKE
set_location_assignment PIN_43 -to SDRAM_CLK
set_location_assignment PLL_1 -to "pll:pll|altpll:altpll_component"
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQ[*]
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_A[*]
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_BA[0]
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_BA[1]
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQMH
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_DQML
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nRAS
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nCAS
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nWE
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to SDRAM_nCS
set_instance_assignment -name FAST_OUTPUT_ENABLE_REGISTER ON -to SDRAM_DQ[*]
set_instance_assignment -name FAST_INPUT_REGISTER ON -to SDRAM_DQ[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_A[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_DQ[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_BA[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_DQML
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_DQMH
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_nRAS
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_nCAS
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_nWE
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_nCS
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_CKE
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to SDRAM_CLK
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to VGA_R[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to VGA_G[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to VGA_B[*]
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to VGA_HS
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to VGA_VS
set_instance_assignment -name CURRENT_STRENGTH_NEW 4MA -to AUDIO_L
set_instance_assignment -name CURRENT_STRENGTH_NEW 4MA -to AUDIO_R
set_instance_assignment -name CURRENT_STRENGTH_NEW 4MA -to SPI_DO
# Classic Timing Assignments
# ==========================
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
# Analysis & Synthesis Assignments
# ================================
set_global_assignment -name FAMILY "Cyclone III"
set_global_assignment -name TOP_LEVEL_ENTITY SolarFox_MiST
set_global_assignment -name DEVICE_FILTER_PIN_COUNT 144
set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 8
set_global_assignment -name DEVICE_FILTER_PACKAGE TQFP
# Fitter Assignments
# ==================
set_global_assignment -name DEVICE EP3C25E144C8
set_global_assignment -name ENABLE_CONFIGURATION_PINS OFF
set_global_assignment -name ENABLE_NCE_PIN OFF
set_global_assignment -name ENABLE_BOOT_SEL_PIN OFF
set_global_assignment -name CYCLONEIII_CONFIGURATION_SCHEME "PASSIVE SERIAL"
set_global_assignment -name CRC_ERROR_OPEN_DRAIN OFF
set_global_assignment -name FORCE_CONFIGURATION_VCCIO ON
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
# Assembler Assignments
# =====================
set_global_assignment -name GENERATE_RBF_FILE ON
set_global_assignment -name USE_CONFIGURATION_DEVICE OFF
# Power Estimation Assignments
# ============================
set_global_assignment -name POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW"
set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)"
# Advanced I/O Timing Assignments
# ===============================
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -rise
set_global_assignment -name OUTPUT_IO_TIMING_NEAR_END_VMEAS "HALF VCCIO" -fall
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -rise
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall
# ---------------------------
# start ENTITY(SolarFox_MiST)
# start DESIGN_PARTITION(Top)
# ---------------------------
# Incremental Compilation Assignments
# ===================================
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
# end DESIGN_PARTITION(Top)
# -------------------------
# end ENTITY(SolarFox_MiST)
# -------------------------
set_global_assignment -name SYSTEMVERILOG_FILE rtl/SolarFox_MiST.sv
set_global_assignment -name VHDL_FILE rtl/solarfox.vhd
set_global_assignment -name VHDL_FILE rtl/solarfox_sound_board.vhd
set_global_assignment -name VHDL_FILE rtl/gen_ram.vhd
set_global_assignment -name VHDL_FILE rtl/rom/midssio_82s123.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_sp_bits_4.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_sp_bits_3.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_sp_bits_2.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_sp_bits_1.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_bg_bits_2.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_bg_bits_1.vhd
set_global_assignment -name VHDL_FILE rtl/rom/sol_sp_bits.vhd
set_global_assignment -name VHDL_FILE rtl/YM2149_linmix_sep.vhd
set_global_assignment -name VHDL_FILE rtl/cmos_ram.vhd
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram.sv
set_global_assignment -name VHDL_FILE rtl/pll_mist.vhd
set_global_assignment -name QIP_FILE ../../../common/IO/Z80CTC/z80ctc.qip
set_global_assignment -name QIP_FILE ../../../common/CPU/T80/T80.qip
set_global_assignment -name QIP_FILE ../../../common/mist/mist.qip
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top

View File

@@ -1,134 +0,0 @@
## Generated SDC file "vectrex_MiST.out.sdc"
## Copyright (C) 1991-2013 Altera Corporation
## Your use of Altera Corporation's design tools, logic functions
## and other software and tools, and its AMPP partner logic
## functions, and any output files from any of the foregoing
## (including device programming or simulation files), and any
## associated documentation or information are expressly subject
## to the terms and conditions of the Altera Program License
## Subscription Agreement, Altera MegaCore Function License
## Agreement, or other applicable license agreement, including,
## without limitation, that your use is for the sole purpose of
## programming logic devices manufactured by Altera and sold by
## Altera or its authorized distributors. Please refer to the
## applicable agreement for further details.
## VENDOR "Altera"
## PROGRAM "Quartus II"
## VERSION "Version 13.1.0 Build 162 10/23/2013 SJ Web Edition"
## DATE "Sun Jun 24 12:53:00 2018"
##
## DEVICE "EP3C25E144C8"
##
# Clock constraints
# Automatically constrain PLL and other generated clocks
derive_pll_clocks -create_base_clocks
# Automatically calculate clock uncertainty to jitter and other effects.
derive_clock_uncertainty
# tsu/th constraints
# tco constraints
# tpd constraints
#**************************************************************
# Time Information
#**************************************************************
set_time_format -unit ns -decimal_places 3
#**************************************************************
# Create Clock
#**************************************************************
create_clock -name {SPI_SCK} -period 41.666 -waveform { 20.8 41.666 } [get_ports {SPI_SCK}]
set sys_clk "pll|altpll_component|auto_generated|pll1|clk[0]"
set sdram_clk "pll|altpll_component|auto_generated|pll1|clk[0]"
#**************************************************************
# Create Generated Clock
#**************************************************************
#**************************************************************
# Set Clock Latency
#**************************************************************
#**************************************************************
# Set Clock Uncertainty
#**************************************************************
#**************************************************************
# Set Input Delay
#**************************************************************
set_input_delay -add_delay -clock_fall -clock [get_clocks {CLOCK_27}] 1.000 [get_ports {CLOCK_27}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {CONF_DATA0}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_DI}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SCK}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SS2}]
set_input_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_SS3}]
set_input_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -max 6.6 [get_ports SDRAM_DQ[*]]
set_input_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -min 3.5 [get_ports SDRAM_DQ[*]]
#**************************************************************
# Set Output Delay
#**************************************************************
set_output_delay -add_delay -clock_fall -clock [get_clocks {SPI_SCK}] 1.000 [get_ports {SPI_DO}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {AUDIO_L}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {AUDIO_R}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {LED}]
set_output_delay -add_delay -clock_fall -clock [get_clocks $sys_clk] 1.000 [get_ports {VGA_*}]
set_output_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -max 1.5 [get_ports {SDRAM_D* SDRAM_A* SDRAM_BA* SDRAM_n* SDRAM_CKE}]
set_output_delay -clock [get_clocks $sdram_clk] -reference_pin [get_ports {SDRAM_CLK}] -min -0.8 [get_ports {SDRAM_D* SDRAM_A* SDRAM_BA* SDRAM_n* SDRAM_CKE}]
#**************************************************************
# Set Clock Groups
#**************************************************************
set_clock_groups -asynchronous -group [get_clocks {SPI_SCK}] -group [get_clocks {pll|altpll_component|auto_generated|pll1|clk[*]}]
#**************************************************************
# Set False Path
#**************************************************************
#**************************************************************
# Set Multicycle Path
#**************************************************************
set_multicycle_path -to {VGA_*[*]} -setup 2
set_multicycle_path -to {VGA_*[*]} -hold 1
#**************************************************************
# Set Maximum Delay
#**************************************************************
#**************************************************************
# Set Minimum Delay
#**************************************************************
#**************************************************************
# Set Input Transition
#**************************************************************

View File

@@ -1,37 +0,0 @@
@echo off
del /s *.bak
del /s *.orig
del /s *.rej
del /s *~
rmdir /s /q db
rmdir /s /q incremental_db
rmdir /s /q output_files
rmdir /s /q simulation
rmdir /s /q greybox_tmp
rmdir /s /q hc_output
rmdir /s /q .qsys_edit
rmdir /s /q hps_isw_handoff
rmdir /s /q sys\.qsys_edit
rmdir /s /q sys\vip
cd sys
for /d %%i in (*_sim) do rmdir /s /q "%%~nxi"
cd ..
for /d %%i in (*_sim) do rmdir /s /q "%%~nxi"
del build_id.v
del c5_pin_model_dump.txt
del PLLJ_PLLSPE_INFO.txt
del /s *.qws
del /s *.ppf
del /s *.ddb
del /s *.csv
del /s *.cmp
del /s *.sip
del /s *.spd
del /s *.bsf
del /s *.f
del /s *.sopcinfo
del /s *.xml
del /s new_rtl_netlist
del /s old_rtl_netlist
pause

View File

@@ -1,290 +0,0 @@
//============================================================================
// Arcade: Solar Fox by DarFPGA
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//============================================================================
module SolarFox_MiST(
output LED,
output [5:0] VGA_R,
output [5:0] VGA_G,
output [5:0] VGA_B,
output VGA_HS,
output VGA_VS,
output AUDIO_L,
output AUDIO_R,
input SPI_SCK,
output SPI_DO,
input SPI_DI,
input SPI_SS2,
input SPI_SS3,
input CONF_DATA0,
input CLOCK_27,
output [12:0] SDRAM_A,
inout [15:0] SDRAM_DQ,
output SDRAM_DQML,
output SDRAM_DQMH,
output SDRAM_nWE,
output SDRAM_nCAS,
output SDRAM_nRAS,
output SDRAM_nCS,
output [1:0] SDRAM_BA,
output SDRAM_CLK,
output SDRAM_CKE
);
`include "rtl/build_id.v"
localparam CONF_STR = {
"SOLARFOX;;",
"O2,Rotate Controls,Off,On;",
"O5,Blend,Off,On;",
"O6,Service,Off,On;",
"T0,Reset;",
"V,v1.1.",`BUILD_DATE
};
wire rotate = status[2];
wire blend = status[5];
wire service = status[6];
assign LED = ~ioctl_downl;
assign SDRAM_CLK = clk_sys;
assign SDRAM_CKE= 1;
wire clk_sys;
wire pll_locked;
pll_mist pll(
.inclk0(CLOCK_27),
.areset(0),
.c0(clk_sys),
.locked(pll_locked)
);
wire [31:0] status;
wire [1:0] buttons;
wire [1:0] switches;
wire [7:0] joystick_0;
wire [7:0] joystick_1;
wire scandoublerD;
wire ypbpr;
wire [15:0] audio_l, audio_r;
wire hs, vs, cs;
wire blankn;
wire [3:0] g, r, b;
wire key_pressed;
wire [7:0] key_code;
wire key_strobe;
wire [14:0] rom_addr;
wire [15:0] rom_do;
wire [13:0] snd_addr;
wire [15:0] snd_do;
wire ioctl_downl;
wire [7:0] ioctl_index;
wire ioctl_wr;
wire [24:0] ioctl_addr;
wire [7:0] ioctl_dout;
data_io data_io(
.clk_sys ( clk_sys ),
.SPI_SCK ( SPI_SCK ),
.SPI_SS2 ( SPI_SS2 ),
.SPI_DI ( SPI_DI ),
.ioctl_download( ioctl_downl ),
.ioctl_index ( ioctl_index ),
.ioctl_wr ( ioctl_wr ),
.ioctl_addr ( ioctl_addr ),
.ioctl_dout ( ioctl_dout )
);
reg port1_req, port2_req;
sdram sdram(
.*,
.init_n ( pll_locked ),
.clk ( clk_sys ),
// port1 used for main CPU
.port1_req ( port1_req ),
.port1_ack ( ),
.port1_a ( ioctl_addr[23:1] ),
.port1_ds ( {ioctl_addr[0], ~ioctl_addr[0]} ),
.port1_we ( ioctl_downl ),
.port1_d ( {ioctl_dout, ioctl_dout} ),
.port1_q ( ),
.cpu1_addr ( ioctl_downl ? 15'h7fff : {1'b0, rom_addr[14:1]} ),
.cpu1_q ( rom_do ),
// port2 for sound board
.port2_req ( port2_req ),
.port2_ack ( ),
.port2_a ( ioctl_addr[23:1] - 16'h4000 ),
.port2_ds ( {ioctl_addr[0], ~ioctl_addr[0]} ),
.port2_we ( ioctl_downl ),
.port2_d ( {ioctl_dout, ioctl_dout} ),
.port2_q ( ),
.snd_addr ( ioctl_downl ? 15'h7fff : {2'b00, snd_addr[13:1]} ),
.snd_q ( snd_do )
);
always @(posedge clk_sys) begin
reg ioctl_wr_last = 0;
ioctl_wr_last <= ioctl_wr;
if (ioctl_downl) begin
if (~ioctl_wr_last && ioctl_wr) begin
port1_req <= ~port1_req;
port2_req <= ~port2_req;
end
end
end
reg reset = 1;
reg rom_loaded = 0;
always @(posedge clk_sys) begin
reg ioctl_downlD;
ioctl_downlD <= ioctl_downl;
if (ioctl_downlD & ~ioctl_downl) rom_loaded <= 1;
reset <= status[0] | buttons[1] | ~rom_loaded;
end
solarfox solarfox(
.clock_40(clk_sys),
.reset(reset),
.video_r(r),
.video_g(g),
.video_b(b),
.video_blankn(blankn),
.video_hs(hs),
.video_vs(vs),
.video_csync(cs),
.tv15Khz_mode(scandoublerD),
.separate_audio(1'b0),
.audio_out_l(audio_l),
.audio_out_r(audio_r),
.coin1(m_coin1),
.coin2(m_coin2),
.fast1(m_one_player),
.fast2(m_two_players),
.service(service),
.fire1(m_fireA),
.fire2(m_fire2A),
.left1(m_left),
.right1(m_right),
.up1(m_up),
.down1(m_down),
.left2(m_left2),
.right2(m_right2),
.up2(m_up2),
.down2(m_down2),
.cpu_rom_addr ( rom_addr ),
.cpu_rom_do ( rom_addr[0] ? rom_do[15:8] : rom_do[7:0] ),
.snd_rom_addr ( snd_addr ),
.snd_rom_do ( snd_addr[0] ? snd_do[15:8] : snd_do[7:0] )
);
wire vs_out;
wire hs_out;
assign VGA_VS = scandoublerD | vs_out;
assign VGA_HS = scandoublerD ? cs : hs_out;
mist_video #(.COLOR_DEPTH(4), .SD_HCNT_WIDTH(10)) mist_video(
.clk_sys ( clk_sys ),
.SPI_SCK ( SPI_SCK ),
.SPI_SS3 ( SPI_SS3 ),
.SPI_DI ( SPI_DI ),
.R ( blankn ? r : 0 ),
.G ( blankn ? g : 0 ),
.B ( blankn ? b : 0 ),
.HSync ( hs ),
.VSync ( vs ),
.VGA_R ( VGA_R ),
.VGA_G ( VGA_G ),
.VGA_B ( VGA_B ),
.VGA_VS ( vs_out ),
.VGA_HS ( hs_out ),
.rotate ( { 1'b1, rotate } ),
.ce_divider ( 1 ),
.blend ( blend ),
.scandoubler_disable( 1'b1 ),
.no_csync ( 1'b1 ),
.scanlines ( ),
.ypbpr ( ypbpr )
);
user_io #(
.STRLEN(($size(CONF_STR)>>3)))
user_io(
.clk_sys (clk_sys ),
.conf_str (CONF_STR ),
.SPI_CLK (SPI_SCK ),
.SPI_SS_IO (CONF_DATA0 ),
.SPI_MISO (SPI_DO ),
.SPI_MOSI (SPI_DI ),
.buttons (buttons ),
.switches (switches ),
.scandoubler_disable (scandoublerD ),
.ypbpr (ypbpr ),
.key_strobe (key_strobe ),
.key_pressed (key_pressed ),
.key_code (key_code ),
.joystick_0 (joystick_0 ),
.joystick_1 (joystick_1 ),
.status (status )
);
dac #(
.C_bits(16))
dac_l(
.clk_i(clk_sys),
.res_n_i(1),
.dac_i(audio_l),
.dac_o(AUDIO_L)
);
dac #(
.C_bits(16))
dac_r(
.clk_i(clk_sys),
.res_n_i(1),
.dac_i(audio_r),
.dac_o(AUDIO_R)
);
wire m_up, m_down, m_left, m_right, m_fireA, m_fireB, m_fireC, m_fireD, m_fireE, m_fireF;
wire m_up2, m_down2, m_left2, m_right2, m_fire2A, m_fire2B, m_fire2C, m_fire2D, m_fire2E, m_fire2F;
wire m_tilt, m_coin1, m_coin2, m_coin3, m_coin4, m_one_player, m_two_players, m_three_players, m_four_players;
arcade_inputs inputs (
.clk ( clk_sys ),
.key_strobe ( key_strobe ),
.key_pressed ( key_pressed ),
.key_code ( key_code ),
.joystick_0 ( joystick_0 ),
.joystick_1 ( joystick_1 ),
.rotate ( rotate ),
.orientation ( 2'b11 ),
.joyswap ( 1'b0 ),
.oneplayer ( 1'b1 ),
.controls ( {m_tilt, m_coin4, m_coin3, m_coin2, m_coin1, m_four_players, m_three_players, m_two_players, m_one_player} ),
.player1 ( {m_fireF, m_fireE, m_fireD, m_fireC, m_fireB, m_fireA, m_up, m_down, m_left, m_right} ),
.player2 ( {m_fire2F, m_fire2E, m_fire2D, m_fire2C, m_fire2B, m_fire2A, m_up2, m_down2, m_left2, m_right2} )
);
endmodule

View File

@@ -1,574 +0,0 @@
-- changes for seperate audio outputs and enable now enables cpu access as well
--
-- A simulation model of YM2149 (AY-3-8910 with bells on)
-- Copyright (c) MikeJ - Jan 2005
--
-- All rights reserved
--
-- Redistribution and use in source and synthezised forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- Redistributions of source code must retain the above copyright notice,
-- this list of conditions and the following disclaimer.
--
-- Redistributions in synthesized form must reproduce the above copyright
-- notice, this list of conditions and the following disclaimer in the
-- documentation and/or other materials provided with the distribution.
--
-- Neither the name of the author nor the names of other contributors may
-- be used to endorse or promote products derived from this software without
-- specific prior written permission.
--
-- THIS CODE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--
-- You are responsible for any legal issues arising from your use of this code.
--
-- The latest version of this file can be found at: www.fpgaarcade.com
--
-- Email support@fpgaarcade.com
--
-- Revision list
--
-- version 001 initial release
--
-- Clues from MAME sound driver and Kazuhiro TSUJIKAWA
--
-- These are the measured outputs from a real chip for a single Isolated channel into a 1K load (V)
-- vol 15 .. 0
-- 3.27 2.995 2.741 2.588 2.452 2.372 2.301 2.258 2.220 2.198 2.178 2.166 2.155 2.148 2.141 2.132
-- As the envelope volume is 5 bit, I have fitted a curve to the not quite log shape in order
-- to produced all the required values.
-- (The first part of the curve is a bit steeper and the last bit is more linear than expected)
--
-- NOTE, this component uses LINEAR mixing of the three analogue channels, and is only
-- accurate for designs where the outputs are buffered and not simply wired together.
-- The ouput level is more complex in that case and requires a larger table.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity YM2149 is
port (
-- data bus
I_DA : in std_logic_vector(7 downto 0);
O_DA : out std_logic_vector(7 downto 0);
O_DA_OE_L : out std_logic;
-- control
I_A9_L : in std_logic;
I_A8 : in std_logic;
I_BDIR : in std_logic;
I_BC2 : in std_logic;
I_BC1 : in std_logic;
I_SEL_L : in std_logic;
O_AUDIO : out std_logic_vector(7 downto 0);
O_CHAN : out std_logic_vector(1 downto 0);
-- port a
I_IOA : in std_logic_vector(7 downto 0);
O_IOA : out std_logic_vector(7 downto 0);
O_IOA_OE_L : out std_logic;
-- port b
I_IOB : in std_logic_vector(7 downto 0);
O_IOB : out std_logic_vector(7 downto 0);
O_IOB_OE_L : out std_logic;
ENA : in std_logic; -- clock enable for higher speed operation
RESET_L : in std_logic;
CLK : in std_logic -- note 6 Mhz
);
end;
architecture RTL of YM2149 is
type array_16x8 is array (0 to 15) of std_logic_vector( 7 downto 0);
type array_3x12 is array (1 to 3) of std_logic_vector(11 downto 0);
signal cnt_div : std_logic_vector(3 downto 0) := (others => '0');
signal cnt_div_t1 : std_logic_vector(3 downto 0);
signal noise_div : std_logic := '0';
signal ena_div : std_logic;
signal ena_div_noise : std_logic;
signal poly17 : std_logic_vector(16 downto 0) := (others => '0');
-- registers
signal addr : std_logic_vector(7 downto 0);
signal busctrl_addr : std_logic;
signal busctrl_we : std_logic;
signal busctrl_re : std_logic;
signal reg : array_16x8;
signal env_reset : std_logic;
signal ioa_inreg : std_logic_vector(7 downto 0);
signal iob_inreg : std_logic_vector(7 downto 0);
signal noise_gen_cnt : std_logic_vector(4 downto 0);
signal noise_gen_op : std_logic;
signal tone_gen_cnt : array_3x12 := (others => (others => '0'));
signal tone_gen_op : std_logic_vector(3 downto 1) := "000";
signal env_gen_cnt : std_logic_vector(15 downto 0);
signal env_ena : std_logic;
signal env_hold : std_logic;
signal env_inc : std_logic;
signal env_vol : std_logic_vector(4 downto 0);
signal tone_ena_l : std_logic;
signal tone_src : std_logic;
signal noise_ena_l : std_logic;
signal chan_vol : std_logic_vector(4 downto 0);
signal dac_amp : std_logic_vector(7 downto 0);
begin
-- cpu i/f
p_busdecode : process(I_BDIR, I_BC2, I_BC1, addr, I_A9_L, I_A8)
variable cs : std_logic;
variable sel : std_logic_vector(2 downto 0);
begin
-- BDIR BC2 BC1 MODE
-- 0 0 0 inactive
-- 0 0 1 address
-- 0 1 0 inactive
-- 0 1 1 read
-- 1 0 0 address
-- 1 0 1 inactive
-- 1 1 0 write
-- 1 1 1 read
busctrl_addr <= '0';
busctrl_we <= '0';
busctrl_re <= '0';
cs := '0';
if (I_A9_L = '0') and (I_A8 = '1') and (addr(7 downto 4) = "0000") then
cs := '1';
end if;
sel := (I_BDIR & I_BC2 & I_BC1);
case sel is
when "000" => null;
when "001" => busctrl_addr <= '1';
when "010" => null;
when "011" => busctrl_re <= cs;
when "100" => busctrl_addr <= '1';
when "101" => null;
when "110" => busctrl_we <= cs;
when "111" => busctrl_addr <= '1';
when others => null;
end case;
end process;
p_oe : process(busctrl_re)
begin
-- if we are emulating a real chip, maybe clock this to fake up the tristate typ delay of 100ns
O_DA_OE_L <= not (busctrl_re);
end process;
--
-- CLOCKED
--
p_waddr : process(RESET_L, CLK)
begin
-- looks like registers are latches in real chip, but the address is caught at the end of the address state.
if (RESET_L = '0') then
addr <= (others => '0');
elsif rising_edge(CLK) then
if (ENA = '1') then
if (busctrl_addr = '1') then
addr <= I_DA;
end if;
end if;
end if;
end process;
p_wdata : process(RESET_L, CLK)
begin
if (RESET_L = '0') then
reg <= (others => (others => '0'));
env_reset <= '1';
elsif rising_edge(CLK) then
if (ENA = '1') then
env_reset <= '0';
if (busctrl_we = '1') then
case addr(3 downto 0) is
when x"0" => reg(0) <= I_DA;
when x"1" => reg(1) <= I_DA;
when x"2" => reg(2) <= I_DA;
when x"3" => reg(3) <= I_DA;
when x"4" => reg(4) <= I_DA;
when x"5" => reg(5) <= I_DA;
when x"6" => reg(6) <= I_DA;
when x"7" => reg(7) <= I_DA;
when x"8" => reg(8) <= I_DA;
when x"9" => reg(9) <= I_DA;
when x"A" => reg(10) <= I_DA;
when x"B" => reg(11) <= I_DA;
when x"C" => reg(12) <= I_DA;
when x"D" => reg(13) <= I_DA; env_reset <= '1';
when x"E" => reg(14) <= I_DA;
when x"F" => reg(15) <= I_DA;
when others => null;
end case;
end if;
end if;
end if;
end process;
p_rdata : process(busctrl_re, addr, reg, ioa_inreg, iob_inreg)
begin
O_DA <= (others => '0'); -- 'X'
if (busctrl_re = '1') then -- not necessary, but useful for putting 'X's in the simulator
case addr(3 downto 0) is
when x"0" => O_DA <= reg(0) ;
when x"1" => O_DA <= "0000" & reg(1)(3 downto 0) ;
when x"2" => O_DA <= reg(2) ;
when x"3" => O_DA <= "0000" & reg(3)(3 downto 0) ;
when x"4" => O_DA <= reg(4) ;
when x"5" => O_DA <= "0000" & reg(5)(3 downto 0) ;
when x"6" => O_DA <= "000" & reg(6)(4 downto 0) ;
when x"7" => O_DA <= reg(7) ;
when x"8" => O_DA <= "000" & reg(8)(4 downto 0) ;
when x"9" => O_DA <= "000" & reg(9)(4 downto 0) ;
when x"A" => O_DA <= "000" & reg(10)(4 downto 0) ;
when x"B" => O_DA <= reg(11);
when x"C" => O_DA <= reg(12);
when x"D" => O_DA <= "0000" & reg(13)(3 downto 0);
when x"E" => if (reg(7)(6) = '0') then -- input
O_DA <= ioa_inreg;
else
O_DA <= reg(14); -- read output reg
end if;
when x"F" => if (Reg(7)(7) = '0') then
O_DA <= iob_inreg;
else
O_DA <= reg(15);
end if;
when others => null;
end case;
end if;
end process;
--
p_divider : process
begin
wait until rising_edge(CLK);
-- / 8 when SEL is high and /16 when SEL is low
if (ENA = '1') then
ena_div <= '0';
ena_div_noise <= '0';
if (cnt_div = "0000") then
cnt_div <= (not I_SEL_L) & "111";
ena_div <= '1';
noise_div <= not noise_div;
if (noise_div = '1') then
ena_div_noise <= '1';
end if;
else
cnt_div <= cnt_div - "1";
end if;
end if;
end process;
p_noise_gen : process
variable noise_gen_comp : std_logic_vector(4 downto 0);
variable poly17_zero : std_logic;
begin
wait until rising_edge(CLK);
if (reg(6)(4 downto 0) = "00000") then
noise_gen_comp := "00000";
else
noise_gen_comp := (reg(6)(4 downto 0) - "1");
end if;
poly17_zero := '0';
if (poly17 = "00000000000000000") then poly17_zero := '1'; end if;
if (ENA = '1') then
if (ena_div_noise = '1') then -- divider ena
if (noise_gen_cnt >= noise_gen_comp) then
noise_gen_cnt <= "00000";
poly17 <= (poly17(0) xor poly17(2) xor poly17_zero) & poly17(16 downto 1);
else
noise_gen_cnt <= (noise_gen_cnt + "1");
end if;
end if;
end if;
end process;
noise_gen_op <= poly17(0);
p_tone_gens : process
variable tone_gen_freq : array_3x12;
variable tone_gen_comp : array_3x12;
begin
wait until rising_edge(CLK);
-- looks like real chips count up - we need to get the Exact behaviour ..
tone_gen_freq(1) := reg(1)(3 downto 0) & reg(0);
tone_gen_freq(2) := reg(3)(3 downto 0) & reg(2);
tone_gen_freq(3) := reg(5)(3 downto 0) & reg(4);
-- period 0 = period 1
for i in 1 to 3 loop
if (tone_gen_freq(i) = x"000") then
tone_gen_comp(i) := x"000";
else
tone_gen_comp(i) := (tone_gen_freq(i) - "1");
end if;
end loop;
if (ENA = '1') then
for i in 1 to 3 loop
if (ena_div = '1') then -- divider ena
if (tone_gen_cnt(i) >= tone_gen_comp(i)) then
tone_gen_cnt(i) <= x"000";
tone_gen_op(i) <= not tone_gen_op(i);
else
tone_gen_cnt(i) <= (tone_gen_cnt(i) + "1");
end if;
end if;
end loop;
end if;
end process;
p_envelope_freq : process
variable env_gen_freq : std_logic_vector(15 downto 0);
variable env_gen_comp : std_logic_vector(15 downto 0);
begin
wait until rising_edge(CLK);
env_gen_freq := reg(12) & reg(11);
-- envelope freqs 1 and 0 are the same.
if (env_gen_freq = x"0000") then
env_gen_comp := x"0000";
else
env_gen_comp := (env_gen_freq - "1");
end if;
if (ENA = '1') then
env_ena <= '0';
if (ena_div = '1') then -- divider ena
if (env_gen_cnt >= env_gen_comp) then
env_gen_cnt <= x"0000";
env_ena <= '1';
else
env_gen_cnt <= (env_gen_cnt + "1");
end if;
end if;
end if;
end process;
p_envelope_shape : process(env_reset, reg, CLK)
variable is_bot : boolean;
variable is_bot_p1 : boolean;
variable is_top_m1 : boolean;
variable is_top : boolean;
begin
-- envelope shapes
-- C AtAlH
-- 0 0 x x \___
--
-- 0 1 x x /___
--
-- 1 0 0 0 \\\\
--
-- 1 0 0 1 \___
--
-- 1 0 1 0 \/\/
-- ___
-- 1 0 1 1 \
--
-- 1 1 0 0 ////
-- ___
-- 1 1 0 1 /
--
-- 1 1 1 0 /\/\
--
-- 1 1 1 1 /___
if (env_reset = '1') then
-- load initial state
if (reg(13)(2) = '0') then -- attack
env_vol <= "11111";
env_inc <= '0'; -- -1
else
env_vol <= "00000";
env_inc <= '1'; -- +1
end if;
env_hold <= '0';
elsif rising_edge(CLK) then
is_bot := (env_vol = "00000");
is_bot_p1 := (env_vol = "00001");
is_top_m1 := (env_vol = "11110");
is_top := (env_vol = "11111");
if (ENA = '1') then
if (env_ena = '1') then
if (env_hold = '0') then
if (env_inc = '1') then
env_vol <= (env_vol + "00001");
else
env_vol <= (env_vol + "11111");
end if;
end if;
-- envelope shape control.
if (reg(13)(3) = '0') then
if (env_inc = '0') then -- down
if is_bot_p1 then env_hold <= '1'; end if;
else
if is_top then env_hold <= '1'; end if;
end if;
else
if (reg(13)(0) = '1') then -- hold = 1
if (env_inc = '0') then -- down
if (reg(13)(1) = '1') then -- alt
if is_bot then env_hold <= '1'; end if;
else
if is_bot_p1 then env_hold <= '1'; end if;
end if;
else
if (reg(13)(1) = '1') then -- alt
if is_top then env_hold <= '1'; end if;
else
if is_top_m1 then env_hold <= '1'; end if;
end if;
end if;
elsif (reg(13)(1) = '1') then -- alternate
if (env_inc = '0') then -- down
if is_bot_p1 then env_hold <= '1'; end if;
if is_bot then env_hold <= '0'; env_inc <= '1'; end if;
else
if is_top_m1 then env_hold <= '1'; end if;
if is_top then env_hold <= '0'; env_inc <= '0'; end if;
end if;
end if;
end if;
end if;
end if;
end if;
end process;
p_chan_mixer : process(cnt_div, reg, tone_gen_op)
begin
tone_ena_l <= '1'; tone_src <= '1';
noise_ena_l <= '1'; chan_vol <= "00000";
case cnt_div(1 downto 0) is
when "00" =>
tone_ena_l <= reg(7)(0); tone_src <= tone_gen_op(1); chan_vol <= reg(8)(4 downto 0);
noise_ena_l <= reg(7)(3);
when "01" =>
tone_ena_l <= reg(7)(1); tone_src <= tone_gen_op(2); chan_vol <= reg(9)(4 downto 0);
noise_ena_l <= reg(7)(4);
when "10" =>
tone_ena_l <= reg(7)(2); tone_src <= tone_gen_op(3); chan_vol <= reg(10)(4 downto 0);
noise_ena_l <= reg(7)(5);
when "11" => null; -- tone gen outputs become valid on this clock
when others => null;
end case;
end process;
p_op_mixer : process
variable chan_mixed : std_logic;
variable chan_amp : std_logic_vector(4 downto 0);
begin
wait until rising_edge(CLK);
if (ENA = '1') then
chan_mixed := (tone_ena_l or tone_src) and (noise_ena_l or noise_gen_op);
chan_amp := (others => '0');
if (chan_mixed = '1') then
if (chan_vol(4) = '0') then
if (chan_vol(3 downto 0) = "0000") then -- nothing is easy ! make sure quiet is quiet
chan_amp := "00000";
else
chan_amp := chan_vol(3 downto 0) & '1'; -- make sure level 31 (env) = level 15 (tone)
end if;
else
chan_amp := env_vol(4 downto 0);
end if;
end if;
dac_amp <= x"00";
case chan_amp is
when "11111" => dac_amp <= x"FF";
when "11110" => dac_amp <= x"D9";
when "11101" => dac_amp <= x"BA";
when "11100" => dac_amp <= x"9F";
when "11011" => dac_amp <= x"88";
when "11010" => dac_amp <= x"74";
when "11001" => dac_amp <= x"63";
when "11000" => dac_amp <= x"54";
when "10111" => dac_amp <= x"48";
when "10110" => dac_amp <= x"3D";
when "10101" => dac_amp <= x"34";
when "10100" => dac_amp <= x"2C";
when "10011" => dac_amp <= x"25";
when "10010" => dac_amp <= x"1F";
when "10001" => dac_amp <= x"1A";
when "10000" => dac_amp <= x"16";
when "01111" => dac_amp <= x"13";
when "01110" => dac_amp <= x"10";
when "01101" => dac_amp <= x"0D";
when "01100" => dac_amp <= x"0B";
when "01011" => dac_amp <= x"09";
when "01010" => dac_amp <= x"08";
when "01001" => dac_amp <= x"07";
when "01000" => dac_amp <= x"06";
when "00111" => dac_amp <= x"05";
when "00110" => dac_amp <= x"04";
when "00101" => dac_amp <= x"03";
when "00100" => dac_amp <= x"03";
when "00011" => dac_amp <= x"02";
when "00010" => dac_amp <= x"02";
when "00001" => dac_amp <= x"01";
when "00000" => dac_amp <= x"00";
when others => null;
end case;
cnt_div_t1 <= cnt_div;
end if;
end process;
p_audio_output : process(RESET_L, CLK)
begin
if (RESET_L = '0') then
O_AUDIO <= (others => '0');
O_CHAN <= (others => '0');
elsif rising_edge(CLK) then
if (ENA = '1') then
O_AUDIO <= dac_amp(7 downto 0);
O_CHAN <= cnt_div_t1(1 downto 0);
end if;
end if;
end process;
p_io_ports : process(reg)
begin
O_IOA <= reg(14);
O_IOA_OE_L <= not reg(7)(6);
O_IOB <= reg(15);
O_IOB_OE_L <= not reg(7)(7);
end process;
p_io_ports_inreg : process
begin
wait until rising_edge(CLK);
if (ENA = '1') then -- resync
ioa_inreg <= I_IOA;
iob_inreg <= I_IOB;
end if;
end process;
end architecture RTL;

View File

@@ -1,35 +0,0 @@
# ================================================================================
#
# Build ID Verilog Module Script
# Jeff Wiencrot - 8/1/2011
#
# Generates a Verilog module that contains a timestamp,
# from the current build. These values are available from the build_date, build_time,
# physical_address, and host_name output ports of the build_id module in the build_id.v
# Verilog source file.
#
# ================================================================================
proc generateBuildID_Verilog {} {
# Get the timestamp (see: http://www.altera.com/support/examples/tcl/tcl-date-time-stamp.html)
set buildDate [ clock format [ clock seconds ] -format %y%m%d ]
set buildTime [ clock format [ clock seconds ] -format %H%M%S ]
# Create a Verilog file for output
set outputFileName "rtl/build_id.v"
set outputFile [open $outputFileName "w"]
# Output the Verilog source
puts $outputFile "`define BUILD_DATE \"$buildDate\""
puts $outputFile "`define BUILD_TIME \"$buildTime\""
close $outputFile
# Send confirmation message to the Messages window
post_message "Generated build identification Verilog module: [pwd]/$outputFileName"
post_message "Date: $buildDate"
post_message "Time: $buildTime"
}
# Comment out this line to prevent the process from automatically executing when the file is sourced:
generateBuildID_Verilog

View File

@@ -1,356 +0,0 @@
-- -----------------------------------------------------------------------
--
-- Syntiac's generic VHDL support files.
--
-- -----------------------------------------------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
--
-- Modified April 2016 by Dar (darfpga@aol.fr)
-- http://darfpga.blogspot.fr
-- Remove address register when writing
--
-- -----------------------------------------------------------------------
--
-- gen_rwram.vhd
--
-- -----------------------------------------------------------------------
--
-- generic ram.
--
-- -----------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.numeric_std.ALL;
-- -----------------------------------------------------------------------
entity cmos_ram is
generic (
dWidth : integer := 8;
aWidth : integer := 10
);
port (
clk : in std_logic;
we : in std_logic;
addr : in std_logic_vector((aWidth-1) downto 0);
d : in std_logic_vector((dWidth-1) downto 0);
q : out std_logic_vector((dWidth-1) downto 0)
);
end entity;
-- -----------------------------------------------------------------------
architecture rtl of cmos_ram is
subtype addressRange is integer range 0 to ((2**aWidth)-1);
type ramDef is array(addressRange) of std_logic_vector((dWidth-1) downto 0);
signal ram: ramDef:= (
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --000-00F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --010-01F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --020-02F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --030-03F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --040-04F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --050-05F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --060-06F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --070-07F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --080-08F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --090-09F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0A0-0AF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0B0-0BF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0C0-0CF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0D0-0DF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0E0-0EF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --0F0-0FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --100-10F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --1F0-1FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --200-20F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --2F0-2FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --300-30F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --3F0-3FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --400-40F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --4F0-4FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --500-50F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --5F0-5FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --600-60F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --6F0-6FF
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --700-70F
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF" --7F0-7FF
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --800-80F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --8F0-8FF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --900-90F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --9F0-9FF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --A00-A0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --AF0-AFF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --B00-B0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --BF0-BFF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --C00-C0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --CF0-CFF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --D00-D0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --DF0-DFF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --E00-E0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --EF0-EFF
--
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF", --F00-F0F
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
-- X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF" --FF0-FFF
);
signal rAddrReg : std_logic_vector((aWidth-1) downto 0);
signal qReg : std_logic_vector((dWidth-1) downto 0);
begin
-- -----------------------------------------------------------------------
-- Signals to entity interface
-- -----------------------------------------------------------------------
-- q <= qReg;
-- -----------------------------------------------------------------------
-- Memory write
-- -----------------------------------------------------------------------
process(clk)
begin
if rising_edge(clk) then
if we = '1' then
ram(to_integer(unsigned(addr))) <= d;
end if;
end if;
end process;
-- -----------------------------------------------------------------------
-- Memory read
-- -----------------------------------------------------------------------
process(clk)
begin
if rising_edge(clk) then
-- qReg <= ram(to_integer(unsigned(rAddrReg)));
-- rAddrReg <= addr;
---- qReg <= ram(to_integer(unsigned(addr)));
q <= ram(to_integer(unsigned(addr)));
end if;
end process;
--q <= ram(to_integer(unsigned(addr)));
end architecture;

View File

@@ -1,397 +0,0 @@
-- megafunction wizard: %ALTPLL%
-- GENERATION: STANDARD
-- VERSION: WM1.0
-- MODULE: altpll
-- ============================================================
-- File Name: pll_mist.vhd
-- Megafunction Name(s):
-- altpll
--
-- Simulation Library Files(s):
-- altera_mf
-- ============================================================
-- ************************************************************
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
--
-- 13.1.0 Build 162 10/23/2013 SJ Web Edition
-- ************************************************************
--Copyright (C) 1991-2013 Altera Corporation
--Your use of Altera Corporation's design tools, logic functions
--and other software and tools, and its AMPP partner logic
--functions, and any output files from any of the foregoing
--(including device programming or simulation files), and any
--associated documentation or information are expressly subject
--to the terms and conditions of the Altera Program License
--Subscription Agreement, Altera MegaCore Function License
--Agreement, or other applicable license agreement, including,
--without limitation, that your use is for the sole purpose of
--programming logic devices manufactured by Altera and sold by
--Altera or its authorized distributors. Please refer to the
--applicable agreement for further details.
LIBRARY ieee;
USE ieee.std_logic_1164.all;
LIBRARY altera_mf;
USE altera_mf.all;
ENTITY pll_mist IS
PORT
(
areset : IN STD_LOGIC := '0';
inclk0 : IN STD_LOGIC := '0';
c0 : OUT STD_LOGIC ;
c1 : OUT STD_LOGIC ;
locked : OUT STD_LOGIC
);
END pll_mist;
ARCHITECTURE SYN OF pll_mist IS
SIGNAL sub_wire0 : STD_LOGIC_VECTOR (4 DOWNTO 0);
SIGNAL sub_wire1 : STD_LOGIC ;
SIGNAL sub_wire2 : STD_LOGIC ;
SIGNAL sub_wire3 : STD_LOGIC ;
SIGNAL sub_wire4 : STD_LOGIC ;
SIGNAL sub_wire5 : STD_LOGIC_VECTOR (1 DOWNTO 0);
SIGNAL sub_wire6_bv : BIT_VECTOR (0 DOWNTO 0);
SIGNAL sub_wire6 : STD_LOGIC_VECTOR (0 DOWNTO 0);
COMPONENT altpll
GENERIC (
bandwidth_type : STRING;
clk0_divide_by : NATURAL;
clk0_duty_cycle : NATURAL;
clk0_multiply_by : NATURAL;
clk0_phase_shift : STRING;
clk1_divide_by : NATURAL;
clk1_duty_cycle : NATURAL;
clk1_multiply_by : NATURAL;
clk1_phase_shift : STRING;
compensate_clock : STRING;
inclk0_input_frequency : NATURAL;
intended_device_family : STRING;
lpm_hint : STRING;
lpm_type : STRING;
operation_mode : STRING;
pll_type : STRING;
port_activeclock : STRING;
port_areset : STRING;
port_clkbad0 : STRING;
port_clkbad1 : STRING;
port_clkloss : STRING;
port_clkswitch : STRING;
port_configupdate : STRING;
port_fbin : STRING;
port_inclk0 : STRING;
port_inclk1 : STRING;
port_locked : STRING;
port_pfdena : STRING;
port_phasecounterselect : STRING;
port_phasedone : STRING;
port_phasestep : STRING;
port_phaseupdown : STRING;
port_pllena : STRING;
port_scanaclr : STRING;
port_scanclk : STRING;
port_scanclkena : STRING;
port_scandata : STRING;
port_scandataout : STRING;
port_scandone : STRING;
port_scanread : STRING;
port_scanwrite : STRING;
port_clk0 : STRING;
port_clk1 : STRING;
port_clk2 : STRING;
port_clk3 : STRING;
port_clk4 : STRING;
port_clk5 : STRING;
port_clkena0 : STRING;
port_clkena1 : STRING;
port_clkena2 : STRING;
port_clkena3 : STRING;
port_clkena4 : STRING;
port_clkena5 : STRING;
port_extclk0 : STRING;
port_extclk1 : STRING;
port_extclk2 : STRING;
port_extclk3 : STRING;
self_reset_on_loss_lock : STRING;
width_clock : NATURAL
);
PORT (
areset : IN STD_LOGIC ;
clk : OUT STD_LOGIC_VECTOR (4 DOWNTO 0);
inclk : IN STD_LOGIC_VECTOR (1 DOWNTO 0);
locked : OUT STD_LOGIC
);
END COMPONENT;
BEGIN
sub_wire6_bv(0 DOWNTO 0) <= "0";
sub_wire6 <= To_stdlogicvector(sub_wire6_bv);
sub_wire3 <= sub_wire0(0);
sub_wire1 <= sub_wire0(1);
c1 <= sub_wire1;
locked <= sub_wire2;
c0 <= sub_wire3;
sub_wire4 <= inclk0;
sub_wire5 <= sub_wire6(0 DOWNTO 0) & sub_wire4;
altpll_component : altpll
GENERIC MAP (
bandwidth_type => "AUTO",
clk0_divide_by => 27,
clk0_duty_cycle => 50,
clk0_multiply_by => 40,
clk0_phase_shift => "0",
clk1_divide_by => 27,
clk1_duty_cycle => 50,
clk1_multiply_by => 80,
clk1_phase_shift => "0",
compensate_clock => "CLK0",
inclk0_input_frequency => 37037,
intended_device_family => "Cyclone III",
lpm_hint => "CBX_MODULE_PREFIX=pll_mist",
lpm_type => "altpll",
operation_mode => "NORMAL",
pll_type => "AUTO",
port_activeclock => "PORT_UNUSED",
port_areset => "PORT_USED",
port_clkbad0 => "PORT_UNUSED",
port_clkbad1 => "PORT_UNUSED",
port_clkloss => "PORT_UNUSED",
port_clkswitch => "PORT_UNUSED",
port_configupdate => "PORT_UNUSED",
port_fbin => "PORT_UNUSED",
port_inclk0 => "PORT_USED",
port_inclk1 => "PORT_UNUSED",
port_locked => "PORT_USED",
port_pfdena => "PORT_UNUSED",
port_phasecounterselect => "PORT_UNUSED",
port_phasedone => "PORT_UNUSED",
port_phasestep => "PORT_UNUSED",
port_phaseupdown => "PORT_UNUSED",
port_pllena => "PORT_UNUSED",
port_scanaclr => "PORT_UNUSED",
port_scanclk => "PORT_UNUSED",
port_scanclkena => "PORT_UNUSED",
port_scandata => "PORT_UNUSED",
port_scandataout => "PORT_UNUSED",
port_scandone => "PORT_UNUSED",
port_scanread => "PORT_UNUSED",
port_scanwrite => "PORT_UNUSED",
port_clk0 => "PORT_USED",
port_clk1 => "PORT_USED",
port_clk2 => "PORT_UNUSED",
port_clk3 => "PORT_UNUSED",
port_clk4 => "PORT_UNUSED",
port_clk5 => "PORT_UNUSED",
port_clkena0 => "PORT_UNUSED",
port_clkena1 => "PORT_UNUSED",
port_clkena2 => "PORT_UNUSED",
port_clkena3 => "PORT_UNUSED",
port_clkena4 => "PORT_UNUSED",
port_clkena5 => "PORT_UNUSED",
port_extclk0 => "PORT_UNUSED",
port_extclk1 => "PORT_UNUSED",
port_extclk2 => "PORT_UNUSED",
port_extclk3 => "PORT_UNUSED",
self_reset_on_loss_lock => "OFF",
width_clock => 5
)
PORT MAP (
areset => areset,
inclk => sub_wire5,
clk => sub_wire0,
locked => sub_wire2
);
END SYN;
-- ============================================================
-- CNX file retrieval info
-- ============================================================
-- Retrieval info: PRIVATE: ACTIVECLK_CHECK STRING "0"
-- Retrieval info: PRIVATE: BANDWIDTH STRING "1.000"
-- Retrieval info: PRIVATE: BANDWIDTH_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: BANDWIDTH_FREQ_UNIT STRING "MHz"
-- Retrieval info: PRIVATE: BANDWIDTH_PRESET STRING "Low"
-- Retrieval info: PRIVATE: BANDWIDTH_USE_AUTO STRING "1"
-- Retrieval info: PRIVATE: BANDWIDTH_USE_PRESET STRING "0"
-- Retrieval info: PRIVATE: CLKBAD_SWITCHOVER_CHECK STRING "0"
-- Retrieval info: PRIVATE: CLKLOSS_CHECK STRING "0"
-- Retrieval info: PRIVATE: CLKSWITCH_CHECK STRING "0"
-- Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING "0"
-- Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING "0"
-- Retrieval info: PRIVATE: CREATE_INCLK1_CHECK STRING "0"
-- Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c0"
-- Retrieval info: PRIVATE: CUR_FBIN_CLK STRING "c0"
-- Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING "8"
-- Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC "27"
-- Retrieval info: PRIVATE: DIV_FACTOR1 NUMERIC "27"
-- Retrieval info: PRIVATE: DUTY_CYCLE0 STRING "50.00000000"
-- Retrieval info: PRIVATE: DUTY_CYCLE1 STRING "50.00000000"
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING "40.000000"
-- Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE1 STRING "80.000000"
-- Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING "0"
-- Retrieval info: PRIVATE: EXT_FEEDBACK_RADIO STRING "0"
-- Retrieval info: PRIVATE: GLOCKED_COUNTER_EDIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: GLOCKED_FEATURE_ENABLED STRING "0"
-- Retrieval info: PRIVATE: GLOCKED_MODE_CHECK STRING "0"
-- Retrieval info: PRIVATE: GLOCK_COUNTER_EDIT NUMERIC "1048575"
-- Retrieval info: PRIVATE: HAS_MANUAL_SWITCHOVER STRING "1"
-- Retrieval info: PRIVATE: INCLK0_FREQ_EDIT STRING "27.000"
-- Retrieval info: PRIVATE: INCLK0_FREQ_UNIT_COMBO STRING "MHz"
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT STRING "100.000"
-- Retrieval info: PRIVATE: INCLK1_FREQ_EDIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_CHANGED STRING "1"
-- Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_COMBO STRING "MHz"
-- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone III"
-- Retrieval info: PRIVATE: INT_FEEDBACK__MODE_RADIO STRING "1"
-- Retrieval info: PRIVATE: LOCKED_OUTPUT_CHECK STRING "1"
-- Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING "1"
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE STRING "Not Available"
-- Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE_DIRTY NUMERIC "0"
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT0 STRING "deg"
-- Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT1 STRING "ps"
-- Retrieval info: PRIVATE: MIG_DEVICE_SPEED_GRADE STRING "Any"
-- Retrieval info: PRIVATE: MIRROR_CLK0 STRING "0"
-- Retrieval info: PRIVATE: MIRROR_CLK1 STRING "0"
-- Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC "40"
-- Retrieval info: PRIVATE: MULT_FACTOR1 NUMERIC "80"
-- Retrieval info: PRIVATE: NORMAL_MODE_RADIO STRING "1"
-- Retrieval info: PRIVATE: OUTPUT_FREQ0 STRING "40.00000000"
-- Retrieval info: PRIVATE: OUTPUT_FREQ1 STRING "80.00000000"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE0 STRING "0"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_MODE1 STRING "0"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING "MHz"
-- Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT1 STRING "MHz"
-- Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING "0"
-- Retrieval info: PRIVATE: PHASE_SHIFT0 STRING "0.00000000"
-- Retrieval info: PRIVATE: PHASE_SHIFT1 STRING "0.00000000"
-- Retrieval info: PRIVATE: PHASE_SHIFT_STEP_ENABLED_CHECK STRING "0"
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT0 STRING "deg"
-- Retrieval info: PRIVATE: PHASE_SHIFT_UNIT1 STRING "deg"
-- Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_ARESET_CHECK STRING "1"
-- Retrieval info: PRIVATE: PLL_AUTOPLL_CHECK NUMERIC "1"
-- Retrieval info: PRIVATE: PLL_ENHPLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_FASTPLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_FBMIMIC_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_LVDS_PLL_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PLL_PFDENA_CHECK STRING "0"
-- Retrieval info: PRIVATE: PLL_TARGET_HARCOPY_CHECK NUMERIC "0"
-- Retrieval info: PRIVATE: PRIMARY_CLK_COMBO STRING "inclk0"
-- Retrieval info: PRIVATE: RECONFIG_FILE STRING "pll_mist.mif"
-- Retrieval info: PRIVATE: SACN_INPUTS_CHECK STRING "0"
-- Retrieval info: PRIVATE: SCAN_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: SELF_RESET_LOCK_LOSS STRING "0"
-- Retrieval info: PRIVATE: SHORT_SCAN_RADIO STRING "0"
-- Retrieval info: PRIVATE: SPREAD_FEATURE_ENABLED STRING "0"
-- Retrieval info: PRIVATE: SPREAD_FREQ STRING "50.000"
-- Retrieval info: PRIVATE: SPREAD_FREQ_UNIT STRING "KHz"
-- Retrieval info: PRIVATE: SPREAD_PERCENT STRING "0.500"
-- Retrieval info: PRIVATE: SPREAD_USE STRING "0"
-- Retrieval info: PRIVATE: SRC_SYNCH_COMP_RADIO STRING "0"
-- Retrieval info: PRIVATE: STICKY_CLK0 STRING "1"
-- Retrieval info: PRIVATE: STICKY_CLK1 STRING "1"
-- Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUMERIC "1"
-- Retrieval info: PRIVATE: SWITCHOVER_FEATURE_ENABLED STRING "1"
-- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
-- Retrieval info: PRIVATE: USE_CLK0 STRING "1"
-- Retrieval info: PRIVATE: USE_CLK1 STRING "1"
-- Retrieval info: PRIVATE: USE_CLKENA0 STRING "0"
-- Retrieval info: PRIVATE: USE_CLKENA1 STRING "0"
-- Retrieval info: PRIVATE: USE_MIL_SPEED_GRADE NUMERIC "0"
-- Retrieval info: PRIVATE: ZERO_DELAY_RADIO STRING "0"
-- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
-- Retrieval info: CONSTANT: BANDWIDTH_TYPE STRING "AUTO"
-- Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC "27"
-- Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC "50"
-- Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC "40"
-- Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING "0"
-- Retrieval info: CONSTANT: CLK1_DIVIDE_BY NUMERIC "27"
-- Retrieval info: CONSTANT: CLK1_DUTY_CYCLE NUMERIC "50"
-- Retrieval info: CONSTANT: CLK1_MULTIPLY_BY NUMERIC "80"
-- Retrieval info: CONSTANT: CLK1_PHASE_SHIFT STRING "0"
-- Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK0"
-- Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC "37037"
-- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone III"
-- Retrieval info: CONSTANT: LPM_TYPE STRING "altpll"
-- Retrieval info: CONSTANT: OPERATION_MODE STRING "NORMAL"
-- Retrieval info: CONSTANT: PLL_TYPE STRING "AUTO"
-- Retrieval info: CONSTANT: PORT_ACTIVECLOCK STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_ARESET STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_CLKBAD0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKBAD1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKLOSS STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CLKSWITCH STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_CONFIGUPDATE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_FBIN STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_INCLK0 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_INCLK1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_LOCKED STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_PFDENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASECOUNTERSELECT STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASEDONE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASESTEP STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PHASEUPDOWN STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_PLLENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANACLR STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANCLK STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANCLKENA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDATA STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDATAOUT STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANDONE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANREAD STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_SCANWRITE STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_USED"
-- Retrieval info: CONSTANT: PORT_clk2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk4 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clk5 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena4 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_clkena5 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk0 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk1 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk2 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: PORT_extclk3 STRING "PORT_UNUSED"
-- Retrieval info: CONSTANT: SELF_RESET_ON_LOSS_LOCK STRING "OFF"
-- Retrieval info: CONSTANT: WIDTH_CLOCK NUMERIC "5"
-- Retrieval info: USED_PORT: @clk 0 0 5 0 OUTPUT_CLK_EXT VCC "@clk[4..0]"
-- Retrieval info: USED_PORT: @inclk 0 0 2 0 INPUT_CLK_EXT VCC "@inclk[1..0]"
-- Retrieval info: USED_PORT: areset 0 0 0 0 INPUT GND "areset"
-- Retrieval info: USED_PORT: c0 0 0 0 0 OUTPUT_CLK_EXT VCC "c0"
-- Retrieval info: USED_PORT: c1 0 0 0 0 OUTPUT_CLK_EXT VCC "c1"
-- Retrieval info: USED_PORT: inclk0 0 0 0 0 INPUT_CLK_EXT GND "inclk0"
-- Retrieval info: USED_PORT: locked 0 0 0 0 OUTPUT GND "locked"
-- Retrieval info: CONNECT: @areset 0 0 0 0 areset 0 0 0 0
-- Retrieval info: CONNECT: @inclk 0 0 1 1 GND 0 0 0 0
-- Retrieval info: CONNECT: @inclk 0 0 1 0 inclk0 0 0 0 0
-- Retrieval info: CONNECT: c0 0 0 0 0 @clk 0 0 1 0
-- Retrieval info: CONNECT: c1 0 0 0 0 @clk 0 0 1 1
-- Retrieval info: CONNECT: locked 0 0 0 0 @locked 0 0 0 0
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.vhd TRUE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.ppf TRUE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.inc FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.cmp FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist.bsf FALSE
-- Retrieval info: GEN_FILE: TYPE_NORMAL pll_mist_inst.vhd FALSE
-- Retrieval info: LIB_FILE: altera_mf
-- Retrieval info: CBX_MODULE_PREFIX: ON

View File

@@ -1,24 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity midssio_82s123 is
port (
clk : in std_logic;
addr : in std_logic_vector(4 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of midssio_82s123 is
type rom is array(0 to 31) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"FF",X"FF",X"FF",X"FF",X"FF",X"7F",X"FF",X"FF",X"FE",X"FF",X"FF",X"FD",X"FF",X"FE",X"FF",X"F7",
X"FB",X"EF",X"6D",X"07",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_bg_bits_1 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_bg_bits_1 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"02",X"20",X"02",X"AA",X"AA",X"AA",X"AA",X"00",X"02",X"00",X"02",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"02",X"20",X"02",X"AA",X"AA",X"AA",X"AA",X"00",X"02",X"00",X"02",X"00",X"00",
X"0A",X"88",X"08",X"88",X"08",X"A8",X"00",X"00",X"08",X"00",X"0A",X"A8",X"08",X"00",X"00",X"00",
X"00",X"00",X"20",X"2A",X"A0",X"AA",X"80",X"A2",X"82",X"82",X"AA",X"82",X"2A",X"02",X"00",X"00",
X"0A",X"A8",X"02",X"80",X"00",X"A0",X"0A",X"A8",X"00",X"00",X"0A",X"A8",X"08",X"08",X"02",X"A0",
X"09",X"00",X"29",X"68",X"0A",X"50",X"0A",X"93",X"0A",X"93",X"0A",X"50",X"29",X"68",X"09",X"00",
X"F3",X"00",X"FC",X"7C",X"35",X"DF",X"04",X"F4",X"04",X"F4",X"35",X"DF",X"FC",X"7C",X"F3",X"00",
X"43",X"C0",X"3E",X"F4",X"39",X"B5",X"E8",X"6D",X"E8",X"6D",X"39",X"B5",X"3E",X"F4",X"43",X"C0",
X"00",X"00",X"15",X"42",X"1A",X"D2",X"1E",X"E2",X"06",X"6A",X"1E",X"E2",X"1A",X"D2",X"15",X"42",
X"00",X"00",X"15",X"42",X"1A",X"D2",X"1E",X"E2",X"06",X"6A",X"1E",X"E2",X"1A",X"D2",X"15",X"42",
X"05",X"01",X"0C",X"05",X"00",X"75",X"33",X"F0",X"3C",X"30",X"00",X"75",X"0C",X"05",X"05",X"01",
X"FF",X"0C",X"C3",X"F3",X"CF",X"FF",X"FF",X"3F",X"FF",X"3F",X"CF",X"FF",X"C3",X"F3",X"FF",X"0C",
X"00",X"FF",X"03",X"FC",X"1D",X"70",X"55",X"C0",X"55",X"C0",X"1D",X"70",X"03",X"FC",X"00",X"FF",
X"55",X"25",X"05",X"A0",X"00",X"00",X"01",X"43",X"01",X"43",X"00",X"00",X"05",X"A0",X"55",X"25",
X"00",X"00",X"2A",X"A8",X"A0",X"2A",X"E2",X"A0",X"8A",X"B0",X"E2",X"A0",X"A0",X"2A",X"2A",X"A8",
X"00",X"00",X"00",X"40",X"4F",X"28",X"9F",X"03",X"5C",X"C0",X"9F",X"03",X"4F",X"28",X"00",X"40",
X"F0",X"0F",X"C0",X"03",X"CF",X"F3",X"CC",X"33",X"CC",X"33",X"CF",X"F3",X"C0",X"03",X"F0",X"0F",
X"0E",X"B0",X"3A",X"AC",X"EB",X"EB",X"AD",X"7A",X"AD",X"7A",X"EB",X"EB",X"3A",X"AC",X"0E",X"B0",
X"2A",X"A2",X"0A",X"A8",X"02",X"00",X"0A",X"08",X"0A",X"08",X"02",X"00",X"0A",X"A8",X"2A",X"A2",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"31",X"00",X"05",X"42",X"04",X"87",X"56",X"54",X"56",X"54",X"04",X"84",X"05",X"42",X"31",X"00",
X"C0",X"F1",X"F3",X"D4",X"0F",X"D1",X"FF",X"55",X"0F",X"D1",X"F3",X"D4",X"C0",X"F1",X"00",X"00",
X"03",X"3F",X"3F",X"FF",X"3F",X"FC",X"FD",X"FC",X"FD",X"FC",X"3F",X"FC",X"3F",X"FF",X"03",X"3F",
X"03",X"F0",X"F3",X"D6",X"33",X"58",X"3D",X"E0",X"3D",X"E0",X"33",X"58",X"F3",X"D6",X"03",X"F0",
X"05",X"48",X"14",X"21",X"DB",X"11",X"E2",X"0C",X"DB",X"11",X"14",X"21",X"05",X"48",X"00",X"00",
X"F4",X"50",X"5E",X"D0",X"1C",X"F0",X"02",X"5F",X"02",X"5F",X"1C",X"F0",X"5E",X"D0",X"F4",X"50",
X"FC",X"3F",X"FD",X"7E",X"7D",X"79",X"17",X"D4",X"17",X"D4",X"7D",X"79",X"FD",X"7E",X"FC",X"3F",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"04",X"10",X"04",X"55",X"54",X"55",X"54",X"00",X"04",X"00",X"04",X"00",X"00",
X"00",X"00",X"10",X"54",X"51",X"54",X"51",X"04",X"51",X"04",X"55",X"14",X"14",X"14",X"00",X"00",
X"00",X"00",X"50",X"50",X"40",X"54",X"44",X"04",X"44",X"04",X"51",X"54",X"51",X"50",X"00",X"00",
X"00",X"00",X"05",X"40",X"15",X"40",X"00",X"40",X"00",X"40",X"55",X"54",X"55",X"54",X"00",X"00",
X"00",X"00",X"55",X"10",X"55",X"14",X"44",X"04",X"44",X"04",X"45",X"54",X"45",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"41",X"04",X"41",X"04",X"51",X"54",X"10",X"50",X"00",X"00",
X"00",X"00",X"50",X"00",X"50",X"00",X"40",X"54",X"41",X"54",X"55",X"00",X"54",X"00",X"00",X"00",
X"00",X"00",X"11",X"50",X"55",X"54",X"45",X"04",X"45",X"04",X"55",X"54",X"11",X"50",X"00",X"00",
X"00",X"00",X"14",X"10",X"55",X"14",X"41",X"04",X"41",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"50",X"40",X"50",X"40",X"55",X"54",X"15",X"54",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"44",X"14",X"54",X"14",X"55",X"54",X"11",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"54",X"54",X"14",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"41",X"04",X"41",X"04",X"40",X"04",X"50",X"14",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"41",X"00",X"41",X"00",X"40",X"00",X"50",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"41",X"04",X"51",X"54",X"11",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"01",X"00",X"01",X"00",X"55",X"54",X"55",X"54",X"00",X"00",
X"00",X"00",X"40",X"04",X"40",X"04",X"55",X"54",X"55",X"54",X"40",X"04",X"40",X"04",X"00",X"00",
X"00",X"00",X"00",X"50",X"40",X"54",X"40",X"04",X"55",X"54",X"55",X"50",X"40",X"00",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"05",X"40",X"14",X"50",X"50",X"14",X"40",X"04",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"00",X"04",X"00",X"04",X"00",X"14",X"00",X"14",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"40",X"00",X"55",X"54",X"40",X"00",X"15",X"54",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"15",X"00",X"01",X"50",X"55",X"54",X"55",X"54",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"41",X"00",X"41",X"00",X"55",X"00",X"14",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"44",X"55",X"50",X"15",X"44",X"00",X"00",
X"00",X"00",X"55",X"54",X"55",X"54",X"41",X"00",X"41",X"40",X"54",X"54",X"10",X"04",X"00",X"00",
X"00",X"00",X"14",X"10",X"55",X"14",X"41",X"04",X"41",X"04",X"51",X"54",X"10",X"50",X"00",X"00",
X"00",X"00",X"54",X"00",X"40",X"00",X"55",X"54",X"55",X"54",X"40",X"00",X"54",X"00",X"00",X"00",
X"00",X"00",X"55",X"50",X"55",X"54",X"00",X"04",X"00",X"04",X"55",X"54",X"55",X"50",X"00",X"00",
X"00",X"00",X"54",X"00",X"15",X"50",X"00",X"14",X"01",X"54",X"55",X"40",X"40",X"00",X"00",X"00",
X"00",X"00",X"55",X"50",X"55",X"54",X"00",X"04",X"15",X"50",X"00",X"04",X"55",X"50",X"00",X"00",
X"00",X"00",X"40",X"04",X"54",X"54",X"15",X"50",X"05",X"40",X"54",X"54",X"40",X"04",X"00",X"00",
X"00",X"00",X"50",X"00",X"54",X"00",X"05",X"54",X"01",X"54",X"55",X"00",X"50",X"00",X"00",X"00",
X"00",X"00",X"50",X"14",X"40",X"54",X"41",X"44",X"45",X"04",X"54",X"04",X"50",X"14",X"00",X"00",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AF",X"FA",X"BF",X"FA",X"AA",X"BA",X"FF",X"FF",X"FF",X"FF",X"AA",X"BA",X"AA",X"AA",
X"AE",X"AA",X"AF",X"FE",X"AE",X"AA",X"AA",X"AA",X"AF",X"FE",X"AA",X"EA",X"AA",X"EA",X"AF",X"FE",
X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"50",X"01",X"10",X"01",X"50",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"80",X"08",X"80",X"08",X"AA",X"A8",X"2A",X"A0",X"00",X"00",
X"00",X"00",X"00",X"08",X"20",X"08",X"AA",X"A8",X"AA",X"A8",X"00",X"08",X"00",X"08",X"00",X"00",
X"00",X"00",X"20",X"A8",X"A2",X"A8",X"82",X"08",X"82",X"08",X"AA",X"28",X"28",X"28",X"00",X"00",
X"00",X"00",X"A0",X"A0",X"80",X"A8",X"88",X"08",X"88",X"08",X"A2",X"A8",X"A0",X"A0",X"00",X"00",
X"00",X"00",X"0A",X"80",X"2A",X"80",X"00",X"80",X"00",X"80",X"AA",X"A8",X"AA",X"A8",X"00",X"00",
X"00",X"00",X"AA",X"20",X"AA",X"28",X"88",X"08",X"88",X"08",X"8A",X"A8",X"82",X"A0",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"82",X"08",X"82",X"08",X"A2",X"A8",X"20",X"A0",X"00",X"00",
X"00",X"00",X"A0",X"00",X"A0",X"00",X"80",X"A8",X"82",X"A8",X"AA",X"00",X"A8",X"00",X"00",X"00",
X"00",X"00",X"22",X"A0",X"AA",X"A8",X"8A",X"08",X"8A",X"08",X"AA",X"A8",X"22",X"A0",X"00",X"00",
X"00",X"00",X"28",X"20",X"AA",X"28",X"82",X"08",X"82",X"08",X"AA",X"A8",X"2A",X"A0",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"A0",X"80",X"A0",X"80",X"AA",X"A8",X"2A",X"A8",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"82",X"08",X"82",X"08",X"AA",X"A8",X"28",X"A0",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"80",X"08",X"80",X"08",X"A8",X"A8",X"28",X"A0",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"80",X"08",X"A0",X"28",X"AA",X"A8",X"2A",X"A0",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"82",X"08",X"82",X"08",X"80",X"08",X"A0",X"28",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"82",X"00",X"82",X"00",X"80",X"00",X"A0",X"00",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"80",X"08",X"82",X"08",X"A2",X"A8",X"22",X"A0",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"02",X"00",X"02",X"00",X"AA",X"A8",X"AA",X"A8",X"00",X"00",
X"00",X"00",X"80",X"08",X"80",X"08",X"AA",X"A8",X"AA",X"A8",X"80",X"08",X"80",X"08",X"00",X"00",
X"00",X"00",X"00",X"A0",X"80",X"A8",X"80",X"08",X"AA",X"A8",X"AA",X"A0",X"80",X"00",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"0A",X"80",X"28",X"A0",X"A0",X"28",X"80",X"08",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"00",X"08",X"00",X"08",X"00",X"28",X"00",X"28",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"80",X"00",X"AA",X"A8",X"80",X"00",X"2A",X"A8",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"2A",X"00",X"02",X"A0",X"AA",X"A8",X"AA",X"A8",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"80",X"08",X"80",X"08",X"AA",X"A8",X"2A",X"A0",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"82",X"00",X"82",X"00",X"AA",X"00",X"28",X"00",X"00",X"00",
X"00",X"00",X"2A",X"A0",X"AA",X"A8",X"80",X"08",X"80",X"88",X"AA",X"A0",X"2A",X"88",X"00",X"00",
X"00",X"00",X"AA",X"A8",X"AA",X"A8",X"82",X"00",X"82",X"80",X"A8",X"A8",X"20",X"08",X"00",X"00",
X"00",X"00",X"28",X"20",X"AA",X"28",X"82",X"08",X"82",X"08",X"A2",X"A8",X"20",X"A0",X"00",X"00",
X"00",X"00",X"A8",X"00",X"80",X"00",X"AA",X"A8",X"AA",X"A8",X"80",X"00",X"A8",X"00",X"00",X"00",
X"00",X"00",X"AA",X"A0",X"AA",X"A8",X"00",X"08",X"00",X"08",X"AA",X"A8",X"AA",X"A0",X"00",X"00",
X"00",X"00",X"A8",X"00",X"AA",X"A0",X"00",X"28",X"02",X"A8",X"AA",X"80",X"A0",X"00",X"00",X"00",
X"00",X"00",X"AA",X"A0",X"AA",X"A8",X"00",X"08",X"2A",X"A0",X"00",X"08",X"AA",X"A0",X"00",X"00",
X"00",X"00",X"80",X"08",X"A8",X"A8",X"2A",X"A0",X"0A",X"80",X"A8",X"A8",X"80",X"08",X"00",X"00",
X"00",X"00",X"A0",X"00",X"A8",X"00",X"0A",X"A8",X"02",X"A8",X"AA",X"00",X"A0",X"00",X"00",X"00",
X"00",X"00",X"A0",X"28",X"80",X"A8",X"82",X"88",X"8A",X"08",X"A8",X"08",X"A0",X"28",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"03",X"C0",X"0F",X"F0",X"2F",X"F8",X"EF",X"FB",X"FE",X"BF",X"3A",X"AC",X"0A",X"A0",X"03",X"80",
X"0A",X"A0",X"0A",X"AC",X"28",X"2B",X"A0",X"2A",X"A0",X"2A",X"28",X"2B",X"0A",X"AC",X"0A",X"A0",
X"0F",X"F0",X"3F",X"FC",X"FE",X"BF",X"FA",X"AF",X"FA",X"AF",X"FE",X"BF",X"3F",X"FC",X"0F",X"F0",
X"09",X"E0",X"25",X"D8",X"96",X"D6",X"5B",X"FF",X"FF",X"E5",X"97",X"96",X"27",X"58",X"0B",X"60",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"3F",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"E0",X"00",X"E0",X"00",X"E0",X"00",X"E0",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"00",X"08",X"00",X"08",X"00",X"08",X"00",X"08",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"C0",X"08",X"C0",X"08",X"C0",X"08",X"C0",X"08",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",
X"05",X"50",X"15",X"00",X"75",X"40",X"5D",X"55",X"5D",X"55",X"75",X"40",X"15",X"00",X"05",X"50",
X"00",X"00",X"05",X"05",X"51",X"05",X"15",X"50",X"15",X"50",X"51",X"05",X"05",X"05",X"00",X"00",
X"55",X"50",X"05",X"45",X"1F",X"54",X"73",X"D5",X"73",X"D5",X"1F",X"54",X"05",X"45",X"55",X"50",
X"51",X"14",X"44",X"05",X"51",X"14",X"15",X"50",X"15",X"50",X"51",X"14",X"44",X"05",X"51",X"14",
X"EA",X"AA",X"A5",X"5A",X"95",X"D6",X"9F",X"D6",X"97",X"F6",X"97",X"56",X"A5",X"5A",X"AA",X"AB",
X"EA",X"AA",X"AA",X"AA",X"AD",X"FA",X"AF",X"DA",X"A7",X"FA",X"AF",X"7A",X"AA",X"AA",X"AA",X"AB",
X"00",X"00",X"00",X"00",X"3D",X"54",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"10",X"00",X"10",X"00",X"10",X"00",X"10",X"00",X"30",X"00",X"30",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"3D",X"54",X"00",X"00",X"00",X"00",X"00",X"00",
X"E8",X"2B",X"B8",X"2E",X"A0",X"0A",X"03",X"C0",X"03",X"C0",X"A0",X"0A",X"B8",X"2E",X"E8",X"2B",
X"00",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"03",X"00",X"03",X"00",X"00",X"00",
X"AA",X"EA",X"AB",X"EA",X"A7",X"EA",X"A9",X"6A",X"A6",X"FA",X"A6",X"FA",X"AB",X"AA",X"AA",X"AA",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"3D",X"54",X"00",X"00",
X"00",X"00",X"10",X"00",X"10",X"00",X"10",X"00",X"10",X"00",X"30",X"00",X"30",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"00",X"00",X"00",X"00",
X"CC",X"33",X"FF",X"FF",X"3F",X"FC",X"BF",X"FE",X"EF",X"FB",X"2F",X"F8",X"EB",X"EB",X"EC",X"3B",
X"EC",X"3B",X"EB",X"EB",X"2F",X"F8",X"EF",X"FB",X"BF",X"FE",X"3F",X"FC",X"FF",X"FF",X"CC",X"33",
X"03",X"CA",X"83",X"D6",X"A3",X"CA",X"E0",X"0B",X"FC",X"3F",X"EE",X"BB",X"AA",X"BA",X"AA",X"AA",
X"AA",X"AA",X"AE",X"AA",X"EE",X"BB",X"FC",X"3F",X"E0",X"0B",X"A3",X"CA",X"97",X"C2",X"A3",X"C0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"FF",X"FC",X"00",X"00",
X"3D",X"54",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"01",X"00",X"03",X"00",X"03",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"AA",X"00",X"00",X"00",X"00",X"00",X"00",
X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",
X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"AA",X"AA",X"02",X"00",X"02",X"00",X"02",X"00",
X"00",X"00",X"2A",X"A8",X"2A",X"A8",X"20",X"80",X"20",X"A0",X"2A",X"28",X"08",X"08",X"00",X"00",
X"00",X"00",X"2A",X"A8",X"2A",X"A8",X"20",X"80",X"20",X"80",X"2A",X"A8",X"0A",X"A8",X"00",X"00",
X"00",X"00",X"0A",X"A0",X"2A",X"A8",X"20",X"08",X"20",X"08",X"28",X"28",X"08",X"20",X"00",X"00",
X"00",X"00",X"2A",X"A8",X"2A",X"A8",X"02",X"00",X"02",X"80",X"08",X"A8",X"20",X"28",X"00",X"00",
X"28",X"00",X"82",X"00",X"2A",X"80",X"2A",X"A2",X"2A",X"AA",X"2A",X"A2",X"82",X"80",X"2A",X"00",
X"94",X"B9",X"16",X"10",X"96",X"9F",X"24",X"D8",X"84",X"FF",X"67",X"89",X"86",X"09",X"37",X"0C",
X"95",X"BB",X"36",X"B1",X"9E",X"85",X"35",X"DD",X"D7",X"9E",X"86",X"99",X"DE",X"4F",X"D3",X"9B",
X"35",X"D4",X"A1",X"B3",X"B6",X"8D",X"D6",X"9C",X"73",X"A7",X"8E",X"8F",X"00",X"D5",X"FD",X"89",
X"77",X"3A",X"CE",X"99",X"FF",X"DF",X"3D",X"99",X"B7",X"BD",X"BB",X"99",X"5C",X"89",X"CA",X"8D",
X"00",X"CE",X"5F",X"98",X"AF",X"94",X"96",X"9D",X"0F",X"9C",X"7D",X"D8",X"9E",X"8D",X"14",X"9B",
X"16",X"75",X"17",X"B1",X"E6",X"FD",X"92",X"90",X"86",X"D5",X"77",X"DC",X"3E",X"85",X"83",X"89",
X"76",X"EC",X"C7",X"98",X"C6",X"3C",X"86",X"89",X"B5",X"FC",X"13",X"BC",X"92",X"C1",X"C4",X"B9",
X"A6",X"9F",X"17",X"08",X"DE",X"C9",X"02",X"AD",X"37",X"00",X"57",X"98",X"FE",X"F5",X"04",X"8A",
X"46",X"63",X"E6",X"BC",X"66",X"EB",X"F6",X"31",X"66",X"23",X"2B",X"22",X"2E",X"7D",X"E3",X"CD",
X"64",X"40",X"E2",X"3E",X"36",X"0D",X"60",X"73",X"E6",X"2B",X"64",X"42",X"EE",X"7F",X"46",X"D9",
X"44",X"EC",X"64",X"17",X"6F",X"7B",X"C4",X"E3",X"6C",X"2B",X"62",X"36",X"62",X"D4",X"E3",X"FF",
X"0E",X"54",X"6E",X"1C",X"6E",X"6F",X"ED",X"23",X"40",X"62",X"37",X"68",X"CE",X"2E",X"F6",X"28",
X"E6",X"D2",X"27",X"FA",X"12",X"5B",X"0E",X"B1",X"46",X"46",X"46",X"EC",X"AC",X"83",X"EA",X"D3",
X"E6",X"44",X"77",X"D0",X"6A",X"DB",X"2C",X"F3",X"64",X"D8",X"E3",X"08",X"EE",X"7E",X"7B",X"F3",
X"26",X"73",X"32",X"CE",X"26",X"1F",X"F4",X"EB",X"8C",X"0E",X"E6",X"8A",X"E2",X"79",X"C3",X"79",
X"EE",X"2A",X"47",X"A8",X"32",X"4C",X"06",X"EC",X"66",X"2E",X"66",X"48",X"0E",X"03",X"E6",X"F3",
X"44",X"CF",X"54",X"33",X"66",X"3D",X"48",X"FC",X"EE",X"63",X"46",X"F1",X"E4",X"8F",X"C2",X"F5",
X"E6",X"E4",X"4C",X"A0",X"A6",X"EB",X"2A",X"0F",X"36",X"6E",X"66",X"10",X"FF",X"63",X"42",X"BB",
X"A6",X"70",X"00",X"09",X"4A",X"5F",X"78",X"79",X"CE",X"83",X"75",X"F4",X"63",X"41",X"4E",X"0F",
X"34",X"DE",X"26",X"1B",X"36",X"C8",X"C4",X"33",X"64",X"20",X"6E",X"F2",X"3E",X"CB",X"4C",X"30",
X"44",X"0C",X"72",X"A8",X"66",X"49",X"72",X"37",X"2E",X"F4",X"47",X"3C",X"EE",X"F1",X"30",X"0F",
X"6E",X"03",X"76",X"3A",X"34",X"6F",X"0F",X"ED",X"68",X"F2",X"66",X"A0",X"46",X"B5",X"76",X"B2",
X"46",X"06",X"67",X"39",X"23",X"04",X"5A",X"FF",X"C6",X"2D",X"64",X"08",X"E7",X"03",X"EE",X"1B",
X"66",X"82",X"03",X"CC",X"67",X"51",X"F4",X"0C",X"66",X"C6",X"E2",X"28",X"EE",X"C3",X"60",X"49");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,278 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_bg_bits_2 is
port (
clk : in std_logic;
addr : in std_logic_vector(11 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_bg_bits_2 is
type rom is array(0 to 4095) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"10",X"00",X"55",X"54",X"55",X"54",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"50",X"54",X"51",X"54",X"41",X"04",X"41",X"04",X"55",X"04",X"14",X"04",X"00",X"00",
X"00",X"00",X"40",X"50",X"44",X"54",X"44",X"04",X"44",X"04",X"55",X"54",X"51",X"50",X"00",X"00",
X"00",X"00",X"05",X"40",X"15",X"40",X"00",X"40",X"00",X"40",X"55",X"54",X"55",X"54",X"00",X"00",
X"00",X"00",X"54",X"50",X"44",X"54",X"44",X"04",X"44",X"04",X"45",X"54",X"41",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"41",X"04",X"41",X"04",X"51",X"54",X"10",X"50",X"00",X"00",
X"00",X"00",X"50",X"00",X"40",X"00",X"40",X"54",X"41",X"54",X"55",X"00",X"54",X"00",X"00",X"00",
X"00",X"00",X"14",X"50",X"55",X"54",X"41",X"04",X"41",X"04",X"55",X"54",X"14",X"50",X"00",X"00",
X"00",X"00",X"14",X"10",X"55",X"14",X"41",X"04",X"41",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"3D",X"00",X"F9",X"7C",X"3A",X"AC",X"06",X"AD",X"06",X"AD",X"3A",X"AC",X"F9",X"7C",X"3D",X"00",
X"51",X"00",X"5C",X"54",X"19",X"D5",X"06",X"64",X"06",X"64",X"19",X"D5",X"5C",X"54",X"51",X"00",
X"81",X"40",X"17",X"58",X"1E",X"DA",X"7C",X"B6",X"7C",X"B6",X"1E",X"DA",X"17",X"58",X"81",X"40",
X"00",X"00",X"15",X"C3",X"1F",X"93",X"3B",X"B3",X"0F",X"7F",X"3B",X"B3",X"1F",X"93",X"15",X"C3",
X"00",X"00",X"15",X"C3",X"1F",X"93",X"3B",X"B3",X"0F",X"7F",X"3B",X"B3",X"1F",X"93",X"15",X"C3",
X"05",X"01",X"00",X"05",X"FC",X"45",X"C0",X"00",X"E0",X"00",X"FC",X"45",X"00",X"05",X"05",X"01",
X"55",X"00",X"40",X"33",X"40",X"A9",X"F3",X"25",X"03",X"25",X"40",X"A9",X"40",X"33",X"55",X"00",
X"00",X"FF",X"03",X"FC",X"3F",X"F0",X"FF",X"80",X"FF",X"80",X"3F",X"F0",X"03",X"FC",X"00",X"FF",
X"56",X"29",X"06",X"A0",X"3F",X"F0",X"FD",X"BF",X"FD",X"BF",X"3F",X"F0",X"06",X"A0",X"56",X"29",
X"00",X"00",X"15",X"7C",X"90",X"3F",X"D2",X"F0",X"4A",X"A0",X"D2",X"F0",X"90",X"3F",X"15",X"7C",
X"00",X"00",X"3F",X"FC",X"F0",X"EB",X"B2",X"C0",X"FB",X"80",X"B2",X"C0",X"F0",X"EB",X"3F",X"FC",
X"5A",X"A5",X"40",X"01",X"8F",X"A3",X"8C",X"23",X"8C",X"23",X"8F",X"A3",X"40",X"01",X"5A",X"A5",
X"0D",X"70",X"35",X"5C",X"D7",X"D7",X"5F",X"F5",X"5F",X"F5",X"D7",X"D7",X"35",X"5C",X"0D",X"70",
X"3F",X"F3",X"5B",X"FD",X"07",X"50",X"0F",X"48",X"0F",X"48",X"07",X"50",X"5B",X"FD",X"3F",X"F3",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"32",X"00",X"0A",X"B1",X"0B",X"BB",X"AA",X"A8",X"AA",X"A8",X"0B",X"B8",X"0A",X"B1",X"32",X"00",
X"40",X"D1",X"53",X"54",X"0D",X"51",X"55",X"55",X"0D",X"51",X"53",X"54",X"40",X"D1",X"00",X"00",
X"02",X"28",X"02",X"80",X"0A",X"88",X"AB",X"A8",X"AB",X"A8",X"0A",X"88",X"02",X"80",X"02",X"28",
X"02",X"A0",X"52",X"97",X"12",X"5C",X"26",X"70",X"26",X"70",X"12",X"5C",X"52",X"97",X"02",X"A0",
X"0B",X"C8",X"3C",X"23",X"FB",X"33",X"E2",X"3C",X"FB",X"33",X"3C",X"23",X"0B",X"C8",X"00",X"00",
X"54",X"50",X"57",X"50",X"14",X"5C",X"07",X"A8",X"07",X"A8",X"14",X"5C",X"57",X"50",X"54",X"50",
X"D4",X"17",X"77",X"DF",X"DD",X"7F",X"37",X"DC",X"37",X"DC",X"DD",X"7F",X"77",X"DF",X"D4",X"17",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"40",X"14",X"41",X"15",X"41",X"01",X"45",X"01",X"55",X"55",X"51",X"54",X"00",X"00",
X"05",X"54",X"04",X"40",X"04",X"40",X"01",X"14",X"00",X"00",X"05",X"54",X"04",X"04",X"01",X"50",
X"00",X"00",X"05",X"50",X"15",X"50",X"00",X"10",X"55",X"55",X"55",X"55",X"00",X"10",X"00",X"00",
X"04",X"00",X"05",X"54",X"04",X"00",X"00",X"00",X"05",X"54",X"00",X"40",X"00",X"40",X"05",X"54",
X"AA",X"AA",X"BF",X"FF",X"B1",X"53",X"B5",X"57",X"B5",X"D7",X"B5",X"57",X"B1",X"53",X"BF",X"FF",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"40",X"04",X"40",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"10",X"00",X"55",X"54",X"55",X"54",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"10",X"54",X"51",X"54",X"51",X"04",X"51",X"04",X"55",X"04",X"14",X"04",X"00",X"00",
X"00",X"00",X"40",X"10",X"44",X"14",X"44",X"04",X"44",X"04",X"55",X"54",X"11",X"50",X"00",X"00",
X"00",X"00",X"15",X"40",X"55",X"40",X"00",X"40",X"00",X"40",X"15",X"54",X"15",X"54",X"00",X"00",
X"00",X"00",X"54",X"10",X"54",X"14",X"44",X"04",X"44",X"04",X"45",X"54",X"41",X"50",X"00",X"00",
X"00",X"00",X"15",X"50",X"55",X"54",X"41",X"04",X"41",X"04",X"51",X"54",X"10",X"50",X"00",X"00",
X"00",X"00",X"50",X"00",X"50",X"00",X"40",X"54",X"41",X"54",X"55",X"00",X"54",X"00",X"00",X"00",
X"00",X"00",X"14",X"50",X"55",X"54",X"41",X"04",X"41",X"04",X"55",X"54",X"14",X"50",X"00",X"00",
X"00",X"00",X"14",X"10",X"55",X"14",X"41",X"04",X"41",X"04",X"55",X"54",X"15",X"50",X"00",X"00",
X"01",X"C0",X"05",X"50",X"15",X"54",X"DD",X"77",X"DD",X"77",X"15",X"54",X"05",X"50",X"03",X"40",
X"0F",X"F0",X"3F",X"F8",X"FC",X"3E",X"F0",X"3F",X"F0",X"3F",X"FC",X"3E",X"3F",X"F8",X"0F",X"F0",
X"0E",X"B0",X"2A",X"A8",X"EB",X"EB",X"AF",X"FA",X"AF",X"FA",X"EB",X"EB",X"2A",X"A8",X"0E",X"B0",
X"0F",X"B0",X"3F",X"BC",X"FF",X"BF",X"FE",X"AA",X"AA",X"BF",X"FE",X"FF",X"3E",X"FC",X"0E",X"F0",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"95",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",X"AA",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",X"FF",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FF",X"F0",X"00",X"F0",X"00",X"F0",X"00",X"F0",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"FF",X"FF",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",X"C0",X"0C",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"FF",X"FC",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"30",X"00",X"30",X"00",X"30",X"00",X"3F",X"FF",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",X"30",X"00",
X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",X"00",X"0C",
X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",X"C0",X"00",
X"0F",X"F0",X"3F",X"00",X"EB",X"C0",X"FA",X"FF",X"FA",X"FF",X"EB",X"C0",X"3F",X"00",X"0F",X"F0",
X"0F",X"C0",X"3A",X"CF",X"F2",X"CF",X"2F",X"F0",X"2F",X"F0",X"F2",X"CF",X"3A",X"CF",X"0F",X"C0",
X"FE",X"B0",X"FF",X"8A",X"3B",X"E8",X"FE",X"FF",X"FE",X"FF",X"3B",X"E8",X"FF",X"8A",X"FE",X"B0",
X"FE",X"3C",X"CB",X"0F",X"F2",X"FC",X"2F",X"F0",X"2F",X"F0",X"F2",X"FC",X"CB",X"0F",X"FE",X"3C",
X"CA",X"A0",X"20",X"08",X"80",X"42",X"85",X"C2",X"83",X"52",X"81",X"02",X"20",X"08",X"0A",X"A3",
X"C5",X"60",X"2F",X"F8",X"BC",X"FD",X"7F",X"CD",X"73",X"FD",X"7F",X"3E",X"2F",X"F8",X"09",X"53",
X"00",X"00",X"00",X"00",X"16",X"94",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"10",X"00",X"10",X"00",X"20",X"00",X"20",X"00",X"10",X"00",X"10",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"16",X"94",X"00",X"00",X"00",X"00",X"00",X"00",
X"C1",X"43",X"33",X"CC",X"0F",X"F0",X"7F",X"FD",X"7F",X"FD",X"0F",X"F0",X"33",X"CC",X"C1",X"43",
X"00",X"00",X"01",X"00",X"01",X"00",X"02",X"00",X"02",X"00",X"01",X"00",X"01",X"00",X"00",X"00",
X"00",X"7C",X"01",X"7C",X"25",X"7F",X"09",X"7F",X"27",X"5F",X"07",X"5F",X"01",X"FC",X"00",X"FC",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"16",X"94",X"00",X"00",
X"00",X"00",X"10",X"00",X"10",X"00",X"20",X"00",X"20",X"00",X"10",X"00",X"10",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"DC",X"37",X"AA",X"AA",X"6A",X"A9",X"6A",X"A9",X"DA",X"A7",X"1A",X"A4",X"D6",X"97",X"D8",X"27",
X"D8",X"27",X"D6",X"97",X"1A",X"A4",X"DA",X"A7",X"6A",X"A9",X"6A",X"A9",X"AA",X"AA",X"DC",X"37",
X"03",X"C5",X"43",X"E9",X"53",X"C5",X"10",X"04",X"00",X"08",X"11",X"64",X"55",X"65",X"55",X"55",
X"55",X"55",X"59",X"55",X"19",X"44",X"20",X"00",X"10",X"04",X"53",X"C5",X"6B",X"C1",X"53",X"C0",
X"FF",X"FC",X"CF",X"CC",X"FC",X"FC",X"F0",X"3C",X"FC",X"FC",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"CC",X"C0",X"CC",X"CC",X"CC",X"CC",X"0C",X"CC",X"0C",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"FC",X"FC",X"F3",X"0C",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"CF",X"CC",X"C0",X"0C",X"C0",X"0C",X"CF",X"CC",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"FC",X"C0",X"FC",X"F3",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"FC",X"C0",X"0C",X"F0",X"0C",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"FC",X"C3",X"0C",X"C3",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"FC",X"C0",X"0C",X"F0",X"0C",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CF",X"CC",X"C3",X"0C",X"C3",X"0C",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"FC",X"FC",X"F3",X"0C",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FC",X"FF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"CF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CF",X"FC",X"CF",X"FC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"CF",X"CC",X"C0",X"0C",X"C0",X"0C",X"CF",X"CC",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"CF",X"FC",X"C0",X"0C",X"C3",X"FC",X"F0",X"0C",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"CC",X"CC",X"CC",X"CF",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"C0",X"0C",X"C0",X"0C",X"CC",X"FC",X"C3",X"0C",X"C3",X"CC",X"FF",X"FC",X"3F",X"F0",
X"FF",X"FC",X"CF",X"CC",X"FC",X"FC",X"F0",X"3C",X"FC",X"FC",X"CF",X"CC",X"FF",X"FC",X"00",X"00",
X"16",X"94",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"01",X"00",X"01",X"00",X"02",X"00",X"02",X"00",X"01",X"00",X"01",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"AA",X"00",X"00",X"00",X"00",X"00",X"00",
X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",
X"02",X"00",X"02",X"00",X"02",X"00",X"02",X"00",X"AA",X"AA",X"02",X"00",X"02",X"00",X"02",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"01",X"00",X"00",X"40",X"00",X"11",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"94",X"B9",X"16",X"10",X"96",X"9F",X"24",X"D8",X"84",X"FF",X"67",X"89",X"86",X"09",X"37",X"0C",
X"95",X"BB",X"36",X"B1",X"9E",X"85",X"35",X"DD",X"D7",X"9E",X"86",X"99",X"DE",X"4F",X"D3",X"9B",
X"35",X"D4",X"A1",X"B3",X"B6",X"8D",X"D6",X"9C",X"73",X"A7",X"8E",X"8F",X"00",X"D5",X"FD",X"89",
X"77",X"3A",X"CE",X"99",X"FF",X"DF",X"3D",X"99",X"B7",X"BD",X"BB",X"99",X"5C",X"89",X"CA",X"8D",
X"00",X"CE",X"5F",X"98",X"AF",X"94",X"96",X"9D",X"0F",X"9C",X"7D",X"D8",X"9E",X"8D",X"14",X"9B",
X"16",X"75",X"17",X"B1",X"E6",X"FD",X"92",X"90",X"86",X"D5",X"77",X"DC",X"3E",X"85",X"83",X"89",
X"76",X"EC",X"C7",X"98",X"C6",X"3C",X"86",X"89",X"B5",X"FC",X"13",X"BC",X"92",X"C1",X"C4",X"B9",
X"A6",X"9F",X"17",X"08",X"DE",X"C9",X"02",X"AD",X"37",X"00",X"57",X"98",X"FE",X"F5",X"04",X"8A",
X"46",X"63",X"E6",X"BC",X"66",X"EB",X"F6",X"31",X"66",X"23",X"2B",X"22",X"2E",X"7D",X"E3",X"CD",
X"64",X"40",X"E2",X"3E",X"36",X"0D",X"60",X"73",X"E6",X"2B",X"64",X"42",X"EE",X"7F",X"46",X"D9",
X"44",X"EC",X"64",X"17",X"6F",X"7B",X"C4",X"E3",X"6C",X"2B",X"62",X"36",X"62",X"D4",X"E3",X"FF",
X"0E",X"54",X"6E",X"1C",X"6E",X"6F",X"ED",X"23",X"40",X"62",X"37",X"68",X"CE",X"2E",X"F6",X"28",
X"E6",X"D2",X"27",X"FA",X"12",X"5B",X"0E",X"B1",X"46",X"46",X"46",X"EC",X"AC",X"83",X"EA",X"D3",
X"E6",X"44",X"77",X"D0",X"6A",X"DB",X"2C",X"F3",X"64",X"D8",X"E3",X"08",X"EE",X"7E",X"7B",X"F3",
X"26",X"73",X"32",X"CE",X"26",X"1F",X"F4",X"EB",X"8C",X"0E",X"E6",X"8A",X"E2",X"79",X"C3",X"79",
X"EE",X"2A",X"47",X"A8",X"32",X"4C",X"06",X"EC",X"66",X"2E",X"66",X"48",X"0E",X"03",X"E6",X"F3",
X"44",X"CF",X"54",X"33",X"66",X"3D",X"48",X"FC",X"EE",X"63",X"46",X"F1",X"E4",X"8F",X"C2",X"F5",
X"E6",X"E4",X"4C",X"A0",X"A6",X"EB",X"2A",X"0F",X"36",X"6E",X"66",X"10",X"FF",X"63",X"42",X"BB",
X"A6",X"70",X"00",X"09",X"4A",X"5F",X"78",X"79",X"CE",X"83",X"75",X"F4",X"63",X"41",X"4E",X"0F",
X"34",X"DE",X"26",X"1B",X"36",X"C8",X"C4",X"33",X"64",X"20",X"6E",X"F2",X"3E",X"CB",X"4C",X"30",
X"44",X"0C",X"72",X"A8",X"66",X"49",X"72",X"37",X"2E",X"F4",X"47",X"3C",X"EE",X"F1",X"30",X"0F",
X"6E",X"03",X"76",X"3A",X"34",X"6F",X"0F",X"ED",X"68",X"F2",X"66",X"A0",X"46",X"B5",X"76",X"B2",
X"46",X"06",X"67",X"39",X"23",X"04",X"5A",X"FF",X"C6",X"2D",X"64",X"08",X"E7",X"03",X"EE",X"1B",
X"66",X"82",X"03",X"CC",X"67",X"51",X"F4",X"0C",X"66",X"C6",X"E2",X"28",X"EE",X"C3",X"60",X"49");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

File diff suppressed because it is too large Load Diff

View File

@@ -1,534 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_sp_bits_1 is
port (
clk : in std_logic;
addr : in std_logic_vector(12 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_sp_bits_1 is
type rom is array(0 to 8191) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"6F",X"66",X"00",X"00",X"6F",X"66",X"00",X"00",X"6B",X"66",
X"00",X"00",X"FF",X"A6",X"00",X"09",X"FF",X"A6",X"00",X"00",X"00",X"A6",X"00",X"00",X"B0",X"A6",
X"00",X"0F",X"B0",X"66",X"00",X"0F",X"BB",X"66",X"00",X"60",X"FF",X"06",X"00",X"6A",X"6F",X"00",
X"00",X"00",X"FF",X"00",X"00",X"FF",X"90",X"00",X"00",X"00",X"B9",X"66",X"00",X"06",X"B9",X"66",
X"00",X"66",X"B0",X"66",X"00",X"6F",X"90",X"66",X"00",X"99",X"9B",X"66",X"00",X"99",X"9B",X"66",
X"00",X"00",X"BB",X"66",X"00",X"00",X"0F",X"66",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"B9",
X"00",X"00",X"99",X"B0",X"00",X"00",X"9B",X"00",X"00",X"0B",X"9B",X"BB",X"00",X"0B",X"90",X"BB",
X"00",X"0B",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",X"B0",X"FF",X"B0",X"00",X"BF",X"FF",X"00",
X"00",X"BF",X"FF",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"0B",X"00",X"00",X"00",X"B9",X"99",
X"00",X"00",X"BB",X"B9",X"00",X"00",X"9F",X"B0",X"00",X"FF",X"FF",X"F0",X"00",X"BB",X"F9",X"F0",
X"00",X"B9",X"F0",X"BB",X"00",X"B5",X"00",X"BB",X"00",X"50",X"99",X"BB",X"00",X"0F",X"90",X"BB",
X"00",X"0F",X"90",X"BB",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"99",X"00",X"99",X"00",X"A9",
X"00",X"99",X"99",X"A0",X"00",X"99",X"9B",X"60",X"00",X"9A",X"9B",X"BB",X"00",X"9A",X"90",X"BB",
X"00",X"AA",X"AA",X"BB",X"00",X"AA",X"AA",X"BB",X"00",X"A0",X"AA",X"B0",X"00",X"AF",X"5A",X"00",
X"00",X"BA",X"5A",X"00",X"00",X"BA",X"55",X"90",X"00",X"BB",X"55",X"00",X"00",X"9A",X"55",X"99",
X"00",X"AA",X"AA",X"B9",X"00",X"AA",X"AA",X"B0",X"00",X"AA",X"AA",X"F0",X"00",X"AA",X"AA",X"F0",
X"00",X"B9",X"F0",X"BB",X"00",X"99",X"00",X"6B",X"00",X"AA",X"99",X"AA",X"00",X"AA",X"90",X"BB",
X"00",X"0A",X"99",X"BB",X"00",X"AA",X"99",X"00",X"00",X"AA",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"99",X"94",X"00",X"44",X"11",X"44",X"00",X"00",X"11",X"49",X"00",X"09",X"1F",X"49",
X"00",X"99",X"BB",X"99",X"00",X"99",X"BB",X"09",X"00",X"99",X"BB",X"00",X"00",X"90",X"BB",X"B0",
X"00",X"00",X"B0",X"BB",X"00",X"00",X"BB",X"B0",X"04",X"50",X"FF",X"B1",X"09",X"50",X"F0",X"BB",
X"99",X"55",X"00",X"BB",X"99",X"00",X"00",X"BB",X"99",X"09",X"44",X"BB",X"99",X"00",X"04",X"9B",
X"99",X"BB",X"04",X"9B",X"99",X"BB",X"04",X"BB",X"99",X"BB",X"BF",X"BB",X"99",X"BB",X"B0",X"BB",
X"09",X"BB",X"BB",X"BB",X"00",X"1B",X"B0",X"B0",X"04",X"11",X"00",X"B9",X"04",X"91",X"00",X"B9",
X"00",X"91",X"90",X"11",X"00",X"90",X"00",X"19",X"00",X"91",X"99",X"19",X"00",X"99",X"99",X"99",
X"00",X"99",X"09",X"99",X"00",X"44",X"99",X"94",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"0B",X"0B",X"00",X"00",X"BB",X"FB",X"00",X"00",X"0B",X"9F",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",
X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"CC",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",
X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"99",
X"00",X"FF",X"FF",X"99",X"00",X"99",X"99",X"99",X"0F",X"99",X"99",X"99",X"0F",X"99",X"F9",X"99",
X"0F",X"9F",X"99",X"99",X"F9",X"99",X"99",X"99",X"F9",X"99",X"99",X"99",X"F9",X"99",X"99",X"99",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",
X"00",X"0F",X"9F",X"00",X"00",X"F9",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",
X"00",X"99",X"99",X"00",X"00",X"CC",X"BC",X"00",X"00",X"CC",X"0C",X"00",X"FF",X"C0",X"00",X"FF",
X"F9",X"00",X"90",X"99",X"F9",X"00",X"90",X"99",X"F9",X"99",X"99",X"99",X"F9",X"99",X"99",X"99",
X"F9",X"99",X"B9",X"99",X"F9",X"9B",X"0B",X"99",X"F9",X"B0",X"00",X"99",X"BB",X"00",X"00",X"BB",
X"BB",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"FF",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",
X"00",X"00",X"F9",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"F9",X"00",
X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"9F",X"00",X"00",X"99",X"FF",
X"00",X"00",X"99",X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"59",X"00",
X"00",X"00",X"59",X"00",X"00",X"00",X"59",X"00",X"00",X"00",X"69",X"00",X"00",X"99",X"99",X"00",
X"00",X"56",X"59",X"60",X"00",X"56",X"56",X"68",X"00",X"59",X"59",X"68",X"F9",X"99",X"69",X"68",
X"09",X"99",X"69",X"99",X"00",X"56",X"59",X"99",X"00",X"56",X"59",X"99",X"00",X"59",X"59",X"99",
X"00",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"F9",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"80",X"00",X"00",X"00",X"00",X"00",X"BB",X"00",
X"00",X"0B",X"BB",X"00",X"00",X"00",X"99",X"00",X"00",X"B0",X"BB",X"09",X"00",X"B0",X"CB",X"00",
X"00",X"F0",X"FC",X"99",X"00",X"F0",X"CB",X"99",X"00",X"99",X"CB",X"00",X"00",X"00",X"0B",X"90",
X"00",X"00",X"99",X"00",X"00",X"00",X"9F",X"90",X"00",X"00",X"9F",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"B0",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"9F",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"B9",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"BF",
X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"0B",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"44",
X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",
X"00",X"00",X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",
X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"90",X"90",
X"00",X"00",X"96",X"9F",X"00",X"00",X"90",X"90",X"00",X"00",X"90",X"90",X"00",X"00",X"90",X"90",
X"00",X"00",X"96",X"99",X"00",X"00",X"90",X"96",X"00",X"00",X"90",X"66",X"00",X"00",X"96",X"69",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"0F",X"00",X"00",X"BB",X"9F",
X"00",X"00",X"BB",X"0F",X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"0B",X"0B",X"00",X"00",X"BB",X"0B",X"00",X"00",X"BB",X"0B",X"00",X"00",X"0B",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"0B",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BF",
X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"99",X"66",X"00",X"00",X"90",X"66",X"00",X"00",X"90",X"99",X"00",X"00",X"90",X"99",
X"00",X"00",X"96",X"09",X"00",X"00",X"96",X"09",X"00",X"00",X"90",X"69",X"00",X"00",X"90",X"6F",
X"00",X"00",X"90",X"00",X"00",X"00",X"96",X"00",X"00",X"00",X"96",X"00",X"00",X"00",X"90",X"00",
X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"9F",X"00",
X"00",X"00",X"90",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"0B",X"0B",X"00",X"00",X"BB",X"0B",X"00",X"00",X"0B",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"00",X"00",X"0B",X"99",X"00",X"00",X"B9",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"9F",X"00",X"00",X"99",X"F0",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"BF",
X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"0B",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"0B",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BF",
X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"44",X"44",X"44",X"00",X"44",X"40",X"44",X"00",X"00",
X"44",X"40",X"00",X"00",X"04",X"00",X"00",X"44",X"04",X"00",X"00",X"44",X"04",X"00",X"00",X"04",
X"04",X"44",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"40",X"00",X"04",
X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",
X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",
X"00",X"FF",X"FF",X"BB",X"00",X"BB",X"BB",X"BB",X"0F",X"BB",X"BB",X"BB",X"0F",X"BB",X"FB",X"BB",
X"0F",X"BF",X"BB",X"BB",X"FB",X"BF",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"FB",X"BB",X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",
X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"FF",X"BB",X"BB",X"FF",
X"FB",X"BB",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",
X"FB",X"BB",X"FB",X"BB",X"0F",X"BF",X"0F",X"BF",X"00",X"F0",X"00",X"F0",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",
X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",
X"00",X"FF",X"FF",X"BB",X"00",X"BB",X"BB",X"BB",X"0F",X"BB",X"BB",X"BB",X"0F",X"BB",X"FB",X"BB",
X"0F",X"BF",X"BB",X"BB",X"FB",X"BF",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",X"FB",X"BB",X"BB",X"BB",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"06",X"00",X"00",X"01",X"06",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"66",X"00",
X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"1B",X"00",X"00",X"0F",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"11",X"F0",X"00",X"00",X"11",X"BF",X"00",X"00",X"11",X"BB",X"00",X"00",X"11",X"BB",X"00",
X"00",X"F1",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",
X"00",X"0F",X"F0",X"00",X"00",X"0F",X"F0",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"F0",X"00",X"00",X"0F",X"F0",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BB",X"00",X"00",X"F1",X"BB",X"00",
X"00",X"11",X"BB",X"00",X"00",X"11",X"BB",X"00",X"00",X"11",X"BF",X"00",X"00",X"11",X"F0",X"00",
X"00",X"11",X"00",X"00",X"00",X"1B",X"00",X"00",X"0F",X"1B",X"00",X"00",X"0F",X"1B",X"00",X"00",
X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"11",X"00",X"00",X"0F",X"11",X"00",X"00",X"FB",X"11",
X"00",X"00",X"BB",X"1B",X"00",X"00",X"BB",X"1B",X"00",X"00",X"BB",X"1F",X"00",X"00",X"BB",X"F0",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"1F",X"00",X"00",X"BB",X"1B",X"00",X"00",X"BB",X"1B",
X"00",X"00",X"FB",X"11",X"00",X"00",X"0F",X"11",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"11",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"00",X"BB",X"00",
X"0F",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",
X"0F",X"00",X"BB",X"00",X"0F",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",
X"00",X"00",X"60",X"66",X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"60",X"06",X"00",X"00",X"60",X"0F",X"B0",X"00",X"66",X"60",X"00",X"00",X"6F",X"66",X"60",
X"00",X"66",X"60",X"00",X"00",X"60",X"0F",X"B0",X"00",X"60",X"06",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"66",X"00",X"00",X"60",X"66",X"00",X"00",X"00",X"66",
X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"00",X"BB",X"00",
X"0F",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",X"0F",X"00",X"BB",X"00",
X"0F",X"00",X"BB",X"00",X"0F",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",
X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"40",X"00",X"44",X"00",X"40",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"44",X"00",X"40",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"04",X"00",X"04",X"00",X"04",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"04",X"04",X"00",X"00",
X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",
X"00",X"04",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"44",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"44",
X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BF",X"B0",X"00",X"0F",X"F0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"F0",X"00",X"00",X"BB",X"BF",X"B0",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"50",X"00",X"00",X"00",X"00",X"00",
X"00",X"50",X"11",X"0B",X"00",X"00",X"11",X"BB",X"00",X"50",X"11",X"BF",X"00",X"00",X"11",X"F0",
X"00",X"00",X"1C",X"55",X"00",X"00",X"10",X"00",X"00",X"00",X"1C",X"5C",X"00",X"00",X"11",X"10",
X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"00",X"00",X"11",
X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"05",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"F5",X"00",X"00",X"00",X"BF",X"00",X"05",X"50",X"BB",X"00",X"00",X"00",X"0B",
X"00",X"05",X"00",X"50",X"00",X"00",X"00",X"0B",X"00",X"05",X"05",X"0B",X"00",X"00",X"00",X"00",
X"00",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"44",
X"00",X"40",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"04",X"00",X"04",X"00",X"04",X"00",X"44",X"00",X"40",X"00",X"00",X"00",X"40",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"04",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"44",
X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"04",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"FB",X"B0",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"BB",X"FB",X"B0",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"40",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",
X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"CC",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"66",X"66",X"60",X"00",X"66",X"6F",X"60",X"00",X"66",X"6F",X"60",
X"00",X"66",X"6F",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"66",X"66",X"00",X"06",X"6B",X"00",
X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",
X"00",X"00",X"70",X"00",X"00",X"00",X"70",X"00",X"00",X"00",X"CC",X"0C",X"00",X"00",X"CC",X"0C",
X"00",X"00",X"CC",X"0C",X"00",X"00",X"55",X"0C",X"00",X"CC",X"55",X"07",X"00",X"CC",X"55",X"C7",
X"00",X"CC",X"55",X"C7",X"00",X"C0",X"55",X"CC",X"00",X"05",X"B5",X"CC",X"00",X"55",X"5B",X"5C",
X"00",X"55",X"BB",X"50",X"00",X"55",X"5B",X"50",X"00",X"C5",X"B5",X"0C",X"00",X"CC",X"55",X"CC",
X"00",X"CC",X"55",X"CC",X"00",X"CC",X"55",X"C7",X"00",X"00",X"55",X"C7",X"00",X"00",X"55",X"07",
X"00",X"00",X"CC",X"0C",X"00",X"00",X"CC",X"0C",X"00",X"00",X"CC",X"0C",X"00",X"00",X"70",X"00",
X"00",X"00",X"70",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"0F",X"00",
X"00",X"00",X"C0",X"00",X"00",X"00",X"0F",X"00",X"80",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"F0",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"0C",
X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"C0",X"00",X"00",X"DF",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"02",X"00",X"00",X"00",X"22",X"55",X"20",X"00",X"22",X"55",X"22",
X"00",X"22",X"00",X"22",X"00",X"CC",X"55",X"C2",X"00",X"22",X"55",X"20",X"00",X"22",X"55",X"20",
X"00",X"22",X"55",X"20",X"00",X"25",X"55",X"20",X"00",X"55",X"55",X"55",X"00",X"55",X"AF",X"55",
X"00",X"55",X"AA",X"55",X"02",X"55",X"AF",X"52",X"02",X"55",X"5F",X"52",X"02",X"55",X"5A",X"52",
X"02",X"05",X"55",X"02",X"02",X"55",X"5A",X"02",X"02",X"55",X"5F",X"02",X"02",X"55",X"AF",X"02",
X"00",X"55",X"AA",X"05",X"00",X"55",X"AF",X"05",X"00",X"55",X"55",X"55",X"00",X"20",X"55",X"20",
X"00",X"22",X"55",X"20",X"00",X"22",X"00",X"20",X"00",X"22",X"55",X"20",X"00",X"CC",X"55",X"C2",
X"00",X"22",X"55",X"22",X"00",X"22",X"55",X"22",X"00",X"22",X"55",X"20",X"00",X"02",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"60",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"60",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"16",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"16",X"00",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"11",X"00",X"00",X"16",X"66",X"00",
X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",X"00",X"10",X"06",X"00",
X"00",X"16",X"66",X"00",X"00",X"01",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"66",X"66",
X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"66",X"00",X"00",X"60",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"BB",X"00",X"00",X"60",X"00",X"00",X"00",X"66",X"66",
X"00",X"00",X"60",X"00",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"66",
X"00",X"00",X"66",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"06",X"66",X"00",
X"00",X"66",X"66",X"00",X"00",X"66",X"66",X"60",X"00",X"66",X"6F",X"60",X"00",X"66",X"6F",X"66",
X"00",X"66",X"6F",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"66",X"66",X"00",X"06",X"6B",X"00",
X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",X"00",X"66",X"60",X"66",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"D4",X"00",X"00",X"00",X"FD",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"D0",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"80",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0D",X"00",X"00",X"0F",X"F0",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"CB",X"00",X"90",
X"00",X"CC",X"00",X"99",X"00",X"0C",X"B0",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"0C",X"B0",X"99",X"00",X"CC",X"00",X"99",
X"00",X"CB",X"00",X"90",X"00",X"CB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"05",X"05",X"00",X"00",X"00",X"00",
X"00",X"50",X"05",X"05",X"00",X"00",X"00",X"00",X"05",X"50",X"05",X"05",X"00",X"B0",X"00",X"00",
X"55",X"5B",X"C0",X"05",X"00",X"01",X"00",X"00",X"05",X"11",X"CC",X"00",X"00",X"11",X"00",X"00",
X"05",X"51",X"CC",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"CC",X"00",X"00",X"10",X"00",X"00",
X"50",X"15",X"00",X"00",X"00",X"10",X"00",X"00",X"50",X"11",X"00",X"00",X"00",X"01",X"00",X"00",
X"00",X"B5",X"01",X"50",X"00",X"00",X"00",X"00",X"00",X"05",X"50",X"50",X"00",X"00",X"00",X"00",
X"00",X"05",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"50",X"00",X"00",X"00",X"00",
X"00",X"00",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,534 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_sp_bits_2 is
port (
clk : in std_logic;
addr : in std_logic_vector(12 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_sp_bits_2 is
type rom is array(0 to 8191) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"B0",X"00",X"00",X"00",X"F0",X"00",X"00",X"90",X"00",X"00",X"00",X"FF",X"0B",X"00",
X"00",X"FF",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",X"00",X"9B",X"00",X"00",X"0B",X"B6",X"00",
X"00",X"6B",X"00",X"00",X"00",X"FF",X"B0",X"00",X"00",X"9B",X"0B",X"00",X"00",X"99",X"00",X"00",
X"00",X"FF",X"90",X"00",X"00",X"FF",X"90",X"00",X"00",X"FF",X"BB",X"00",X"00",X"99",X"F0",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",X"00",X"99",X"00",
X"00",X"00",X"9B",X"00",X"99",X"0F",X"BB",X"00",X"BB",X"BB",X"BB",X"B0",X"B0",X"9B",X"BB",X"B9",
X"B0",X"BB",X"0B",X"B0",X"B0",X"F9",X"00",X"00",X"00",X"F9",X"F9",X"00",X"00",X"FF",X"F9",X"00",
X"00",X"FF",X"FF",X"00",X"00",X"0F",X"99",X"00",X"00",X"BB",X"9F",X"00",X"00",X"09",X"00",X"00",
X"00",X"00",X"BB",X"00",X"00",X"0B",X"BB",X"0B",X"00",X"F9",X"BB",X"0B",X"00",X"99",X"9F",X"BB",
X"00",X"90",X"90",X"9B",X"00",X"99",X"99",X"90",X"B0",X"FF",X"B9",X"00",X"BB",X"FF",X"BB",X"00",
X"9B",X"F9",X"BB",X"00",X"9B",X"09",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"99",X"00",X"90",X"00",X"99",X"96",X"00",
X"00",X"99",X"9A",X"00",X"99",X"AA",X"BB",X"00",X"BB",X"AA",X"BB",X"B0",X"B0",X"AA",X"B9",X"B9",
X"B0",X"AA",X"0B",X"B0",X"B0",X"A9",X"AA",X"00",X"00",X"F9",X"AA",X"00",X"00",X"FF",X"69",X"00",
X"00",X"AA",X"6A",X"00",X"00",X"0F",X"5A",X"00",X"00",X"BB",X"5A",X"00",X"00",X"A9",X"59",X"00",
X"00",X"AA",X"AA",X"00",X"00",X"AB",X"AA",X"0B",X"00",X"A9",X"99",X"0B",X"00",X"A9",X"99",X"BB",
X"00",X"90",X"99",X"9B",X"00",X"99",X"9A",X"90",X"B0",X"9A",X"9A",X"00",X"BB",X"9A",X"BA",X"00",
X"9B",X"F9",X"BA",X"00",X"9B",X"09",X"0B",X"00",X"00",X"09",X"0B",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"40",X"99",X"44",X"00",X"00",X"B0",X"44",X"00",X"00",X"BB",X"44",X"00",X"00",X"BB",X"99",
X"00",X"99",X"BB",X"99",X"09",X"99",X"BB",X"99",X"04",X"99",X"99",X"09",X"04",X"0B",X"BB",X"09",
X"44",X"BB",X"0B",X"00",X"49",X"00",X"BB",X"01",X"49",X"0B",X"F0",X"00",X"99",X"0B",X"00",X"B0",
X"99",X"5B",X"00",X"B0",X"91",X"BB",X"00",X"B0",X"91",X"BB",X"40",X"B0",X"91",X"BB",X"40",X"B9",
X"49",X"BB",X"40",X"BB",X"99",X"B0",X"00",X"BB",X"49",X"BB",X"B0",X"B0",X"99",X"B0",X"00",X"00",
X"99",X"BB",X"B0",X"B0",X"99",X"BB",X"BB",X"BB",X"99",X"BB",X"BB",X"1B",X"44",X"1B",X"0B",X"19",
X"04",X"10",X"00",X"14",X"04",X"11",X"00",X"94",X"04",X"11",X"90",X"94",X"00",X"9F",X"90",X"94",
X"00",X"99",X"99",X"44",X"00",X"99",X"90",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"6F",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"06",X"60",X"00",
X"00",X"06",X"66",X"00",X"00",X"06",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"6F",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",
X"00",X"00",X"B0",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",
X"00",X"00",X"B0",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"CB",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F9",X"00",X"00",X"F0",
X"F9",X"FF",X"FF",X"F0",X"F9",X"99",X"99",X"F0",X"99",X"99",X"99",X"9F",X"99",X"99",X"99",X"9F",
X"99",X"F9",X"FF",X"9F",X"99",X"99",X"99",X"99",X"99",X"99",X"99",X"99",X"99",X"99",X"99",X"99",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F9",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"9F",X"00",X"00",X"99",X"99",X"00",
X"00",X"9B",X"99",X"00",X"00",X"BB",X"C9",X"00",X"0F",X"00",X"C9",X"00",X"F9",X"00",X"C0",X"F0",
X"99",X"99",X"00",X"F0",X"99",X"99",X"00",X"F0",X"99",X"99",X"99",X"F0",X"99",X"9B",X"99",X"F0",
X"99",X"B0",X"99",X"F0",X"99",X"00",X"99",X"F0",X"99",X"00",X"B9",X"F0",X"BB",X"00",X"0B",X"B0",
X"BB",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"FF",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"09",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",
X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"09",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"FF",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"99",X"00",X"00",X"09",X"95",X"00",
X"00",X"99",X"95",X"00",X"00",X"99",X"95",X"00",X"00",X"99",X"96",X"00",X"00",X"99",X"96",X"00",
X"00",X"55",X"95",X"00",X"00",X"55",X"65",X"80",X"00",X"55",X"95",X"88",X"99",X"99",X"99",X"88",
X"99",X"99",X"96",X"99",X"F9",X"55",X"95",X"99",X"06",X"55",X"95",X"99",X"00",X"55",X"95",X"99",
X"00",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"09",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"99",X"00",
X"00",X"F9",X"90",X"00",X"00",X"99",X"00",X"00",X"80",X"00",X"00",X"00",X"00",X"BB",X"0F",X"90",
X"00",X"BB",X"9F",X"00",X"00",X"B9",X"FF",X"00",X"00",X"B9",X"BB",X"00",X"00",X"B9",X"F9",X"00",
X"00",X"99",X"C9",X"99",X"00",X"B9",X"99",X"99",X"00",X"B9",X"99",X"99",X"00",X"B0",X"99",X"09",
X"00",X"00",X"9B",X"09",X"00",X"00",X"FB",X"00",X"00",X"99",X"BB",X"00",X"00",X"00",X"B0",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"9F",
X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"B9",X"B9",X"00",X"00",X"0B",X"BB",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"04",X"44",
X"00",X"44",X"44",X"44",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",
X"00",X"00",X"40",X"00",X"00",X"00",X"44",X"44",X"00",X"44",X"44",X"44",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"44",X"44",X"44",X"00",X"44",X"44",X"44",X"00",X"00",X"40",X"04",
X"00",X"00",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"00",X"44",X"44",
X"00",X"44",X"44",X"44",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"40",
X"00",X"04",X"44",X"44",X"00",X"44",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"44",X"40",X"04",
X"00",X"44",X"40",X"04",X"00",X"00",X"44",X"44",X"00",X"00",X"04",X"40",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"04",X"40",X"00",X"44",X"44",X"44",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",
X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"44",X"44",X"44",X"00",X"44",X"44",X"44",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"44",X"00",X"00",X"44",X"44",
X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",
X"00",X"44",X"44",X"44",X"00",X"44",X"44",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",
X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"40",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"F9",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",
X"00",X"00",X"69",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"69",X"9F",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"69",X"99",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"FF",X"BB",X"0F",
X"00",X"0F",X"BF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",
X"00",X"00",X"B0",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",
X"00",X"00",X"B0",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"FF",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"99",X"66",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"69",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"69",X"00",X"00",X"00",X"69",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"69",X"00",
X"00",X"00",X"69",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",
X"00",X"00",X"B0",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"BB",X"FB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"BB",X"00",
X"00",X"00",X"B0",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0B",X"BB",X"00",X"00",X"B9",X"B9",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",
X"00",X"00",X"99",X"9F",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"FF",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",
X"00",X"00",X"BF",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"00",X"04",X"40",X"44",X"44",X"44",X"00",X"44",X"44",X"44",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"44",X"40",X"00",X"00",X"00",
X"40",X"44",X"44",X"00",X"04",X"44",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FB",X"00",X"00",X"F0",
X"FB",X"FF",X"FF",X"F0",X"FB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"BF",X"BB",X"BB",X"BB",X"BF",
X"BB",X"FB",X"FF",X"BF",X"BB",X"FB",X"FF",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"11",X"1F",X"00",X"00",X"11",X"11",X"00",
X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"0F",X"1B",X"11",X"00",X"F1",X"BB",X"B1",X"F0",
X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",X"BB",X"BF",X"BB",X"F0",
X"BB",X"F0",X"BB",X"F0",X"BB",X"00",X"BB",X"00",X"FB",X"00",X"FB",X"00",X"0F",X"00",X"0F",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FB",X"00",X"00",X"F0",
X"FB",X"FF",X"FF",X"F0",X"FB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"BF",X"BB",X"BB",X"BB",X"BF",
X"BB",X"FB",X"FF",X"BF",X"BB",X"FB",X"FF",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"10",X"10",X"00",X"00",X"60",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"60",X"00",
X"00",X"11",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"1B",X"F0",X"00",
X"00",X"1B",X"F0",X"00",X"00",X"1B",X"F0",X"00",X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",
X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",
X"00",X"1B",X"00",X"00",X"00",X"1B",X"00",X"00",X"00",X"1B",X"F0",X"00",X"00",X"1B",X"F0",X"00",
X"00",X"1B",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"0F",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"00",X"00",X"0F",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"BF",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",X"0F",X"BB",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",
X"00",X"FF",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",
X"00",X"BB",X"F0",X"00",X"0F",X"BB",X"F0",X"00",X"FF",X"BB",X"F0",X"00",X"BB",X"BB",X"F0",X"00",
X"BB",X"BB",X"F0",X"00",X"BB",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",
X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FF",X"F0",X"00",
X"00",X"BF",X"F0",X"00",X"00",X"FF",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",
X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"BB",X"FB",X"F0",X"00",X"BB",X"BB",X"F0",X"00",
X"BB",X"BB",X"F0",X"00",X"FF",X"BB",X"F0",X"00",X"0F",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",
X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"FF",X"F0",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",
X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"00",X"00",X"00",X"6B",X"00",
X"00",X"00",X"6B",X"00",X"00",X"00",X"6B",X"00",X"00",X"66",X"FF",X"00",X"00",X"66",X"66",X"00",
X"00",X"66",X"FF",X"00",X"00",X"00",X"6B",X"00",X"00",X"00",X"6B",X"00",X"00",X"00",X"6B",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",
X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",
X"00",X"FF",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",
X"00",X"BB",X"F0",X"00",X"0F",X"BB",X"F0",X"00",X"FF",X"BB",X"F0",X"00",X"BB",X"BB",X"F0",X"00",
X"BB",X"BB",X"F0",X"00",X"BB",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",
X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FF",X"F0",X"00",
X"00",X"BF",X"F0",X"00",X"00",X"FF",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",
X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"BB",X"FB",X"F0",X"00",X"BB",X"BB",X"F0",X"00",
X"BB",X"BB",X"F0",X"00",X"FF",X"BB",X"F0",X"00",X"0F",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",
X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"FF",X"F0",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"04",X"40",X"04",X"00",X"44",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"44",X"40",X"04",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",X"44",X"44",
X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"44",X"40",X"00",X"00",X"44",X"40",X"00",
X"00",X"40",X"44",X"44",X"00",X"40",X"44",X"44",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"40",X"00",X"00",X"04",X"40",X"00",X"00",X"44",X"40",X"00",X"44",X"04",X"00",X"00",X"44",
X"00",X"40",X"00",X"04",X"00",X"04",X"00",X"04",X"44",X"04",X"00",X"04",X"00",X"40",X"00",X"04",
X"44",X"04",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"04",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"04",
X"00",X"04",X"44",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"04",X"44",X"44",
X"00",X"44",X"44",X"44",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"44",X"44",X"00",X"00",X"44",X"44",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"40",X"04",X"00",X"44",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"00",X"40",X"04",
X"00",X"00",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"00",X"44",X"44",
X"00",X"44",X"44",X"40",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"04",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"FB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"BB",X"FB",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"00",X"00",X"00",X"00",X"BB",
X"00",X"00",X"50",X"BB",X"00",X"00",X"10",X"FB",X"00",X"00",X"11",X"50",X"00",X"00",X"11",X"00",
X"00",X"0C",X"11",X"50",X"00",X"00",X"11",X"00",X"00",X"0C",X"10",X"50",X"00",X"00",X"10",X"00",
X"00",X"0C",X"15",X"00",X"00",X"00",X"10",X"10",X"00",X"CC",X"11",X"11",X"00",X"00",X"10",X"10",
X"00",X"C0",X"11",X"50",X"00",X"00",X"10",X"00",X"00",X"C0",X"11",X"05",X"00",X"00",X"11",X"00",
X"00",X"C1",X"11",X"05",X"00",X"00",X"11",X"00",X"00",X"00",X"11",X"F5",X"00",X"00",X"10",X"BF",
X"00",X"00",X"05",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"05",X"BB",X"00",X"00",X"00",X"00",
X"00",X"00",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"00",X"40",X"04",
X"00",X"40",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"44",X"44",X"44",X"00",X"40",X"44",X"44",
X"00",X"00",X"44",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"44",
X"00",X"04",X"44",X"44",X"00",X"44",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",
X"00",X"00",X"40",X"04",X"00",X"00",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"44",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"04",X"40",
X"00",X"04",X"44",X"44",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"04",X"40",X"04",
X"00",X"44",X"40",X"04",X"00",X"00",X"44",X"44",X"00",X"00",X"04",X"40",X"00",X"44",X"00",X"04",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"9B",X"B9",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"BB",X"B0",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"9B",X"B9",X"00",X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"CB",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"F0",X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"BB",X"00",
X"00",X"B6",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"60",X"66",X"00",X"00",X"00",X"0B",X"00",
X"00",X"66",X"B0",X"00",X"00",X"66",X"B0",X"00",X"00",X"6F",X"B0",X"00",X"00",X"66",X"B0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"6F",X"00",X"00",X"00",X"60",X"00",X"00",X"06",X"60",X"00",X"00",X"06",X"66",X"00",
X"00",X"06",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"6F",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"6F",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"06",X"60",X"00",
X"00",X"06",X"66",X"00",X"00",X"06",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"6F",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"C0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"C0",X"C0",
X"00",X"05",X"CC",X"CC",X"00",X"00",X"55",X"CC",X"0C",X"CC",X"55",X"CC",X"00",X"C0",X"55",X"CC",
X"00",X"05",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",
X"00",X"55",X"B5",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",
X"00",X"C5",X"55",X"00",X"0C",X"CC",X"55",X"00",X"00",X"00",X"55",X"CC",X"00",X"55",X"55",X"CC",
X"00",X"05",X"CC",X"CC",X"00",X"00",X"C0",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"C0",X"00",X"00",X"00",X"CC",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"0D",X"00",X"80",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0C",
X"00",X"00",X"00",X"0D",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0D",X"00",X"00",X"00",X"F0",X"00",X"C0",X"00",X"00",
X"00",X"0F",X"00",X"D0",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"0F",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"00",X"00",X"00",X"55",X"00",
X"00",X"00",X"00",X"20",X"00",X"22",X"55",X"22",X"00",X"22",X"55",X"00",X"00",X"25",X"55",X"55",
X"00",X"50",X"55",X"55",X"00",X"55",X"55",X"55",X"05",X"55",X"55",X"55",X"05",X"55",X"55",X"55",
X"55",X"55",X"F5",X"55",X"00",X"55",X"AF",X"00",X"20",X"55",X"FA",X"20",X"22",X"55",X"FF",X"22",
X"22",X"55",X"FA",X"22",X"22",X"55",X"FF",X"22",X"20",X"55",X"FA",X"20",X"00",X"55",X"AF",X"00",
X"55",X"55",X"F5",X"55",X"05",X"55",X"55",X"55",X"05",X"55",X"55",X"55",X"00",X"55",X"55",X"55",
X"00",X"50",X"55",X"55",X"00",X"20",X"00",X"05",X"00",X"22",X"55",X"00",X"00",X"22",X"55",X"22",
X"00",X"00",X"55",X"20",X"00",X"05",X"55",X"00",X"00",X"05",X"55",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"60",X"10",X"00",X"00",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"10",X"00",
X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"10",X"00",
X"00",X"66",X"10",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"60",X"00",X"00",X"06",X"60",X"00",X"00",X"06",X"60",X"00",X"00",X"66",X"60",
X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"6B",X"00",
X"00",X"66",X"6B",X"00",X"00",X"66",X"6B",X"00",X"00",X"66",X"FF",X"00",X"00",X"66",X"66",X"00",
X"00",X"66",X"FF",X"00",X"00",X"66",X"6B",X"00",X"00",X"66",X"6B",X"00",X"00",X"00",X"6B",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",X"00",X"00",X"66",X"60",
X"00",X"00",X"66",X"60",X"00",X"00",X"06",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"66",X"00",X"00",X"66",X"B0",X"00",
X"00",X"B6",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"60",X"60",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"B0",X"00",X"00",X"66",X"B0",X"00",X"00",X"6F",X"B0",X"00",X"00",X"66",X"B0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"0D",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"4F",X"00",
X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"F0",X"F0",X"00",X"00",X"00",X"00",X"80",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"0F",
X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"CB",X"00",X"90",X"00",X"CC",X"99",X"99",X"00",X"0C",X"99",X"99",
X"00",X"0C",X"99",X"99",X"00",X"CC",X"99",X"99",X"00",X"CB",X"00",X"90",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"05",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"05",X"05",X"05",X"00",X"00",X"00",X"00",
X"0B",X"55",X"05",X"05",X"BB",X"00",X"00",X"00",X"BB",X"50",X"05",X"05",X"00",X"01",X"00",X"00",
X"05",X"11",X"CC",X"05",X"00",X"11",X"00",X"00",X"05",X"11",X"CC",X"05",X"00",X"01",X"C0",X"00",
X"00",X"51",X"CC",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"CC",X"00",X"00",X"00",X"00",X"00",
X"50",X"10",X"0C",X"00",X"00",X"00",X"00",X"00",X"50",X"11",X"0C",X"50",X"00",X"11",X"00",X"00",
X"50",X"11",X"11",X"50",X"00",X"01",X"00",X"00",X"50",X"05",X"50",X"50",X"00",X"00",X"00",X"00",
X"0B",X"55",X"50",X"50",X"0B",X"00",X"00",X"00",X"05",X"50",X"50",X"50",X"00",X"00",X"00",X"00",
X"00",X"50",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,534 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_sp_bits_3 is
port (
clk : in std_logic;
addr : in std_logic_vector(12 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_sp_bits_3 is
type rom is array(0 to 8191) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"66",X"00",
X"00",X"AA",X"AA",X"00",X"00",X"0A",X"AB",X"00",X"06",X"00",X"B9",X"00",X"06",X"0F",X"96",X"00",
X"06",X"90",X"B9",X"00",X"06",X"09",X"BA",X"00",X"00",X"FF",X"BB",X"00",X"00",X"0B",X"AA",X"00",
X"00",X"BB",X"0F",X"00",X"00",X"FB",X"B5",X"00",X"00",X"BB",X"06",X"00",X"00",X"BB",X"96",X"00",
X"00",X"FF",X"6B",X"00",X"00",X"F0",X"66",X"00",X"00",X"F9",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"06",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",
X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"B0",X"B0",X"B0",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"90",X"09",X"00",
X"00",X"00",X"99",X"00",X"00",X"0B",X"00",X"00",X"BB",X"9B",X"00",X"00",X"0B",X"90",X"0F",X"00",
X"BB",X"9B",X"FF",X"00",X"BB",X"9B",X"F9",X"00",X"00",X"90",X"FF",X"BB",X"FF",X"90",X"B9",X"9B",
X"00",X"00",X"99",X"00",X"00",X"0F",X"F9",X"00",X"BB",X"BB",X"FF",X"00",X"B0",X"BB",X"9F",X"00",
X"B0",X"BB",X"FF",X"00",X"90",X"9B",X"FF",X"90",X"00",X"0B",X"BB",X"00",X"00",X"0B",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"9B",X"0A",X"00",X"00",X"00",X"06",X"00",X"0B",X"00",X"66",X"00",
X"BB",X"99",X"AA",X"00",X"BB",X"A9",X"9A",X"00",X"B0",X"A9",X"9A",X"00",X"00",X"AB",X"99",X"00",
X"00",X"BB",X"99",X"00",X"09",X"90",X"0A",X"00",X"99",X"99",X"AA",X"00",X"09",X"AA",X"0A",X"00",
X"00",X"A5",X"AA",X"00",X"00",X"AA",X"00",X"00",X"BB",X"AA",X"99",X"00",X"0B",X"A5",X"09",X"00",
X"BB",X"A5",X"A9",X"00",X"BB",X"AA",X"96",X"00",X"00",X"9A",X"96",X"BB",X"FF",X"9A",X"B9",X"9B",
X"00",X"00",X"AA",X"00",X"00",X"0F",X"AA",X"00",X"BB",X"AA",X"AA",X"00",X"B0",X"AA",X"AA",X"00",
X"B0",X"AA",X"AA",X"00",X"90",X"9B",X"F6",X"90",X"00",X"99",X"BB",X"00",X"00",X"0B",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"99",X"99",X"40",X"04",X"99",X"99",X"40",X"04",X"99",X"99",X"40",X"04",X"99",X"99",X"40",
X"94",X"90",X"9B",X"44",X"94",X"90",X"99",X"99",X"90",X"00",X"0B",X"94",X"99",X"90",X"BB",X"94",
X"49",X"B0",X"FF",X"99",X"99",X"BB",X"F0",X"09",X"91",X"BB",X"00",X"99",X"99",X"BB",X"0F",X"99",
X"11",X"BB",X"0F",X"99",X"10",X"55",X"00",X"99",X"09",X"F0",X"00",X"00",X"10",X"F0",X"50",X"09",
X"00",X"F5",X"00",X"B0",X"00",X"00",X"50",X"00",X"00",X"99",X"00",X"00",X"0B",X"90",X"00",X"09",
X"9B",X"9B",X"FF",X"00",X"9B",X"BB",X"BB",X"B9",X"99",X"BB",X"BB",X"B4",X"BB",X"BB",X"BB",X"99",
X"BB",X"00",X"BB",X"94",X"99",X"11",X"B0",X"94",X"99",X"91",X"00",X"44",X"99",X"99",X"00",X"00",
X"00",X"F9",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"00",X"00",X"00",X"00",X"86",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"60",X"60",X"00",
X"00",X"B0",X"66",X"00",X"00",X"60",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"B0",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BF",X"BB",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"99",X"90",X"00",
X"00",X"99",X"90",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BC",X"B0",X"00",X"00",X"C0",X"C0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"00",X"09",X"00",X"0F",X"00",X"09",X"00",
X"0F",X"00",X"09",X"00",X"F9",X"00",X"09",X"00",X"F9",X"00",X"09",X"00",X"F9",X"00",X"00",X"00",
X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"09",X"00",X"99",X"00",X"09",X"00",
X"99",X"FF",X"F9",X"00",X"99",X"9F",X"99",X"00",X"99",X"99",X"99",X"00",X"99",X"FF",X"99",X"00",
X"99",X"99",X"99",X"00",X"99",X"99",X"99",X"F0",X"99",X"99",X"99",X"F0",X"99",X"99",X"99",X"F0",
X"FF",X"FF",X"FF",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"9B",X"00",X"00",X"00",X"9B",X"00",X"00",
X"00",X"9B",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"B0",X"F0",X"00",
X"0F",X"B0",X"9F",X"00",X"F9",X"B0",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"99",X"99",X"00",
X"99",X"99",X"99",X"00",X"99",X"9B",X"99",X"00",X"99",X"B0",X"99",X"00",X"99",X"00",X"99",X"00",
X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"BB",X"00",X"BB",X"00",
X"BB",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"FF",X"00",
X"00",X"0F",X"99",X"00",X"00",X"0F",X"99",X"F0",X"00",X"0F",X"99",X"9F",X"00",X"0F",X"99",X"99",
X"00",X"0F",X"99",X"99",X"00",X"0F",X"99",X"99",X"00",X"0F",X"99",X"99",X"00",X"0F",X"9F",X"00",
X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",
X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"FF",X"00",
X"00",X"0F",X"FF",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",
X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",X"00",X"0F",X"9F",X"00",
X"00",X"0F",X"9F",X"00",X"00",X"0F",X"99",X"99",X"00",X"0F",X"99",X"99",X"00",X"0F",X"99",X"99",
X"00",X"0F",X"99",X"99",X"00",X"0F",X"99",X"FF",X"00",X"0F",X"99",X"F0",X"00",X"0F",X"99",X"00",
X"00",X"0F",X"FF",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"F0",X"00",
X"00",X"99",X"59",X"00",X"00",X"99",X"59",X"00",X"00",X"99",X"99",X"00",X"09",X"99",X"69",X"00",
X"09",X"59",X"55",X"00",X"66",X"56",X"55",X"00",X"66",X"56",X"55",X"00",X"99",X"99",X"69",X"88",
X"99",X"99",X"69",X"98",X"99",X"59",X"55",X"98",X"66",X"59",X"55",X"99",X"F6",X"56",X"55",X"99",
X"0F",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"9B",X"00",
X"00",X"99",X"BB",X"00",X"00",X"99",X"BB",X"00",X"00",X"9B",X"99",X"00",X"00",X"BC",X"99",X"00",
X"00",X"BC",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BF",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"99",X"00",X"90",X"00",X"99",X"B0",X"00",X"00",X"9B",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0B",X"FF",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",
X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",
X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"F0",X"00",X"00",X"90",X"9F",X"00",X"00",X"90",X"99",X"00",X"00",X"99",X"BB",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"FF",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",
X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"F0",X"00",X"0F",X"BB",X"FF",X"00",X"0F",X"BB",X"BB",
X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"BF",X"BB",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"FF",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"44",X"44",X"00",
X"00",X"44",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"44",X"40",X"00",X"04",X"44",X"40",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",X"04",X"44",X"00",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",
X"04",X"44",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"44",X"00",X"04",X"44",X"44",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"44",X"44",X"00",X"00",X"44",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"40",X"00",X"04",X"44",X"40",X"00",
X"04",X"04",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"44",X"44",X"00",X"00",X"44",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"40",X"00",X"00",X"00",X"44",X"00",X"00",X"04",X"04",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"04",X"44",X"04",X"00",X"04",X"00",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",
X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"96",X"00",
X"00",X"00",X"96",X"00",X"00",X"00",X"96",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"96",X"00",X"00",X"00",X"66",X"F0",X"00",X"00",X"99",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"FF",X"FF",X"00",X"00",X"FF",X"FF",X"00",X"00",X"FF",X"FF",X"00",
X"00",X"FF",X"FF",X"00",X"00",X"FF",X"FF",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"0F",X"FF",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"B0",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"FB",X"00",X"00",X"0F",X"FF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"BB",X"00",X"0F",X"BB",X"BB",
X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"BB",X"FF",X"00",X"0F",X"BB",X"F0",X"00",X"0F",X"BB",X"00",
X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"FF",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"96",X"F0",X"00",X"00",X"66",X"F0",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"96",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",
X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"90",X"00",
X"00",X"00",X"90",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"FB",X"B0",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"99",X"BB",X"00",X"00",X"90",X"99",X"00",X"00",X"90",X"9F",X"00",X"00",X"00",X"F0",
X"00",X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"0B",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",
X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"99",X"00",X"00",X"0B",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"FF",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",
X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"F0",X"00",X"0F",X"BB",X"FF",X"00",X"0F",X"BB",X"BB",
X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"BF",X"BB",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"FF",X"00",
X"00",X"0F",X"FB",X"00",X"00",X"0F",X"FF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",
X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"00",X"00",X"0F",X"BF",X"BB",X"00",X"0F",X"BB",X"BB",
X"00",X"0F",X"BB",X"BB",X"00",X"0F",X"BB",X"FF",X"00",X"0F",X"BB",X"F0",X"00",X"0F",X"BB",X"00",
X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"FF",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"04",X"44",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"04",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",
X"04",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"04",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"00",X"00",X"04",X"40",X"44",X"00",X"00",X"44",X"44",X"00",X"00",X"04",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",X"04",X"40",X"00",X"00",X"00",X"00",X"44",X"00",
X"00",X"40",X"40",X"00",X"40",X"44",X"00",X"00",X"40",X"04",X"40",X"00",X"04",X"04",X"44",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",X"04",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"04",X"44",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"04",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"00",X"0B",X"00",X"0F",X"00",X"0B",X"00",
X"0F",X"00",X"0B",X"00",X"FB",X"00",X"0B",X"00",X"FB",X"00",X"0B",X"00",X"FB",X"00",X"00",X"00",
X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"0B",X"00",X"BB",X"00",X"0B",X"00",
X"BB",X"FF",X"FB",X"00",X"BB",X"BF",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"FF",X"BB",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",
X"FF",X"FF",X"FF",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"11",X"F0",X"00",
X"0F",X"11",X"1F",X"00",X"F1",X"11",X"11",X"00",X"11",X"BB",X"11",X"00",X"11",X"BB",X"11",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BF",X"BB",X"00",X"BB",X"F0",X"BB",X"00",X"BB",X"00",X"BB",X"00",
X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",
X"FF",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"0F",X"00",X"0F",X"00",X"0F",X"00",X"0B",X"00",X"0F",X"00",X"0B",X"00",
X"0F",X"00",X"0B",X"00",X"FB",X"00",X"0B",X"00",X"FB",X"00",X"0B",X"00",X"FB",X"00",X"00",X"00",
X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"0B",X"00",X"BB",X"00",X"0B",X"00",
X"BB",X"FF",X"FB",X"00",X"BB",X"BF",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"FF",X"BB",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",X"BB",X"BB",X"BB",X"F0",
X"FF",X"FF",X"FF",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",
X"00",X"61",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"61",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"BB",X"F0",X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"FB",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"F0",X"00",X"00",
X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"F0",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"0F",X"B1",X"00",
X"00",X"0F",X"B1",X"00",X"00",X"0F",X"B1",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",
X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"FF",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"FF",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",
X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"00",X"00",X"0F",X"B1",X"00",X"00",X"0F",X"B1",X"00",
X"00",X"0F",X"B1",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"BF",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FB",X"00",X"00",
X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"FF",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",
X"00",X"FB",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"B6",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",
X"66",X"00",X"00",X"00",X"66",X"F0",X"00",X"00",X"66",X"66",X"F0",X"00",X"66",X"F6",X"66",X"00",
X"66",X"66",X"F0",X"00",X"66",X"F0",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"B6",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FB",X"00",X"00",
X"00",X"FB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"FF",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",
X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FF",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"FB",X"00",X"00",
X"00",X"FB",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"04",X"44",X"00",X"00",
X"04",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"44",X"00",X"44",X"40",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"44",X"44",X"00",
X"00",X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"04",X"44",X"44",X"00",X"04",X"00",X"44",X"00",
X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"44",X"00",X"00",
X"04",X"44",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"04",X"44",X"00",X"00",X"04",X"44",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"04",X"44",X"00",X"00",X"04",X"44",X"00",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"B0",X"00",
X"00",X"BB",X"BB",X"00",X"0B",X"BB",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"50",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"50",X"50",X"50",X"00",X"00",X"00",X"00",X"00",
X"50",X"50",X"55",X"B0",X"00",X"00",X"00",X"BB",X"50",X"50",X"05",X"BB",X"00",X"00",X"1B",X"00",
X"50",X"CC",X"11",X"50",X"00",X"00",X"11",X"00",X"50",X"CC",X"11",X"50",X"00",X"0C",X"10",X"00",
X"00",X"CC",X"15",X"00",X"00",X"00",X"00",X"00",X"00",X"CC",X"11",X"00",X"00",X"00",X"00",X"00",
X"00",X"C0",X"01",X"05",X"00",X"00",X"00",X"00",X"05",X"C0",X"11",X"05",X"00",X"00",X"11",X"00",
X"05",X"11",X"11",X"05",X"00",X"00",X"10",X"00",X"05",X"05",X"50",X"05",X"00",X"00",X"00",X"00",
X"05",X"05",X"55",X"B0",X"00",X"00",X"00",X"B0",X"05",X"05",X"05",X"50",X"00",X"00",X"00",X"00",
X"05",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"44",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"44",X"00",
X"00",X"44",X"44",X"00",X"00",X"44",X"00",X"00",X"00",X"40",X"00",X"00",X"04",X"40",X"00",X"00",
X"04",X"40",X"00",X"00",X"04",X"40",X"44",X"00",X"00",X"40",X"44",X"00",X"00",X"44",X"00",X"00",
X"00",X"44",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"40",X"00",
X"00",X"44",X"40",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",
X"00",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"BB",X"BB",X"BB",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"BB",X"BB",X"B0",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"99",X"90",X"00",
X"00",X"99",X"90",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",X"00",X"BB",X"B0",X"00",
X"00",X"BB",X"B0",X"00",X"00",X"BC",X"B0",X"00",X"00",X"C0",X"C0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"66",X"00",
X"00",X"60",X"66",X"00",X"00",X"60",X"66",X"00",X"00",X"66",X"66",X"00",X"00",X"BB",X"B6",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"60",X"00",X"00",X"6B",X"60",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"06",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"60",X"60",X"00",X"00",X"B0",X"66",X"00",
X"00",X"60",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"60",X"60",X"00",
X"00",X"B0",X"66",X"00",X"00",X"60",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"00",
X"0C",X"5C",X"55",X"00",X"CC",X"05",X"55",X"00",X"CC",X"55",X"55",X"C0",X"00",X"55",X"5C",X"CC",
X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",
X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",
X"00",X"55",X"55",X"00",X"CC",X"55",X"00",X"00",X"CC",X"05",X"0C",X"CC",X"0C",X"05",X"50",X"C0",
X"00",X"0C",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"0F",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"04",X"F0",X"00",X"00",X"00",X"0F",X"00",
X"00",X"F0",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"40",
X"00",X"F0",X"00",X"F0",X"00",X"00",X"00",X"C0",X"00",X"00",X"00",X"F0",X"00",X"0F",X"00",X"C0",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"C0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"55",X"55",X"00",X"00",X"05",X"00",X"00",
X"00",X"00",X"00",X"00",X"02",X"25",X"22",X"00",X"00",X"55",X"52",X"00",X"05",X"55",X"50",X"00",
X"55",X"55",X"50",X"50",X"55",X"55",X"55",X"50",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",
X"55",X"55",X"55",X"55",X"00",X"5F",X"55",X"00",X"00",X"5A",X"55",X"00",X"02",X"5F",X"55",X"02",
X"C2",X"5A",X"55",X"C2",X"02",X"5F",X"55",X"02",X"00",X"5A",X"55",X"00",X"00",X"5F",X"55",X"00",
X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"55",X"50",X"50",
X"55",X"55",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"55",X"02",X"00",X"02",X"25",X"22",X"00",
X"00",X"05",X"50",X"00",X"00",X"55",X"55",X"00",X"00",X"55",X"55",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"61",X"00",X"00",
X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",
X"00",X"01",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"61",X"00",X"00",
X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"01",X"00",X"00",
X"00",X"61",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"B6",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"F0",X"00",X"00",X"F6",X"66",X"00",
X"00",X"66",X"F0",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"B6",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"06",X"00",
X"00",X"66",X"66",X"00",X"00",X"66",X"66",X"00",X"00",X"60",X"66",X"00",X"00",X"B0",X"B6",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"60",X"00",X"00",X"60",X"60",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"06",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"F0",X"00",X"00",X"F0",X"0F",X"00",
X"00",X"04",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"90",
X"00",X"99",X"99",X"90",X"00",X"BB",X"99",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"05",X"00",X"00",X"00",X"00",X"00",X"00",
X"BB",X"05",X"00",X"00",X"B0",X"01",X"00",X"00",X"05",X"11",X"00",X"00",X"00",X"11",X"00",X"00",
X"05",X"11",X"C0",X"00",X"00",X"11",X"00",X"00",X"05",X"01",X"C0",X"00",X"00",X"01",X"00",X"00",
X"00",X"51",X"C0",X"00",X"01",X"01",X"00",X"00",X"11",X"11",X"CC",X"00",X"01",X"01",X"00",X"00",
X"05",X"11",X"0C",X"00",X"00",X"01",X"00",X"00",X"50",X"11",X"0C",X"00",X"00",X"11",X"00",X"00",
X"50",X"11",X"1C",X"00",X"00",X"11",X"00",X"00",X"50",X"11",X"00",X"00",X"0B",X"01",X"00",X"00",
X"B0",X"50",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"50",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,534 +0,0 @@
library ieee;
use ieee.std_logic_1164.all,ieee.numeric_std.all;
entity sol_sp_bits_4 is
port (
clk : in std_logic;
addr : in std_logic_vector(12 downto 0);
data : out std_logic_vector(7 downto 0)
);
end entity;
architecture prom of sol_sp_bits_4 is
type rom is array(0 to 8191) of std_logic_vector(7 downto 0);
signal rom_data: rom := (
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",
X"00",X"06",X"00",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"66",X"00",X"00",X"A6",X"06",X"00",
X"00",X"AA",X"09",X"00",X"00",X"AB",X"99",X"00",X"66",X"BB",X"9A",X"00",X"06",X"FB",X"0A",X"00",
X"66",X"0F",X"5A",X"00",X"66",X"9B",X"06",X"00",X"06",X"FF",X"00",X"00",X"00",X"B6",X"6F",X"00",
X"00",X"BF",X"FB",X"00",X"00",X"FF",X"FB",X"00",X"00",X"BF",X"BB",X"00",X"00",X"BF",X"06",X"00",
X"00",X"BF",X"06",X"00",X"00",X"99",X"BA",X"00",X"00",X"09",X"0A",X"00",X"00",X"6B",X"0A",X"00",
X"00",X"6B",X"0A",X"00",X"00",X"60",X"0A",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",X"B0",X"00",
X"B0",X"00",X"BB",X"00",X"B0",X"99",X"BB",X"00",X"00",X"99",X"00",X"00",X"00",X"09",X"00",X"00",
X"00",X"09",X"9B",X"00",X"00",X"09",X"9B",X"00",X"BB",X"09",X"90",X"00",X"BB",X"99",X"90",X"00",
X"00",X"55",X"90",X"00",X"00",X"0B",X"00",X"00",X"BB",X"BB",X"00",X"00",X"00",X"FF",X"FB",X"00",
X"B0",X"FF",X"FB",X"00",X"00",X"BB",X"99",X"00",X"0F",X"FB",X"FF",X"B0",X"FF",X"FB",X"FF",X"B0",
X"0B",X"FB",X"0B",X"00",X"0B",X"FB",X"5B",X"00",X"00",X"99",X"BB",X"00",X"00",X"B9",X"00",X"00",
X"00",X"B9",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"AA",X"00",X"00",X"00",X"AA",X"00",X"99",X"00",X"AA",X"00",
X"B9",X"99",X"A6",X"00",X"B9",X"99",X"A6",X"00",X"09",X"99",X"A6",X"00",X"09",X"09",X"90",X"00",
X"9A",X"09",X"9B",X"00",X"9A",X"06",X"9B",X"00",X"99",X"06",X"A9",X"00",X"9B",X"A5",X"A9",X"00",
X"90",X"55",X"A9",X"00",X"00",X"55",X"99",X"00",X"99",X"55",X"09",X"00",X"99",X"55",X"F9",X"00",
X"B9",X"55",X"F6",X"00",X"99",X"A5",X"66",X"00",X"9A",X"AA",X"AA",X"B0",X"99",X"AA",X"AA",X"B0",
X"0B",X"FA",X"AA",X"00",X"0B",X"FB",X"AA",X"00",X"0A",X"99",X"AA",X"00",X"0A",X"B9",X"A6",X"00",
X"00",X"AA",X"66",X"00",X"00",X"99",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"04",X"09",X"99",X"00",X"04",X"11",X"19",X"00",X"44",X"19",X"B9",X"00",X"00",X"11",X"B9",X"00",
X"99",X"BB",X"B9",X"00",X"99",X"BB",X"BB",X"00",X"99",X"BB",X"BB",X"00",X"99",X"BB",X"0B",X"00",
X"90",X"BB",X"FB",X"90",X"90",X"BB",X"FB",X"40",X"10",X"BB",X"BB",X"40",X"15",X"0B",X"BB",X"90",
X"10",X"00",X"F0",X"90",X"00",X"50",X"00",X"99",X"00",X"00",X"0F",X"99",X"00",X"04",X"0F",X"99",
X"00",X"55",X"99",X"09",X"0B",X"95",X"99",X"09",X"BB",X"0B",X"5F",X"99",X"BB",X"FB",X"0F",X"99",
X"FB",X"BB",X"0B",X"09",X"BB",X"BB",X"0B",X"99",X"BB",X"BB",X"BB",X"44",X"B9",X"00",X"BB",X"44",
X"BB",X"00",X"BB",X"44",X"99",X"99",X"00",X"00",X"99",X"19",X"01",X"00",X"99",X"99",X"09",X"00",
X"05",X"90",X"99",X"00",X"04",X"99",X"99",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F0",X"B0",X"00",X"00",X"90",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",
X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"BC",X"00",X"00",
X"00",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"FF",X"00",X"FF",X"00",X"99",X"00",X"9F",X"00",X"99",X"00",X"9F",X"00",
X"99",X"00",X"9F",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"90",X"00",X"99",X"00",
X"90",X"00",X"99",X"00",X"90",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",
X"99",X"9F",X"99",X"00",X"99",X"FF",X"99",X"00",X"99",X"F9",X"99",X"00",X"99",X"FF",X"99",X"00",
X"99",X"99",X"99",X"00",X"99",X"99",X"99",X"00",X"99",X"99",X"99",X"00",X"99",X"99",X"99",X"00",
X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"9F",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"B9",X"00",X"00",X"0F",X"B9",X"00",X"00",X"F9",X"B9",X"00",X"00",
X"99",X"BB",X"00",X"00",X"99",X"BB",X"F0",X"00",X"99",X"00",X"9F",X"00",X"90",X"90",X"99",X"00",
X"90",X"99",X"99",X"00",X"90",X"99",X"99",X"00",X"99",X"B9",X"99",X"00",X"99",X"0B",X"99",X"00",
X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"99",X"00",X"BB",X"00",X"BB",X"00",
X"B0",X"00",X"BB",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"F0",X"00",
X"00",X"99",X"9F",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",
X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",
X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"F0",X"00",X"99",X"99",X"00",X"00",X"99",X"9F",X"00",
X"00",X"99",X"F0",X"00",X"00",X"99",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",
X"00",X"90",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"55",X"00",X"00",
X"00",X"55",X"00",X"00",X"00",X"55",X"00",X"00",X"00",X"96",X"00",X"00",X"99",X"96",X"99",X"00",
X"55",X"55",X"96",X"00",X"55",X"55",X"96",X"00",X"55",X"55",X"99",X"00",X"99",X"99",X"99",X"00",
X"99",X"99",X"99",X"00",X"55",X"55",X"99",X"80",X"55",X"55",X"96",X"99",X"55",X"55",X"96",X"99",
X"FF",X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"90",X"00",X"00",X"00",X"00",X"00",X"00",X"0B",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"99",X"00",
X"00",X"BB",X"B0",X"00",X"0F",X"9C",X"00",X"00",X"FF",X"BC",X"90",X"00",X"9F",X"FF",X"00",X"00",
X"0F",X"FF",X"BB",X"00",X"09",X"BB",X"BB",X"00",X"00",X"FC",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"9B",X"00",X"00",X"00",X"0B",X"09",X"00",X"00",X"99",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"0B",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"FF",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",
X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"9F",X"00",
X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"B9",X"CC",X"00",X"00",X"0B",X"CC",X"00",
X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"0B",X"F0",X"00",X"00",X"00",X"F0",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"F0",X"00",X"BB",X"00",X"F0",
X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"44",X"40",X"40",X"00",
X"44",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"04",X"00",X"44",X"00",X"04",X"00",
X"44",X"00",X"04",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"44",X"40",X"00",X"00",X"44",X"40",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"04",X"00",X"44",X"40",X"04",X"00",X"44",X"40",X"04",X"00",X"04",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"04",X"00",
X"00",X"00",X"44",X"00",X"00",X"00",X"40",X"00",X"04",X"00",X"40",X"00",X"44",X"40",X"40",X"00",
X"44",X"40",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"44",X"00",X"44",X"40",X"44",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"44",X"40",X"44",X"00",X"44",X"00",X"44",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"40",X"00",X"00",
X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",
X"44",X"40",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"44",X"00",X"00",X"00",X"04",X"00",
X"00",X"00",X"00",X"00",X"40",X"00",X"04",X"00",X"40",X"40",X"44",X"00",X"00",X"40",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"69",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"99",X"00",
X"00",X"0F",X"99",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"96",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"FF",X"00",
X"00",X"BB",X"FF",X"00",X"00",X"FB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FB",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"F0",
X"00",X"BB",X"00",X"F0",X"00",X"BB",X"BB",X"F0",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"66",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"66",X"00",X"00",X"0F",X"69",X"00",
X"00",X"0F",X"60",X"00",X"00",X"0F",X"60",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"F0",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"F0",X"00",X"00",X"0B",X"F0",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",
X"00",X"0B",X"CC",X"00",X"00",X"B9",X"CC",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",
X"00",X"99",X"9F",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",
X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"99",X"F0",X"00",X"00",X"FF",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"F0",X"00",X"BB",X"00",X"F0",
X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"F0",X"00",X"BB",X"00",X"F0",
X"00",X"BB",X"00",X"F0",X"00",X"BB",X"BB",X"F0",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",
X"00",X"BB",X"BB",X"00",X"00",X"BB",X"FF",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"40",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"44",X"40",X"00",X"00",
X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"40",X"00",X"00",
X"44",X"40",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"04",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"04",X"40",X"00",X"00",
X"04",X"40",X"00",X"00",X"04",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",
X"40",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"40",X"00",X"00",X"00",X"44",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"40",X"00",X"40",X"00",
X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"44",X"40",X"40",X"00",
X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"40",X"00",X"00",X"44",X"40",X"00",X"00",
X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",
X"44",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"44",X"40",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"FF",X"00",X"FF",X"00",X"BB",X"00",X"BF",X"00",X"BB",X"00",X"BF",X"00",
X"BB",X"00",X"BF",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"B0",X"00",X"BB",X"00",
X"B0",X"00",X"BB",X"00",X"B0",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",
X"BB",X"BF",X"BB",X"00",X"BB",X"FF",X"BB",X"00",X"BB",X"FB",X"BB",X"00",X"BB",X"FF",X"BB",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",
X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"0F",X"11",X"00",X"00",X"F1",X"11",X"00",X"00",
X"11",X"11",X"00",X"00",X"11",X"11",X"F0",X"00",X"11",X"BB",X"1F",X"00",X"11",X"BB",X"11",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"FB",X"BB",X"00",X"BB",X"0F",X"BB",X"00",
X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BF",X"00",X"BF",X"00",
X"F0",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"FF",X"00",X"FF",X"00",X"BB",X"00",X"BF",X"00",X"BB",X"00",X"BF",X"00",
X"BB",X"00",X"BF",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"B0",X"00",X"BB",X"00",
X"B0",X"00",X"BB",X"00",X"B0",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",X"BB",X"00",
X"BB",X"BF",X"BB",X"00",X"BB",X"FF",X"BB",X"00",X"BB",X"FB",X"BB",X"00",X"BB",X"FF",X"BB",X"00",
X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",X"BB",X"BB",X"BB",X"00",
X"FF",X"FF",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"16",X"00",X"00",
X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"10",X"00",X"00",X"00",X"60",X"00",X"00",
X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"11",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"11",X"F0",X"00",X"00",X"11",X"BF",X"00",X"00",
X"B1",X"BB",X"00",X"00",X"B1",X"BB",X"00",X"00",X"F1",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"FF",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"FF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"0F",X"BB",X"00",X"00",X"F1",X"BB",X"00",X"00",X"B1",X"BB",X"00",X"00",X"B1",X"BB",X"00",X"00",
X"11",X"BF",X"00",X"00",X"11",X"F0",X"00",X"00",X"11",X"00",X"00",X"00",X"11",X"00",X"00",X"00",
X"00",X"00",X"B1",X"F0",X"00",X"00",X"B1",X"F0",X"00",X"00",X"B1",X"00",X"00",X"00",X"11",X"00",
X"00",X"0F",X"11",X"00",X"00",X"FB",X"11",X"00",X"00",X"BB",X"11",X"00",X"00",X"BB",X"11",X"00",
X"00",X"BB",X"1F",X"00",X"00",X"BB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",
X"00",X"0F",X"F0",X"00",X"00",X"0F",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"F0",X"00",X"00",X"0F",X"F0",X"00",X"00",X"0F",X"F0",X"00",
X"00",X"FB",X"F0",X"00",X"00",X"FB",X"F0",X"00",X"00",X"BB",X"F0",X"00",X"00",X"BB",X"1F",X"00",
X"00",X"BB",X"11",X"00",X"00",X"BB",X"11",X"00",X"00",X"FB",X"11",X"00",X"00",X"0F",X"11",X"00",
X"00",X"00",X"11",X"00",X"00",X"00",X"B1",X"00",X"00",X"00",X"B1",X"F0",X"00",X"00",X"B1",X"F0",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",
X"FB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"B0",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"B0",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",
X"FB",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",
X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"00",X"66",X"00",
X"66",X"00",X"6B",X"00",X"66",X"00",X"60",X"00",X"66",X"66",X"6B",X"00",X"66",X"66",X"66",X"00",
X"66",X"66",X"6B",X"00",X"66",X"00",X"60",X"00",X"66",X"00",X"6B",X"00",X"00",X"00",X"66",X"00",
X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"00",X"06",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",
X"FB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"B0",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",
X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BF",X"00",X"00",X"00",X"BB",X"00",X"00",
X"B0",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"BB",X"BB",X"00",X"00",X"FB",X"BB",X"00",X"00",
X"FB",X"BB",X"00",X"00",X"0F",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"FF",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"44",X"40",X"00",X"00",
X"44",X"40",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"04",X"00",X"00",X"40",X"04",X"00",
X"00",X"40",X"44",X"00",X"04",X"40",X"44",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"44",X"00",X"44",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"40",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"40",X"44",X"00",X"00",X"40",X"44",X"00",
X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"44",X"40",X"04",X"00",
X"44",X"40",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",
X"44",X"40",X"00",X"00",X"44",X"40",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"00",X"04",X"00",
X"00",X"00",X"04",X"00",X"44",X"40",X"00",X"00",X"44",X"40",X"00",X"00",X"04",X"00",X"44",X"00",
X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"40",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"BB",X"BB",X"B0",X"00",X"BB",X"BB",X"BB",X"BB",X"00",X"00",X"00",X"00",X"0F",X"0F",X"0F",X"00",
X"0F",X"0F",X"0F",X"00",X"00",X"00",X"00",X"00",X"BB",X"BB",X"BB",X"BB",X"BB",X"BB",X"B0",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",
X"50",X"50",X"05",X"00",X"00",X"00",X"00",X"00",X"50",X"50",X"0B",X"50",X"00",X"00",X"BB",X"00",
X"50",X"0C",X"BF",X"55",X"00",X"00",X"10",X"00",X"00",X"CC",X"11",X"50",X"00",X"00",X"11",X"00",
X"00",X"CC",X"15",X"50",X"00",X"00",X"00",X"00",X"00",X"CC",X"11",X"00",X"00",X"00",X"01",X"00",
X"00",X"00",X"01",X"05",X"00",X"00",X"01",X"00",X"00",X"00",X"11",X"05",X"00",X"00",X"1F",X"00",
X"05",X"10",X"BB",X"00",X"00",X"00",X"0B",X"00",X"05",X"05",X"50",X"00",X"00",X"00",X"00",X"00",
X"05",X"05",X"50",X"00",X"00",X"00",X"00",X"00",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",
X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"04",X"00",X"00",X"00",
X"00",X"00",X"04",X"00",X"00",X"40",X"04",X"00",X"00",X"40",X"44",X"00",X"00",X"00",X"44",X"00",
X"04",X"00",X"44",X"00",X"44",X"00",X"00",X"00",X"40",X"00",X"00",X"00",X"00",X"00",X"40",X"00",
X"00",X"40",X"44",X"00",X"00",X"40",X"04",X"00",X"04",X"00",X"04",X"00",X"44",X"00",X"04",X"00",
X"40",X"00",X"04",X"00",X"44",X"00",X"44",X"00",X"04",X"00",X"44",X"00",X"00",X"40",X"00",X"00",
X"00",X"40",X"00",X"00",X"44",X"00",X"00",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"04",X"00",
X"00",X"00",X"44",X"00",X"00",X"40",X"40",X"00",X"00",X"40",X"40",X"00",X"00",X"00",X"40",X"00",
X"00",X"00",X"40",X"00",X"44",X"00",X"40",X"00",X"44",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"BB",X"BB",X"BB",X"0B",
X"BB",X"BB",X"BB",X"B0",X"F0",X"0F",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"0F",X"00",
X"00",X"F0",X"00",X"00",X"F0",X"0F",X"00",X"00",X"BB",X"BB",X"BB",X"B0",X"BB",X"BB",X"BB",X"0B",
X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",X"00",X"BB",X"00",X"00",
X"00",X"BB",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",X"00",X"99",X"00",X"00",
X"00",X"99",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",
X"00",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",
X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"B9",X"00",X"00",X"00",X"BC",X"00",X"00",
X"00",X"C0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"0F",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"60",X"00",X"00",X"F0",X"66",X"00",X"00",X"6F",X"66",X"00",X"00",X"BF",X"66",X"00",
X"06",X"0F",X"B6",X"00",X"06",X"00",X"F6",X"00",X"06",X"66",X"66",X"00",X"00",X"0B",X"06",X"00",
X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"60",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"B0",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"0C",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0C",X"0C",X"00",X"00",X"CC",X"CC",X"00",X"00",
X"CC",X"CC",X"00",X"00",X"C7",X"55",X"00",X"00",X"C7",X"55",X"00",X"00",X"07",X"55",X"CC",X"00",
X"0C",X"55",X"CC",X"00",X"0C",X"55",X"5C",X"00",X"0C",X"55",X"55",X"00",X"00",X"5B",X"55",X"00",
X"00",X"BB",X"55",X"00",X"0C",X"5B",X"55",X"00",X"0C",X"55",X"55",X"00",X"0C",X"55",X"00",X"00",
X"07",X"55",X"0C",X"00",X"C7",X"55",X"CC",X"00",X"C7",X"55",X"CC",X"00",X"CC",X"55",X"00",X"00",
X"CC",X"CC",X"00",X"00",X"0C",X"CC",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"CC",X"00",X"00",X"00",X"CC",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"D0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",
X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"00",X"0C",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"00",X"00",X"00",X"0D",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"C0",X"F0",X"00",X"00",X"FF",X"00",X"00",
X"00",X"0F",X"F0",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"02",X"00",X"00",X"55",X"02",X"00",X"02",X"55",X"02",X"00",
X"22",X"00",X"02",X"00",X"22",X"55",X"2C",X"00",X"00",X"55",X"22",X"00",X"00",X"55",X"22",X"00",
X"00",X"55",X"52",X"00",X"55",X"55",X"55",X"00",X"55",X"55",X"55",X"00",X"55",X"5F",X"55",X"00",
X"55",X"FA",X"55",X"50",X"02",X"AF",X"55",X"02",X"22",X"FF",X"55",X"22",X"22",X"FA",X"55",X"22",
X"22",X"F5",X"55",X"22",X"22",X"FA",X"00",X"22",X"22",X"FF",X"55",X"22",X"02",X"AF",X"55",X"02",
X"55",X"FA",X"55",X"50",X"55",X"5F",X"00",X"00",X"55",X"55",X"05",X"00",X"50",X"55",X"05",X"00",
X"50",X"55",X"52",X"00",X"00",X"00",X"22",X"00",X"00",X"55",X"22",X"00",X"22",X"55",X"2C",X"00",
X"22",X"55",X"02",X"00",X"02",X"55",X"02",X"00",X"00",X"55",X"02",X"00",X"00",X"00",X"02",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"60",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"60",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"11",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"06",X"06",X"00",
X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"6B",X"00",X"00",X"00",X"60",X"00",X"00",X"66",X"6B",X"00",X"00",X"66",X"66",X"00",
X"00",X"66",X"6B",X"00",X"00",X"00",X"60",X"00",X"00",X"00",X"6B",X"00",X"00",X"00",X"66",X"00",
X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",X"00",X"06",X"06",X"00",
X"00",X"06",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"06",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",
X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"66",X"00",
X"00",X"00",X"66",X"00",X"00",X"00",X"66",X"00",X"00",X"6F",X"66",X"00",X"06",X"BF",X"66",X"00",
X"06",X"0F",X"B6",X"00",X"06",X"00",X"F6",X"00",X"06",X"66",X"66",X"00",X"00",X"0B",X"06",X"00",
X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",X"06",X"B0",X"66",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"0F",X"00",X"00",X"00",X"44",X"D0",X"00",X"00",X"FF",X"00",X"00",
X"00",X"00",X"0F",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"0F",X"00",X"00",X"00",X"00",X"00",X"F0",X"00",X"00",X"F0",X"00",X"00",X"00",X"CD",X"0F",X"00",
X"00",X"04",X"F0",X"00",X"00",X"F0",X"00",X"00",X"00",X"00",X"C0",X"00",X"00",X"F0",X"00",X"00",
X"00",X"04",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"40",X"00",X"00",X"F0",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"09",X"00",X"00",X"B0",X"09",X"00",
X"00",X"BB",X"09",X"00",X"00",X"BB",X"09",X"00",X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",
X"00",X"99",X"99",X"00",X"00",X"99",X"99",X"00",X"00",X"BB",X"09",X"00",X"00",X"BB",X"09",X"00",
X"00",X"B0",X"09",X"00",X"00",X"00",X"09",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"00",X"05",X"05",X"00",X"00",X"00",X"00",X"00",X"00",X"05",X"05",X"00",X"00",X"00",X"00",X"00",
X"50",X"11",X"05",X"00",X"B0",X"11",X"00",X"00",X"5B",X"11",X"05",X"00",X"00",X"11",X"00",X"00",
X"55",X"C1",X"00",X"00",X"00",X"01",X"00",X"00",X"C5",X"C1",X"00",X"00",X"01",X"11",X"00",X"00",
X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"11",X"00",X"00",X"11",X"00",X"00",X"00",
X"11",X"00",X"00",X"00",X"01",X"00",X"00",X"00",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",
X"55",X"00",X"00",X"00",X"0B",X"00",X"00",X"00",X"B5",X"05",X"50",X"00",X"00",X"00",X"00",X"00",
X"05",X"00",X"50",X"00",X"B0",X"00",X"00",X"00",X"B0",X"50",X"50",X"00",X"00",X"00",X"00",X"00",
X"00",X"50",X"50",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00",X"00");
begin
process(clk)
begin
if rising_edge(clk) then
data <= rom_data(to_integer(unsigned(addr)));
end if;
end process;
end architecture;

View File

@@ -1,323 +0,0 @@
//
// sdram.v
//
// sdram controller implementation for the MiST board
// https://github.com/mist-devel/mist-board
//
// Copyright (c) 2013 Till Harbaum <till@harbaum.org>
// Copyright (c) 2019 Gyorgy Szombathelyi
//
// This source file is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This source file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
module sdram (
// interface to the MT48LC16M16 chip
inout reg [15:0] SDRAM_DQ, // 16 bit bidirectional data bus
output reg [12:0] SDRAM_A, // 13 bit multiplexed address bus
output reg SDRAM_DQML, // two byte masks
output reg SDRAM_DQMH, // two byte masks
output reg [1:0] SDRAM_BA, // two banks
output SDRAM_nCS, // a single chip select
output SDRAM_nWE, // write enable
output SDRAM_nRAS, // row address select
output SDRAM_nCAS, // columns address select
// cpu/chipset interface
input init_n, // init signal after FPGA config to initialize RAM
input clk, // sdram clock
input port1_req,
output reg port1_ack,
input port1_we,
input [23:1] port1_a,
input [1:0] port1_ds,
input [15:0] port1_d,
output [15:0] port1_q,
input [15:1] cpu1_addr,
output reg [15:0] cpu1_q,
input port2_req,
output reg port2_ack,
input port2_we,
input [23:1] port2_a,
input [1:0] port2_ds,
input [15:0] port2_d,
output [15:0] port2_q,
input [15:1] snd_addr,
output reg [15:0] snd_q
);
localparam RASCAS_DELAY = 3'd2; // tRCD=20ns -> 2 cycles@<100MHz
localparam BURST_LENGTH = 3'b000; // 000=1, 001=2, 010=4, 011=8
localparam ACCESS_TYPE = 1'b0; // 0=sequential, 1=interleaved
localparam CAS_LATENCY = 3'd2; // 2/3 allowed
localparam OP_MODE = 2'b00; // only 00 (standard operation) allowed
localparam NO_WRITE_BURST = 1'b1; // 0= write burst enabled, 1=only single access write
localparam MODE = { 3'b000, NO_WRITE_BURST, OP_MODE, CAS_LATENCY, ACCESS_TYPE, BURST_LENGTH};
// 64ms/8192 rows = 7.8us -> 842 cycles@108MHz
localparam RFRSH_CYCLES = 10'd842;
// ---------------------------------------------------------------------
// ------------------------ cycle state machine ------------------------
// ---------------------------------------------------------------------
/*
SDRAM state machine for 2 bank interleaved access
1 word burst, CL2
cmd issued registered
0 RAS0 cas1
1 ras0
2 CAS0 data1 returned
3 RAS1 cas0
4 ras1
5 CAS1 data0 returned
*/
localparam STATE_RAS0 = 3'd0; // first state in cycle
localparam STATE_RAS1 = 3'd3; // Second ACTIVE command after RAS0 + tRRD (15ns)
localparam STATE_CAS0 = STATE_RAS0 + RASCAS_DELAY; // CAS phase - 3
localparam STATE_CAS1 = STATE_RAS1 + RASCAS_DELAY; // CAS phase - 5
localparam STATE_READ0 = 3'd0; //STATE_CAS0 + CAS_LATENCY + 1'd1; // 7
localparam STATE_READ1 = 3'd3;
localparam STATE_LAST = 3'd5;
reg [2:0] t;
always @(posedge clk) begin
t <= t + 1'd1;
if (t == STATE_LAST) t <= STATE_RAS0;
end
// ---------------------------------------------------------------------
// --------------------------- startup/reset ---------------------------
// ---------------------------------------------------------------------
// wait 1ms (32 8Mhz cycles) after FPGA config is done before going
// into normal operation. Initialize the ram in the last 16 reset cycles (cycles 15-0)
reg [4:0] reset;
reg init = 1'b1;
always @(posedge clk, negedge init_n) begin
if(!init_n) begin
reset <= 5'h1f;
init <= 1'b1;
end else begin
if((t == STATE_LAST) && (reset != 0)) reset <= reset - 5'd1;
init <= !(reset == 0);
end
end
// ---------------------------------------------------------------------
// ------------------ generate ram control signals ---------------------
// ---------------------------------------------------------------------
// all possible commands
localparam CMD_INHIBIT = 4'b1111;
localparam CMD_NOP = 4'b0111;
localparam CMD_ACTIVE = 4'b0011;
localparam CMD_READ = 4'b0101;
localparam CMD_WRITE = 4'b0100;
localparam CMD_BURST_TERMINATE = 4'b0110;
localparam CMD_PRECHARGE = 4'b0010;
localparam CMD_AUTO_REFRESH = 4'b0001;
localparam CMD_LOAD_MODE = 4'b0000;
reg [3:0] sd_cmd; // current command sent to sd ram
reg [15:0] sd_din;
// drive control signals according to current command
assign SDRAM_nCS = sd_cmd[3];
assign SDRAM_nRAS = sd_cmd[2];
assign SDRAM_nCAS = sd_cmd[1];
assign SDRAM_nWE = sd_cmd[0];
reg [24:1] addr_latch[2];
reg [24:1] addr_latch_next[2];
reg [15:1] addr_last[2];
reg [15:1] addr_last2[2];
reg [15:0] din_latch[2];
reg [1:0] oe_latch;
reg [1:0] we_latch;
reg [1:0] ds[2];
localparam PORT_NONE = 2'd0;
localparam PORT_CPU1 = 2'd1;
localparam PORT_REQ = 2'd2;
localparam PORT_SND = 2'd1;
reg [2:0] next_port[2];
reg [2:0] port[2];
reg refresh;
reg [10:0] refresh_cnt;
wire need_refresh = (refresh_cnt >= RFRSH_CYCLES);
// PORT1: bank 0,1
always @(*) begin
if (refresh) begin
next_port[0] = PORT_NONE;
addr_latch_next[0] = addr_latch[0];
end else if (port1_req ^ port1_ack) begin
next_port[0] = PORT_REQ;
addr_latch_next[0] = { 1'b0, port1_a };
end else if (cpu1_addr != addr_last[PORT_CPU1]) begin
next_port[0] = PORT_CPU1;
addr_latch_next[0] = { 9'd0, cpu1_addr };
end else begin
next_port[0] = PORT_NONE;
addr_latch_next[0] = addr_latch[0];
end
end
// PORT2: bank 2,3
always @(*) begin
if (port2_req ^ port2_ack) begin
next_port[1] = PORT_REQ;
addr_latch_next[1] = { 1'b1, port2_a };
end else if (snd_addr != addr_last2[PORT_SND]) begin
next_port[1] = PORT_SND;
addr_latch_next[1] = { 1'b1, 8'd0, snd_addr };
end else begin
next_port[1] = PORT_NONE;
addr_latch_next[1] = addr_latch[1];
end
end
always @(posedge clk) begin
// permanently latch ram data to reduce delays
sd_din <= SDRAM_DQ;
SDRAM_DQ <= 16'bZZZZZZZZZZZZZZZZ;
{ SDRAM_DQMH, SDRAM_DQML } <= 2'b11;
sd_cmd <= CMD_NOP; // default: idle
refresh_cnt <= refresh_cnt + 1'd1;
if(init) begin
// initialization takes place at the end of the reset phase
if(t == STATE_RAS0) begin
if(reset == 15) begin
sd_cmd <= CMD_PRECHARGE;
SDRAM_A[10] <= 1'b1; // precharge all banks
end
if(reset == 10 || reset == 8) begin
sd_cmd <= CMD_AUTO_REFRESH;
end
if(reset == 2) begin
sd_cmd <= CMD_LOAD_MODE;
SDRAM_A <= MODE;
SDRAM_BA <= 2'b00;
end
end
end else begin
// RAS phase
// bank 0,1
if(t == STATE_RAS0) begin
addr_latch[0] <= addr_latch_next[0];
port[0] <= next_port[0];
{ oe_latch[0], we_latch[0] } <= 2'b00;
if (next_port[0] != PORT_NONE) begin
sd_cmd <= CMD_ACTIVE;
SDRAM_A <= addr_latch_next[0][22:10];
SDRAM_BA <= addr_latch_next[0][24:23];
addr_last[next_port[0]] <= addr_latch_next[0][15:1];
if (next_port[0] == PORT_REQ) begin
{ oe_latch[0], we_latch[0] } <= { ~port1_we, port1_we };
ds[0] <= port1_ds;
din_latch[0] <= port1_d;
end else begin
{ oe_latch[0], we_latch[0] } <= 2'b10;
ds[0] <= 2'b11;
end
end
end
// bank 2,3
if(t == STATE_RAS1) begin
refresh <= 1'b0;
addr_latch[1] <= addr_latch_next[1];
{ oe_latch[1], we_latch[1] } <= 2'b00;
port[1] <= next_port[1];
if (next_port[1] != PORT_NONE) begin
sd_cmd <= CMD_ACTIVE;
SDRAM_A <= addr_latch_next[1][22:10];
SDRAM_BA <= addr_latch_next[1][24:23];
addr_last2[next_port[1]] <= addr_latch_next[1][15:1];
if (next_port[1] == PORT_REQ) begin
{ oe_latch[1], we_latch[1] } <= { ~port2_we, port2_we };
ds[1] <= port2_ds;
din_latch[1] <= port2_d;
end else begin
{ oe_latch[1], we_latch[1] } <= 2'b10;
ds[1] <= 2'b11;
end
end
if (next_port[1] == PORT_NONE && need_refresh && !we_latch[0] && !oe_latch[0]) begin
refresh <= 1'b1;
refresh_cnt <= 0;
sd_cmd <= CMD_AUTO_REFRESH;
end
end
// CAS phase
if(t == STATE_CAS0 && (we_latch[0] || oe_latch[0])) begin
sd_cmd <= we_latch[0]?CMD_WRITE:CMD_READ;
{ SDRAM_DQMH, SDRAM_DQML } <= ~ds[0];
if (we_latch[0]) begin
SDRAM_DQ <= din_latch[0];
port1_ack <= port1_req;
end
SDRAM_A <= { 4'b0010, addr_latch[0][9:1] }; // auto precharge
SDRAM_BA <= addr_latch[0][24:23];
end
if(t == STATE_CAS1 && (we_latch[1] || oe_latch[1])) begin
sd_cmd <= we_latch[1]?CMD_WRITE:CMD_READ;
{ SDRAM_DQMH, SDRAM_DQML } <= ~ds[1];
if (we_latch[1]) begin
SDRAM_DQ <= din_latch[1];
port2_ack <= port2_req;
end
SDRAM_A <= { 4'b0010, addr_latch[1][9:1] }; // auto precharge
SDRAM_BA <= addr_latch[1][24:23];
end
// Data returned
if(t == STATE_READ0 && oe_latch[0]) begin
case(port[0])
PORT_REQ: begin port1_q <= sd_din; port1_ack <= port1_req; end
PORT_CPU1: begin cpu1_q <= sd_din; end
default: ;
endcase;
end
if(t == STATE_READ1 && oe_latch[1]) begin
case(port[1])
PORT_REQ: begin port2_q <= sd_din; port2_ack <= port2_req; end
PORT_SND: begin snd_q <= sd_din; end
default: ;
endcase;
end
end
end
endmodule

View File

@@ -1,907 +0,0 @@
---------------------------------------------------------------------------------
-- Solar Fox by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- gen_ram.vhd & io_ps2_keyboard
--------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
---------------------------------------------------------------------------------
-- T80/T80se - Version : 304
-----------------------------
-- Z80 compatible microprocessor core
-- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
---------------------------------------------------------------------------------
-- YM2149 (AY-3-8910)
-- Copyright (c) MikeJ - Jan 2005
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
--
-- release rev 01 : add TV 15kHz mode
-- (22/11/2019) use merged sprite 8bits roms (make it easier to externalize)
--
-- release rev 00 : initial release
--
--
-- Features :
-- Video : VGA 31Khz/60Hz and TV 15kHz
-- Coctail mode : NO
-- Sound : OK
-- Use with MAME roms from solarfox.zip
--
-- Use make_solar_fox_proms.bat to build vhd file from binaries
-- (CRC list included)
-- Solar Fox (midway mcr) Hardware caracteristics :
--
-- VIDEO : 1xZ80@3MHz CPU accessing its program rom, working ram,
-- sprite data ram, I/O, sound board register and trigger.
-- 24Kx8bits program rom
--
-- One char/background tile map 30x32
-- 2x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- 128 sprites, up to ~15/line, 32x32 with flip H/V
-- 4x4Kx8bits graphics rom 4bits/pixel
-- rbg programmable ram palette 16 colors 12bits : 4red 4green 4blue
--
-- Working ram : 2Kx8bits
-- video (char/background) ram : 1Kx8bits
-- Sprites ram : 512x8bits + 512x8bits cache buffer
-- Sprites line buffer rams : 1 scan line delay flip/flop 2x256x8bits
--
-- SOUND : see solarfox_sound_board.vhd
---------------------------------------------------------------------------------
-- Schematics remarks :
--
-- Display is 512x480 pixels (video 635x525 lines @ 20MHz )
-- 635/20e6 = 31.75us per line (31.750KHz)
-- 31.75*525 = 16.67ms per frame (59.99Hz)
--
-- Original video is interlaced 240 display lines per 1/2 frame
--
-- H0 and V0 are not use for background => each bg tile is 16x16 pixel but
-- background graphics is 2x2 pixels defintion.
--
-- Sprite are 32x32 pixels with 1x1 pixel definition, 16 lines for odd 1/2
-- frame and 16 lines for even 2/2 frame thanks to V8 on sprite rom ROMAD2
-- (look at 74ls86 G1 pin 9 on video genration board schematics)
--
-- *H and V stand for Horizontal en Vertical counter (Hcnt, Vcnt in VHDL code)
--
-- /!\ For VHDL port interlaced video mode is replaced with progressive video
-- mode.
--
-- Sprite data are stored first by cpu into a 'cache' buffer (staging ram at
-- K6/L6) this buffer is read and write for cpu. After visible display, cache
-- buffer (512x8) is moved to actual sprite ram buffer (512x8). Actual sprite
-- buffer is access by transfer address counter during 2 scanlines after
-- visible area and only by sprite machine during visible area.
--
-- Thus cpu can read and update sprites position during entire frame except
-- during 2 lines.
--
-- Sprite data are organised (as seen by cpu F000-F1FF) into 128 * 4bytes.
-- bytes #1 : Vertical position
-- bytes #2 : code and attribute
-- bytes #3 : Horizontal position
-- bytes #4 : not used
--
-- Athough 1x1 pixel defintion sprite position horizontal/vertical is made on
-- on a 2x2 grid (due to only 8bits for position data)
--
-- Z80-CTC : interruption ar managed by CTC chip. ONly channel 3 is trigered
-- by hardware signal line 493. channel 0 to 2 are in timer mode. Schematic
-- show zc/to of channel 0 connected to clk/trg of channel 1. This seems to be
-- unsued for that (Kick) game.
--
-- CPU programs 4 interuptions : (Vector D0)
--
-- IT ch 3 : triggered by line 493 : once per frame : start @00D8
-- set timer ch0 to launch interrupt around line 20
-- set timer ch1 to launch interrupt around line 240
--
-- IT ch 0 : triggered by timer ch 0 : once per frame : start @017E
-- stop timer 0
--
-- IT ch 1 : triggered by timer ch 1 : once per frame : start @0192
-- stop timer 1
--
-- IT ch 2 : trigged by timer ch 2 : once every ~105 scanlines : start @04E1
-- read angle decoder
--
-- Z80-CTC VHDL port keep separated interrupt controler and each counter so
-- one can use them on its own. Priority daisy-chain is not done (not used in
-- that game). clock polarity selection is not done since it has no meaning
-- with digital clock/enable (e.g cpu_ena signal) method.
--
-- Angle (spin) decoder : Original design is a simple Up/Down 4 bits counter.
-- Replacement is proposed in kick_de10_lite.vhd as a 10bits counter allowing
-- more stable speed. It make use of CTC zc_to channel 2 signal to avoid
-- aliasing problems. Despite speed selection (faster/slower) is available
-- from keyboard key it hardly simulate a real spinner.
--
-- Ressource : input clock 40MHz is chosen to allow easy making of 20MHz for
-- pixel clock and 8MHz signal for amplitude modulation circuit of ssio board
--
--
-- TODO :
-- Working ram could be initialized to set initial difficulty level and
-- initial bases (live) number. Otherwise one can set it up by using service
-- menu at each power up.
--
---------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;
entity solarfox is
port(
clock_40 : in std_logic;
reset : in std_logic;
tv15Khz_mode : in std_logic;
video_r : out std_logic_vector(3 downto 0);
video_g : out std_logic_vector(3 downto 0);
video_b : out std_logic_vector(3 downto 0);
video_clk : out std_logic;
video_csync : out std_logic;
video_blankn : out std_logic;
video_hs : out std_logic;
video_vs : out std_logic;
separate_audio : in std_logic;
audio_out_l : out std_logic_vector(15 downto 0);
audio_out_r : out std_logic_vector(15 downto 0);
coin1 : in std_logic;
coin2 : in std_logic;
fast1 : in std_logic;
fast2 : in std_logic;
fire1 : in std_logic;
fire2 : in std_logic;
up1 : in std_logic;
down1 : in std_logic;
left1 : in std_logic;
right1 : in std_logic;
up2 : in std_logic;
down2 : in std_logic;
left2 : in std_logic;
right2 : in std_logic;
service : in std_logic;
dbg_cpu_addr : out std_logic_vector(15 downto 0);
cpu_rom_addr : out std_logic_vector(14 downto 0);
cpu_rom_do : in std_logic_vector(7 downto 0);
snd_rom_addr : out std_logic_vector(13 downto 0);
snd_rom_do : in std_logic_vector(7 downto 0)
);
end solarfox;
architecture struct of solarfox is
signal reset_n : std_logic;
signal clock_vid : std_logic;
signal clock_vidn: std_logic;
signal clock_cnt : std_logic_vector(3 downto 0) := "0000";
signal hcnt : std_logic_vector(9 downto 0) := (others=>'0'); -- horizontal counter
signal vcnt : std_logic_vector(9 downto 0) := (others=>'0'); -- vertical counter
signal vflip : std_logic_vector(9 downto 0) := (others=>'0'); -- vertical counter flip
signal hs_cnt, vs_cnt :std_logic_vector(9 downto 0) ;
signal hsync0, hsync1, hsync2, hsync3, hsync4 : std_logic;
signal top_frame : std_logic := '0';
signal pix_ena : std_logic;
signal cpu_ena : std_logic;
signal cpu_addr : std_logic_vector(15 downto 0);
signal cpu_di : std_logic_vector( 7 downto 0);
signal cpu_do : std_logic_vector( 7 downto 0);
signal cpu_wr_n : std_logic;
signal cpu_rd_n : std_logic;
signal cpu_mreq_n : std_logic;
signal cpu_ioreq_n : std_logic;
signal cpu_irq_n : std_logic;
signal cpu_m1_n : std_logic;
signal cpu_int_ack_n : std_logic;
signal ctc_ce : std_logic;
signal ctc_do : std_logic_vector(7 downto 0);
signal ctc_counter_1_trg : std_logic;
signal ctc_counter_2_trg : std_logic;
signal ctc_counter_3_trg : std_logic;
-- signal cpu_rom_do : std_logic_vector( 7 downto 0);
signal wram_we : std_logic;
signal wram_do : std_logic_vector( 7 downto 0);
signal bg_ram_addr: std_logic_vector(9 downto 0);
signal bg_ram_we : std_logic;
signal bg_ram_cpu_access : std_logic;
signal bg_ram_do : std_logic_vector(7 downto 0);
signal bg_code_line : std_logic_vector(11 downto 0);
signal bg_graphx1_do : std_logic_vector(7 downto 0);
signal bg_graphx2_do : std_logic_vector(7 downto 0);
signal bg_vid : std_logic_vector(3 downto 0);
signal bg_palette_addr : std_logic_vector(3 downto 0);
signal sp_ram_cache_addr : std_logic_vector(8 downto 0);
signal sp_ram_cache_we : std_logic;
signal sp_ram_cache_cpu_access : std_logic;
signal sp_ram_cache_do : std_logic_vector(7 downto 0);
signal move_buf : std_logic;
signal sp_ram_addr : std_logic_vector(8 downto 0);
signal sp_ram_we : std_logic;
signal sp_ram_do : std_logic_vector(7 downto 0);
signal sp_cnt : std_logic_vector(6 downto 0);
signal sp_code : std_logic_vector( 7 downto 0);
signal sp_input_phase : std_logic_vector( 5 downto 0);
signal sp_done : std_logic;
signal sp_vcnt : std_logic_vector( 9 downto 0);
signal sp_line : std_logic_vector( 4 downto 0);
signal sp_hcnt : std_logic_vector( 8 downto 0); -- lsb used to mux rd/wr line buffer
signal sp_on_line : std_logic;
signal sp_on_line_r : std_logic;
signal sp_byte_cnt : std_logic_vector( 1 downto 0);
signal sp_code_line : std_logic_vector(12 downto 0);
signal sp_code_line_mux: std_logic_vector(14 downto 0);
signal sp_hflip : std_logic_vector( 1 downto 0);
signal sp_vflip : std_logic_vector( 4 downto 0);
signal sp_graphx_do : std_logic_vector( 7 downto 0);
signal sp_mux_roms : std_logic_vector( 1 downto 0);
signal sp_graphx_flip : std_logic_vector( 7 downto 0);
signal sp_buffer_ram1_addr : std_logic_vector(7 downto 0);
signal sp_buffer_ram1_we : std_logic;
signal sp_buffer_ram1_di : std_logic_vector(7 downto 0);
signal sp_buffer_ram1_do : std_logic_vector(7 downto 0);
signal sp_buffer_ram1_do_r : std_logic_vector(7 downto 0);
signal sp_buffer_ram2_addr : std_logic_vector(7 downto 0);
signal sp_buffer_ram2_we : std_logic;
signal sp_buffer_ram2_di : std_logic_vector(7 downto 0);
signal sp_buffer_ram2_do : std_logic_vector(7 downto 0);
signal sp_buffer_ram2_do_r : std_logic_vector(7 downto 0);
signal sp_buffer_sel : std_logic;
signal sp_vid : std_logic_vector(3 downto 0);
signal palette_addr : std_logic_vector(3 downto 0);
signal palette_F4_we : std_logic;
signal palette_F8_we : std_logic;
signal bg_palette_red_we : std_logic;
signal bg_palette_red_do : std_logic_vector(3 downto 0);
signal bg_palette_green_we : std_logic;
signal bg_palette_green_do : std_logic_vector(3 downto 0);
signal bg_palette_blue_we : std_logic;
signal bg_palette_blue_do : std_logic_vector(3 downto 0);
signal sp_palette_red_we : std_logic;
signal sp_palette_red_do : std_logic_vector(3 downto 0);
signal sp_palette_green_we : std_logic;
signal sp_palette_green_do : std_logic_vector(3 downto 0);
signal sp_palette_blue_we : std_logic;
signal sp_palette_blue_do : std_logic_vector(3 downto 0);
signal ssio_iowe : std_logic;
signal ssio_do : std_logic_vector(7 downto 0);
signal input_0 : std_logic_vector(7 downto 0);
signal input_1 : std_logic_vector(7 downto 0);
signal input_2 : std_logic_vector(7 downto 0);
signal input_3 : std_logic_vector(7 downto 0);
begin
clock_vid <= clock_40;
clock_vidn <= not clock_40;
reset_n <= not reset;
-- debug
process (reset, clock_vid)
begin
if rising_edge(clock_vid) and cpu_ena ='1' and cpu_mreq_n ='0' then
dbg_cpu_addr<= "000000000000000"&service; --cpu_addr;
end if;
end process;
-- make enables clock from clock_vid
process (clock_vid, reset)
begin
if reset='1' then
clock_cnt <= (others=>'0');
else
if rising_edge(clock_vid) then
if clock_cnt = "1111" then -- divide by 16
clock_cnt <= (others=>'0');
else
clock_cnt <= clock_cnt + 1;
end if;
end if;
end if;
end process;
--
cpu_ena <= '1' when clock_cnt = "1111" else '0'; -- (2.5MHz)
pix_ena <= '1' when (clock_cnt(1 downto 0) = "11" and tv15Khz_mode = '1') or -- (10MHz)
(clock_cnt(0) = '1' and tv15Khz_mode = '0') else '0'; -- (20MHz)
-----------------------------------
-- Video scanner 634x525 @20Mhz --
-- display 512x480 --
-----------------------------------
process (reset, clock_vid)
begin
if reset='1' then
hcnt <= (others=>'0');
vcnt <= (others=>'0');
top_frame <= '0';
else
if rising_edge(clock_vid) then
if pix_ena = '1' then
hcnt <= hcnt + 1;
if hcnt = 633 then
hcnt <= (others=>'0');
vcnt <= vcnt + 1;
if (vcnt = 524 and tv15Khz_mode = '0') or (vcnt = 263 and tv15Khz_mode = '1') then
vcnt <= (others=>'0');
top_frame <= not top_frame;
end if;
end if;
if tv15Khz_mode = '0' then
-- progessive mode
if vcnt = 490-1 then video_vs <= '0'; end if; -- front porch 10
if vcnt = 492-1 then video_vs <= '1'; end if; -- sync pulse 2
-- back porch 33
if hcnt = 512+13-8 then video_hs <= '0'; end if; -- front porch 16/25*20 = 13
if hcnt = 512+90-8 then video_hs <= '1'; end if; -- sync pulse 96/25*20 = 77
-- back porch 48/25*20 = 38
video_blankn <= '0';
if hcnt >= 2 and hcnt < 514 and
vcnt >= 2 and vcnt < 481 then video_blankn <= '1';end if;
else -- interlaced mode
if hcnt = 530 then
hs_cnt <= (others => '0');
if (vcnt = 242) then
vs_cnt <= (others => '0');
else
vs_cnt <= vs_cnt +1;
end if;
if vcnt = 240 then video_vs <= '0'; end if;
if vcnt = 242 then video_vs <= '1'; end if;
else
hs_cnt <= hs_cnt + 1;
end if;
video_blankn <= '0';
if hcnt >= 2 and hcnt < 514 and
vcnt >= 1 and vcnt < 241 then video_blankn <= '1';end if;
if hs_cnt = 0 then hsync0 <= '0'; video_hs <= '0';
elsif hs_cnt = 47 then hsync0 <= '1'; video_hs <= '1';
end if;
if hs_cnt = 0 then hsync1 <= '0';
elsif hs_cnt = 23 then hsync1 <= '1';
elsif hs_cnt = 317+ 0 then hsync1 <= '0';
elsif hs_cnt = 317+23 then hsync1 <= '1';
end if;
if hs_cnt = 0 then hsync2 <= '0';
elsif hs_cnt = 317-47 then hsync2 <= '1';
elsif hs_cnt = 317 then hsync2 <= '0';
elsif hs_cnt = 634-47 then hsync2 <= '1';
end if;
if hs_cnt = 0 then hsync3 <= '0';
elsif hs_cnt = 23 then hsync3 <= '1';
elsif hs_cnt = 317 then hsync3 <= '0';
elsif hs_cnt = 634-47 then hsync3 <= '1';
end if;
if hs_cnt = 0 then hsync4 <= '0';
elsif hs_cnt = 317-47 then hsync4 <= '1';
elsif hs_cnt = 317 then hsync4 <= '0';
elsif hs_cnt = 317+23 then hsync4 <= '1';
end if;
if vs_cnt = 1 then video_csync <= hsync1;
elsif vs_cnt = 2 then video_csync <= hsync1;
elsif vs_cnt = 3 then video_csync <= hsync1;
elsif vs_cnt = 4 and top_frame = '1' then video_csync <= hsync3;
elsif vs_cnt = 4 and top_frame = '0' then video_csync <= hsync1;
elsif vs_cnt = 5 then video_csync <= hsync2;
elsif vs_cnt = 6 then video_csync <= hsync2;
elsif vs_cnt = 7 and top_frame = '1' then video_csync <= hsync4;
elsif vs_cnt = 7 and top_frame = '0' then video_csync <= hsync2;
elsif vs_cnt = 8 then video_csync <= hsync1;
elsif vs_cnt = 9 then video_csync <= hsync1;
elsif vs_cnt = 10 then video_csync <= hsync1;
elsif vs_cnt = 11 then video_csync <= hsync0;
else video_csync <= hsync0;
end if;
end if;
end if;
end if;
end if;
end process;
--------------------
-- players inputs --
--------------------
-- '1' for test & tilt
input_0 <= not service & '1' & '1' & not fire1 & not fast2 & not fast1 & not coin2 & not coin1;
input_1 <= not up2 & not down2 & not left2 & not right2 & not up1 & not down1 & not left1 & not right1;
input_2 <= "1111111" & not fire2;
input_3 <= x"FF";
------------------------------------------
-- cpu data input with address decoding --
------------------------------------------
cpu_di <= cpu_rom_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) < X"7" else -- 0000-6FFF
wram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) = X"7" else -- 7000-7FFF
sp_ram_cache_do when cpu_mreq_n = '0' and cpu_addr(15 downto 9) = "1111000" else -- sprite ram 0xF000-0xF1FF
bg_ram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 10) = "111111" else -- video ram 0xFC00-0xFFFF
ctc_do when cpu_int_ack_n = '0' or ctc_ce = '1' else -- ctc (interrupt vector or counter data)
ssio_do when cpu_ioreq_n = '0' and cpu_addr(7 downto 4) = X"0" else
X"FF";
------------------------------------------------------------------------
-- Misc registers : ctc write enable / interrupt acknowledge
------------------------------------------------------------------------
cpu_int_ack_n <= cpu_ioreq_n or cpu_m1_n;
ctc_ce <= '1' when cpu_ioreq_n = '0' and cpu_addr(7 downto 4) = x"F" else '0';
ctc_counter_3_trg <= '1' when top_frame = '1' and ((vcnt = 246 and tv15Khz_mode = '1') or (vcnt = 493 and tv15Khz_mode = '0')) else '0';
------------------------------------------
-- write enable / ram access from CPU --
------------------------------------------
wram_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 12) = X"7" else '0';
sp_ram_cache_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 9) = "1111000" else '0';
bg_ram_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 10) = "111111" else '0';
sp_ram_cache_cpu_access <= '1' when cpu_mreq_n = '0' and (cpu_wr_n = '0' or cpu_rd_n = '0') and cpu_addr(15 downto 9) = "1111000" else '0';
bg_ram_cpu_access <= '1' when cpu_mreq_n = '0' and (cpu_wr_n = '0' or cpu_rd_n = '0') and cpu_addr(15 downto 10) = "111111" else '0';
ssio_iowe <= '1' when cpu_wr_n = '0' and cpu_ioreq_n = '0' else '0';
----------------------
--- sprite machine ---
----------------------
vflip <= (240-vcnt(8 downto 0)) & top_frame when tv15Khz_mode = '1' else 480-vcnt; -- apply mirror flip
sp_buffer_sel <= vflip(1) when tv15Khz_mode = '1' else vflip(0);
process (clock_vid)
begin
if rising_edge(clock_vid) then
if pix_ena = '1' then
if hcnt = 0 then
sp_cnt <= (others => '0');
sp_input_phase <= (others => '0');
sp_on_line <= '0';
sp_done <= '0';
end if;
if sp_done = '0' then
sp_input_phase <= sp_input_phase + 1 ;
sp_hcnt <= sp_hcnt + 1;
case sp_input_phase is
when "000000" =>
if sp_vcnt(8 downto 5) = x"F" then
sp_line <= sp_vcnt(4 downto 0);
else
sp_input_phase <= (others => '0');
sp_cnt <= sp_cnt + 1;
if sp_cnt = "1111111" then sp_done <= '1'; end if;
end if;
sp_byte_cnt <= (others => '0');
when "000001" =>
sp_code <= sp_ram_do;
when "000010" =>
sp_hcnt <= sp_ram_do & '0';
sp_on_line <= '1';
when "001001"|"010001"|"011001" =>
sp_byte_cnt <= sp_byte_cnt + 1;
when "100001" =>
sp_on_line <= '0';
sp_input_phase <= (others => '0');
sp_cnt <= sp_cnt + 1;
if sp_cnt = "1111111" then sp_done <= '1'; end if;
when others =>
null;
end case;
sp_mux_roms <= sp_input_phase(2 downto 1);
end if;
if hcnt(0) = '0' then
sp_buffer_ram1_do_r <= sp_buffer_ram1_do;
sp_buffer_ram2_do_r <= sp_buffer_ram2_do;
end if;
end if;
end if;
end process;
sp_ram_cache_addr <= cpu_addr(8 downto 0) when sp_ram_cache_cpu_access = '1' else sp_ram_addr;
move_buf <= '1' when (vcnt(8 downto 1) = 250 and tv15Khz_mode = '0') or (vcnt(7 downto 1) = 125 and tv15Khz_mode = '1') else '0'; -- line 500-501
sp_ram_addr <= vcnt(0) & hcnt(8 downto 1) when move_buf = '1' else sp_cnt & sp_input_phase(1 downto 0);
sp_ram_we <= hcnt(0) when move_buf = '1' else '0';
sp_vcnt <= vflip + (sp_ram_do & '0'); -- valid when sp_input_phase = 0
sp_hflip <= (others => sp_code(6));
sp_vflip <= (others => sp_code(7));
sp_code_line <= sp_code(5 downto 0) & (sp_line xor sp_vflip) & (sp_byte_cnt xor sp_hflip); -- sprite graphics roms addr
sp_code_line_mux <= "00" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "01") or
(sp_hflip(0) = '1' and sp_mux_roms = "00") else
"01" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "10") or
(sp_hflip(0) = '1' and sp_mux_roms = "11") else
"10" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "11") or
(sp_hflip(0) = '1' and sp_mux_roms = "10") else
"11" & sp_code_line;-- when (sp_hflip(0) = '0' and sp_mux_roms = "00") or
--(sp_hflip(0) = '1' and sp_mux_roms = "01") ;
sp_graphx_flip <= sp_graphx_do when sp_hflip(0) = '0' else
sp_graphx_do(3 downto 0) & sp_graphx_do(7 downto 4);
sp_buffer_ram1_di <= sp_buffer_ram1_do or sp_graphx_flip when sp_buffer_sel = '1' else "00000000";
sp_buffer_ram1_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '1' else hcnt(8 downto 1) - X"03";
sp_buffer_ram1_we <= not sp_hcnt(0) and sp_on_line and pix_ena when sp_buffer_sel = '1' else hcnt(0);
sp_buffer_ram2_di <= sp_buffer_ram2_do or sp_graphx_flip when sp_buffer_sel = '0' else "00000000";
sp_buffer_ram2_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '0' else hcnt(8 downto 1) - X"03";
sp_buffer_ram2_we <= not sp_hcnt(0) and sp_on_line and pix_ena when sp_buffer_sel = '0' else hcnt(0);
sp_vid <= sp_buffer_ram1_do_r(7 downto 4) when (sp_buffer_sel = '0') and (hcnt(0) = '1') else
sp_buffer_ram1_do_r(3 downto 0) when (sp_buffer_sel = '0') and (hcnt(0) = '0') else
sp_buffer_ram2_do_r(7 downto 4) when (sp_buffer_sel = '1') and (hcnt(0) = '1') else
sp_buffer_ram2_do_r(3 downto 0);-- when (sp_buffer_sel = '1') and (hcnt(0) = '0');
--------------------
--- char machine ---
--------------------
bg_ram_addr <= cpu_addr(9 downto 0) when bg_ram_cpu_access = '1' else vflip(8 downto 4) & hcnt(8 downto 4);
bg_code_line <= bg_ram_do & vflip(3 downto 1) & hcnt(3);
process (clock_vid)
begin
if rising_edge(clock_vid) then
if hcnt(0) = '1' then
case hcnt(2 downto 1) is
when "00" => bg_palette_addr <= bg_graphx2_do(7 downto 6) & bg_graphx1_do(7 downto 6);
when "01" => bg_palette_addr <= bg_graphx2_do(5 downto 4) & bg_graphx1_do(5 downto 4);
when "10" => bg_palette_addr <= bg_graphx2_do(3 downto 2) & bg_graphx1_do(3 downto 2);
when others => bg_palette_addr <= bg_graphx2_do(1 downto 0) & bg_graphx1_do(1 downto 0);
end case;
end if;
end if;
end process;
bg_vid <= bg_palette_addr;
---------------------------
-- mux char/sprite video --
---------------------------
palette_F4_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 8) = X"F4" else '0'; -- 0xF400-F4FF
palette_F8_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 8) = X"F8" else '0'; -- 0xF800-F8FF
palette_addr <= cpu_addr(3 downto 0) when (palette_F4_we = '1' or palette_F8_we = '1') else bg_vid when sp_vid = "0000" else sp_vid;
bg_palette_red_we <= '1' when palette_F8_we = '1' and cpu_addr(4) = '0' else '0'; -- 0xF800-0F d0-d3 (G11)
bg_palette_green_we <= '1' when palette_F4_we = '1' and cpu_addr(4) = '0' else '0'; -- 0xF400-0F d0-d3 ( G9)
bg_palette_blue_we <= '1' when palette_F4_we = '1' and cpu_addr(4) = '0' else '0'; -- 0xF400-0F d4-d7 (F11)
sp_palette_red_we <= '1' when palette_F8_we = '1' and cpu_addr(4) = '1' else '0'; -- 0xF810-1F d0-d3 (G10)
sp_palette_green_we <= '1' when palette_F4_we = '1' and cpu_addr(4) = '1' else '0'; -- 0xF410-1F d0-d3 ( G8)
sp_palette_blue_we <= '1' when palette_F4_we = '1' and cpu_addr(4) = '1' else '0'; -- 0xF410-1F d4-d7 (F10)
process (clock_vid)
begin
if rising_edge(clock_vid) then
if sp_vid = "0000" then
video_r <= bg_palette_red_do;
video_g <= bg_palette_green_do;
video_b <= bg_palette_blue_do;
else
video_r <= sp_palette_red_do;
video_g <= sp_palette_green_do;
video_b <= sp_palette_blue_do;
end if;
end if;
end process;
------------------------------
-- components & sound board --
------------------------------
-- microprocessor Z80
cpu : entity work.T80se
generic map(Mode => 0, T2Write => 1, IOWait => 1)
port map(
RESET_n => reset_n,
CLK_n => clock_vid,
CLKEN => cpu_ena,
WAIT_n => '1',
INT_n => cpu_irq_n,
NMI_n => '1', --cpu_nmi_n,
BUSRQ_n => '1',
M1_n => cpu_m1_n,
MREQ_n => cpu_mreq_n,
IORQ_n => cpu_ioreq_n,
RD_n => cpu_rd_n,
WR_n => cpu_wr_n,
RFSH_n => open,
HALT_n => open,
BUSAK_n => open,
A => cpu_addr,
DI => cpu_di,
DO => cpu_do
);
-- Z80-CTC (MK3882)
z80ctc : entity work.z80ctc_top
port map (
clock => clock_vid,
clock_ena => cpu_ena,
reset => reset,
din => cpu_do,
cpu_din => cpu_di,
dout => ctc_do,
ce_n => not ctc_ce,
cs => cpu_addr(1 downto 0),
m1_n => cpu_m1_n,
iorq_n => cpu_ioreq_n,
rd_n => cpu_rd_n,
int_n => cpu_irq_n,
trg0 => '0',
to0 => ctc_counter_1_trg,
trg1 => ctc_counter_1_trg,
to1 => open,
trg2 => '0',
to2 => open,
trg3 => ctc_counter_3_trg
);
-- cpu program ROM 0x0000-0x6FFF
--rom_cpu : entity work.solar_fox_cpu
--port map(
-- clk => clock_vidn,
-- addr => cpu_addr(14 downto 0),
-- data => cpu_rom_do
--);
cpu_rom_addr <= cpu_addr(14 downto 0);
-- working RAM 0x7000-0x77FF
wram : entity work.cmos_ram
generic map( dWidth => 8, aWidth => 11)
port map(
clk => clock_vidn,
we => wram_we,
addr => cpu_addr(10 downto 0),
d => cpu_do,
q => wram_do
);
-- video RAM 0xFC00-0xFFFF
video_ram : entity work.gen_ram
generic map( dWidth => 8, aWidth => 10)
port map(
clk => clock_vidn,
we => bg_ram_we,
addr => bg_ram_addr,
d => cpu_do,
q => bg_ram_do
);
-- sprite RAM (no cpu access)
sprite_ram : entity work.gen_ram
generic map( dWidth => 8, aWidth => 9)
port map(
clk => clock_vidn,
we => sp_ram_we,
addr => sp_ram_addr,
d => sp_ram_cache_do,
q => sp_ram_do
);
-- sprite RAM 0xF000-0xF1FF
sprites_ram_cache : entity work.gen_ram
generic map( dWidth => 8, aWidth => 9)
port map(
clk => clock_vidn,
we => sp_ram_cache_we,
addr => sp_ram_cache_addr,
d => cpu_do,
q => sp_ram_cache_do
);
-- sprite line buffer 1
sprlinebuf1 : entity work.gen_ram
generic map( dWidth => 8, aWidth => 8)
port map(
clk => clock_vidn,
we => sp_buffer_ram1_we,
addr => sp_buffer_ram1_addr,
d => sp_buffer_ram1_di,
q => sp_buffer_ram1_do
);
-- sprite line buffer 2
sprlinebuf2 : entity work.gen_ram
generic map( dWidth => 8, aWidth => 8)
port map(
clk => clock_vidn,
we => sp_buffer_ram2_we,
addr => sp_buffer_ram2_addr,
d => sp_buffer_ram2_di,
q => sp_buffer_ram2_do
);
-- background graphics ROM G4
bg_graphics_1 : entity work.sol_bg_bits_1
port map(
clk => clock_vidn,
addr => bg_code_line,
data => bg_graphx1_do
);
-- background graphics ROM G5
bg_graphics_2 : entity work.sol_bg_bits_2
port map(
clk => clock_vidn,
addr => bg_code_line,
data => bg_graphx2_do
);
-- sprite graphics ROM 1A/1B/1D/1E
sprite_graphics : entity work.sol_sp_bits
port map(
clk => clock_vidn,
addr => sp_code_line_mux,
data => sp_graphx_do
);
--kick_sound_board
sound_board : entity work.solarfox_sound_board
port map(
clock_40 => clock_40,
reset => reset,
main_cpu_addr => cpu_addr(7 downto 0),
ssio_iowe => ssio_iowe,
ssio_di => cpu_do,
ssio_do => ssio_do,
input_0 => input_0,
input_1 => input_1,
input_2 => input_2,
input_3 => input_3,
separate_audio => separate_audio,
audio_out_l => audio_out_l,
audio_out_r => audio_out_r,
cpu_rom_addr => snd_rom_addr,
cpu_rom_do => snd_rom_do,
dbg_cpu_addr => open --dbg_cpu_addr
);
-- background palette red
bg_palette_red : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => bg_palette_red_we,
addr => palette_addr,
d => cpu_do(3 downto 0),
q => bg_palette_red_do
);
-- background palette green
bg_palette_green : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => bg_palette_green_we,
addr => palette_addr,
d => cpu_do(3 downto 0),
q => bg_palette_green_do
);
-- background palette blue
bg_palette_blue : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => bg_palette_blue_we,
addr => palette_addr,
d => cpu_do(7 downto 4),
q => bg_palette_blue_do
);
-- sprite palette red
bg_sprite_red : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => sp_palette_red_we,
addr => palette_addr,
d => cpu_do(3 downto 0),
q => sp_palette_red_do
);
-- sprite palette green
bg_sprite_green : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => sp_palette_green_we,
addr => palette_addr,
d => cpu_do(3 downto 0),
q => sp_palette_green_do
);
-- sprite palette blue
bg_sprite_blue : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
port map(
clk => clock_vidn,
we => sp_palette_blue_we,
addr => palette_addr,
d => cpu_do(7 downto 4),
q => sp_palette_blue_do
);
end struct;

View File

@@ -1,546 +0,0 @@
---------------------------------------------------------------------------------
-- Kick_sound_board by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr
---------------------------------------------------------------------------------
-- gen_ram.vhd & io_ps2_keyboard
--------------------------------
-- Copyright 2005-2008 by Peter Wendrich (pwsoft@syntiac.com)
-- http://www.syntiac.com/fpga64.html
---------------------------------------------------------------------------------
-- T80/T80se - Version : 304
-----------------------------
-- Z80 compatible microprocessor core
-- Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
---------------------------------------------------------------------------------
-- YM2149 (AY-3-8910)
-- Copyright (c) MikeJ - Jan 2005
---------------------------------------------------------------------------------
-- Educational use only
-- Do not redistribute synthetized file with roms
-- Do not redistribute roms whatever the form
-- Use at your own risk
---------------------------------------------------------------------------------
--
-- SOUND : 1xZ80 @ 2.0MHz CPU accessing its program rom, working ram, 2x-AY3-8910
-- 8Kx8bits program rom
-- 1Kx8bits working ram
--
-- 1xAY-3-8910
-- 3 sound channels
--
-- 1xAY-3-8910
-- 3 sound channels
--
-- 6 sound modulation (required 8MHz signal => 40MHz/5)
-- 2 global volume control (not activated - not sure it was used for kick )
--
-- I/O :
-- 4x8bits command registers from main cpu board (IRAM)
-- 1x8bits status registers to main cpu board (STAT)
-- 5x8bits input buffers to main cpu board (IP0-IP5)
-- 2x8bits output registers from main cpu board (OP0/OP4)
--
---------------------------------------------------------------------------------
-- Schematics remarks :
-- Not sure global volume are used => both deactivated
-- Not sure if global channels are mixed together or not => allow for
-- external control mixed/separated
---------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.numeric_std.all;
entity solarfox_sound_board is
port(
clock_40 : in std_logic;
reset : in std_logic;
main_cpu_addr : in std_logic_vector(7 downto 0);
ssio_iowe : in std_logic;
ssio_di : in std_logic_vector(7 downto 0);
ssio_do : out std_logic_vector(7 downto 0);
input_0 : in std_logic_vector(7 downto 0);
input_1 : in std_logic_vector(7 downto 0);
input_2 : in std_logic_vector(7 downto 0);
input_3 : in std_logic_vector(7 downto 0);
separate_audio : in std_logic;
cpu_rom_addr : out std_logic_vector(13 downto 0);
cpu_rom_do : in std_logic_vector(7 downto 0);
cpu_rom_rd : out std_logic;
audio_out_l : out std_logic_vector(15 downto 0);
audio_out_r : out std_logic_vector(15 downto 0);
dbg_cpu_addr : out std_logic_vector(15 downto 0)
);
end solarfox_sound_board;
architecture struct of solarfox_sound_board is
signal reset_n : std_logic;
signal clock_snd : std_logic;
signal clock_sndn: std_logic;
signal clock_cnt1 : std_logic_vector(4 downto 0) := "00000";
signal cpu_ena : std_logic;
signal ena_4Mhz : std_logic;
signal clk_8Mhz : std_logic;
signal cpu_addr : std_logic_vector(15 downto 0);
signal cpu_di : std_logic_vector( 7 downto 0);
signal cpu_do : std_logic_vector( 7 downto 0);
signal cpu_wr_n : std_logic;
signal cpu_rd_n : std_logic;
signal cpu_mreq_n : std_logic;
signal cpu_ioreq_n : std_logic;
signal cpu_irq_n : std_logic;
signal cpu_m1_n : std_logic;
signal wram_we : std_logic;
signal wram_do : std_logic_vector( 7 downto 0);
signal iram_0_do : std_logic_vector( 7 downto 0);
signal iram_1_do : std_logic_vector( 7 downto 0);
signal iram_2_do : std_logic_vector( 7 downto 0);
signal iram_3_do : std_logic_vector( 7 downto 0);
signal ssio_status : std_logic_vector( 7 downto 0);
signal div_E11 : std_logic_vector(2 downto 0); -- binary counter 3msb of E11 - 74161
signal div_D11 : std_logic_vector(3 downto 0); -- decade counter - D11 - 74160
signal div_C12 : std_logic_vector(6 downto 0); -- stage ripple counter - C12 - MC140247
signal clr_int : std_logic;
signal ay1_audio_chan : std_logic_vector( 1 downto 0);
signal ay1_audio_muxed: std_logic_vector( 7 downto 0);
signal ay1_bc1 : std_logic;
signal ay1_bdir : std_logic;
signal ay1_do : std_logic_vector( 7 downto 0);
signal ay1_cs : std_logic;
signal ay1_port_a : std_logic_vector( 7 downto 0);
signal ay1_port_b : std_logic_vector( 7 downto 0);
signal ay2_audio_chan : std_logic_vector( 1 downto 0);
signal ay2_audio_muxed: std_logic_vector( 7 downto 0);
signal ay2_bc1 : std_logic;
signal ay2_bdir : std_logic;
signal ay2_do : std_logic_vector( 7 downto 0);
signal ay2_cs : std_logic;
signal ay2_port_a : std_logic_vector( 7 downto 0);
signal ay2_port_b : std_logic_vector( 7 downto 0);
signal ssio_82s123_addr : std_logic_vector(4 downto 0);
signal ssio_82s123_do : std_logic_vector(7 downto 0);
signal ssio_modulation_clock : std_logic;
signal ssio_modulation_clock_r : std_logic;
signal ssio_modulation_load : std_logic;
signal modulation_counter_a1 : std_logic_vector(3 downto 0);
signal modulation_counter_b1 : std_logic_vector(3 downto 0);
signal modulation_counter_c1 : std_logic_vector(3 downto 0);
signal modulation_counter_a2 : std_logic_vector(3 downto 0);
signal modulation_counter_b2 : std_logic_vector(3 downto 0);
signal modulation_counter_c2 : std_logic_vector(3 downto 0);
signal ch_a1 : std_logic_vector(7 downto 0);
signal ch_b1 : std_logic_vector(7 downto 0);
signal ch_c1 : std_logic_vector(7 downto 0);
signal ch_a2 : std_logic_vector(7 downto 0);
signal ch_b2 : std_logic_vector(7 downto 0);
signal ch_c2 : std_logic_vector(7 downto 0);
-- K volume data : 148 138 127 112 95 72 42 0
type bytes_array is array(0 to 7) of std_logic_vector(7 downto 0);
signal K_volume : bytes_array := (X"94",X"8A",X"7F",X"70",X"5F",X"48",X"2A",X"00");
signal volume_ch1 : std_logic_vector(7 downto 0);
signal volume_ch2 : std_logic_vector(7 downto 0);
signal snd_1 : std_logic_vector(17 downto 0);
signal snd_2 : std_logic_vector(17 downto 0);
signal snd_mono : std_logic_vector(18 downto 0);
begin
clock_snd <= clock_40;
clock_sndn <= not clock_40;
reset_n <= not reset;
-- debug
process (reset, clock_snd)
begin
if rising_edge(clock_snd) and cpu_ena ='1' and cpu_mreq_n ='0' then
dbg_cpu_addr <= cpu_addr;
end if;
end process;
-- make enables clock from clock_snd
process (clock_snd, reset)
begin
if reset='1' then
clock_cnt1 <= (others=>'0');
clk_8Mhz <= '0';
else
if rising_edge(clock_snd) then
if clock_cnt1 = "10011" then -- divide by 20
clock_cnt1 <= (others=>'0');
else
clock_cnt1 <= clock_cnt1 + 1;
end if;
if clock_cnt1 = "10011" or
clock_cnt1 = "00100" or
clock_cnt1 = "01001" or
clock_cnt1 = "01110" then
clk_8Mhz <= not clk_8Mhz; -- (50% duty cycle)
end if;
end if;
end if;
end process;
--
cpu_ena <= '1' when clock_cnt1 = "00000" else '0'; -- (2.0MHz)
ena_4Mhz <= '1' when clock_cnt1 = "00000" or
clock_cnt1 = "01010" else '0'; -- (4.0MHz)
------------------------------------------
-- cpu data input with address decoding --
------------------------------------------
cpu_di <= cpu_rom_do when cpu_mreq_n = '0' and cpu_addr(15 downto 14) = "00" else -- 0x0000-0x3FFF
wram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) = X"8" else -- 0x8000-0x83FF
iram_0_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9000" else
iram_1_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9001" else
iram_2_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9002" else
iram_3_do when cpu_mreq_n = '0' and cpu_addr(15 downto 0)= X"9003" else
ay1_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"A" else
ay2_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"B" else
x"FF" when cpu_mreq_n = '0' and cpu_addr(15 downto 12)= X"F" else -- 0xF000 (sw3 dip - D14)
X"FF";
------------------------------------------
-- write enable to working ram from CPU --
------------------------------------------
wram_we <= '1' when cpu_mreq_n = '0' and cpu_wr_n = '0' and cpu_addr(15 downto 12) = X"8" else '0'; -- 0x8000-0x83FF
clr_int <= '1' when cpu_mreq_n = '0' and cpu_rd_n = '0' and cpu_addr(15 downto 12) = X"E" else '0'; -- 0xE000-0xEFFF
ay1_cs <= '1' when cpu_mreq_n = '0' and (cpu_rd_n = '0' or cpu_wr_n = '0') and cpu_addr(15 downto 12) = X"A" else '0'; -- 0xA000-0xAFFF
ay2_cs <= '1' when cpu_mreq_n = '0' and (cpu_rd_n = '0' or cpu_wr_n = '0') and cpu_addr(15 downto 12) = X"B" else '0'; -- 0xB000-0xBFFF
ay1_bdir <= not (not ay1_cs or cpu_addr(0) );
ay1_bc1 <= not (not ay1_cs or cpu_addr(1) );
ay2_bdir <= not (not ay2_cs or cpu_addr(0) );
ay2_bc1 <= not (not ay2_cs or cpu_addr(1) );
ssio_do <= input_0 when main_cpu_addr = X"00" else -- Input 0 -- players, coins, ...
input_1 when main_cpu_addr = X"01" else -- Input 1 -- angle decoder
input_2 when main_cpu_addr = X"02" else -- Input 2
input_3 when main_cpu_addr = X"03" else -- Input 3 -- sw1 dip
x"FF" when main_cpu_addr = X"04" else -- Input 4 -- sw2 dip
ssio_status when main_cpu_addr = X"07" else -- ssio status
x"FF";
process (clock_snd)
begin
if rising_edge(clock_snd) then
if cpu_wr_n = '0' and cpu_addr(15 downto 12) = X"C" then ssio_status <= cpu_do; end if; -- 0xC000-0xCFFF
end if;
end process;
------------------------------------------------------------------------
-- Misc registers : interrupt, counters E11/D11/C12
------------------------------------------------------------------------
process (clock_snd, reset, clr_int, ena_4Mhz)
begin
if reset = '1' then
div_E11 <= (others => '0'); -- 3msb of E11
div_D11 <= (others => '0'); -- decade counter
div_C12 <= (others => '0'); -- MC14024
else
if rising_edge(clock_snd) then
if ena_4Mhz = '1' then
div_E11 <= div_E11 + 1;
if div_E11 = "111" then
if div_D11 = "1001" then
div_D11 <= (others => '0');
else
div_D11 <= div_D11 + 1;
end if;
if div_D11 = "0100" then
div_C12 <= div_C12 + 1;
end if;
end if;
end if;
if clr_int = '1' then
div_C12 <= (others => '0');
end if;
end if;
end if;
end process;
cpu_irq_n <= not div_C12(6);
-------------------------------
-- sound modulation / volume --
-------------------------------
ssio_82s123_addr <= div_D11 & div_E11(2);
--74166 8 bits shift register (D13)
ssio_modulation_clock <= ssio_82s123_do(7-to_integer(unsigned(div_E11(1 downto 0) & clk_8Mhz)));
ssio_modulation_load <= '1' when div_D11 = "1001" else '0';
-- AY-3-8910 #1
-- ch A (pin 4) modulated by counter controled by port A3-0 (pin 18->21)
-- ch B (pin 3) modulated by counter controled by port A7-4 (pin 14->17)
-- ch C (pin 38) modulated by counter controled by port B3-0 (pin 10->13)
-- mute left and right port B7 (pin 6)
-- volume#1 contoled by port B6-4 (pin 7->9)
-- AY-3-8910 #2
-- ch A (pin 4) modulated by counter controled by port A3-0 (pin 18->21)
-- ch B (pin 3) modulated by counter controled by port A7-4 (pin 14->17)
-- ch C (pin 38) modulated by counter controled by port B3-0 (pin 10->13)
-- mute global port B7 (pin 6)
-- volume#2 contoled by port B6-4 (pin 7->9)
-- 4051 cmos mux (D5 and E3)
-- CBA
-- 000 => switch X0 (pin 13) ON others OFF
-- 001 => switch X1 (pin 14) ON others OFF
-- ...
-- 111 => switch X7 (pin 4) ON others OFF
-- Assuming R179 to R187 equivalent to
--
-- --------
-- --------| R2 |-------- -- with R1 = 24k + n*4.7k
-- ^ | -------- | ^ -- R2 = 24k
-- | --- --- | -- R3 = (7-n)*4.7
-- | | | | | | --
-- Vin | | | R1 R3 | | | Vout -- n being 4051 CBA value
-- | | | | | | --
-- | --- --- | -- which gives
-- | | | | -- Vout = Vin * (7-n)*4.7/(24+(7-n)*4.7)
-- ------------------------
--
-- let : Vout = Vin * K(n) = Vin * (7-n)*4.7/(24+(7-n)*4.7) * 256
--
-- with K(n) = [148 138 127 112 95 72 42 0]
--
process (clock_snd, ssio_modulation_clock, ssio_modulation_load)
begin
if rising_edge(clock_snd) then
ssio_modulation_clock_r <= ssio_modulation_clock;
if ssio_modulation_load = '1' then
modulation_counter_a1 <= ay1_port_a(3 downto 0);
modulation_counter_b1 <= ay1_port_a(7 downto 4);
modulation_counter_c1 <= ay1_port_b(3 downto 0);
modulation_counter_a2 <= ay2_port_a(3 downto 0);
modulation_counter_b2 <= ay2_port_a(7 downto 4);
modulation_counter_c2 <= ay2_port_b(3 downto 0);
else
if ssio_modulation_clock = '1' and ssio_modulation_clock_r = '0' then
if modulation_counter_a1 > X"0" then modulation_counter_a1 <= modulation_counter_a1 - 1; end if;
if modulation_counter_b1 > X"0" then modulation_counter_b1 <= modulation_counter_b1 - 1; end if;
if modulation_counter_c1 > X"0" then modulation_counter_c1 <= modulation_counter_c1 - 1; end if;
if modulation_counter_a2 > X"0" then modulation_counter_a2 <= modulation_counter_a2 - 1; end if;
if modulation_counter_b2 > X"0" then modulation_counter_b2 <= modulation_counter_b2 - 1; end if;
if modulation_counter_c2 > X"0" then modulation_counter_c2 <= modulation_counter_c2 - 1; end if;
end if;
end if;
case ay1_audio_chan is
when "00" => if modulation_counter_a1 = x"0" then ch_a1 <= ay1_audio_muxed; else ch_a1 <= (others => '0'); end if;
when "01" => if modulation_counter_b1 = x"0" then ch_b1 <= ay1_audio_muxed; else ch_b1 <= (others => '0'); end if;
when "10" => if modulation_counter_c1 = x"0" then ch_c1 <= ay1_audio_muxed; else ch_c1 <= (others => '0'); end if;
when others => null;
end case;
case ay2_audio_chan is
when "00" => if modulation_counter_a2 = x"0" then ch_a2 <= ay2_audio_muxed; else ch_a2 <= (others => '0'); end if;
when "01" => if modulation_counter_b2 = x"0" then ch_b2 <= ay2_audio_muxed; else ch_b2 <= (others => '0'); end if;
when "10" => if modulation_counter_c2 = x"0" then ch_c2 <= ay2_audio_muxed; else ch_c2 <= (others => '0'); end if;
when others => null;
end case;
-- volume_ch1 <= K_volume(to_integer(unsigned(ay1_port_b(6 downto 4))));
---- volume_ch2 <= K_volume(to_integer(unsigned(ay2_port_b(6 downto 4))));
-- volume_ch2 <= K_volume(to_integer(unsigned(ay1_port_b(6 downto 4)))); -- use ch1 control otherwise ch2 is always OFF!
volume_ch1 <= X"FF"; -- finaly don't use volume controls
volume_ch2 <= X"FF";
if ay1_audio_chan = "00" then
snd_1 <= (("00"&ch_a1) + ("00"&ch_b1) + ("00"&ch_c1)) * volume_ch1;
end if;
if ay2_audio_chan = "00" then
snd_2 <= (("00"&ch_a2) + ("00"&ch_b2) + ("00"&ch_c2)) * volume_ch2;
end if;
end if;
end process;
snd_mono <= ('0'&snd_1) + ('0'&snd_2);
audio_out_l <= snd_1(17 downto 2) when separate_audio = '1' else snd_mono(18 downto 3);
audio_out_r <= snd_2(17 downto 2) when separate_audio = '1' else snd_mono(18 downto 3);
------------------------------
-- components & sound board --
------------------------------
-- microprocessor Z80
cpu : entity work.T80se
generic map(Mode => 0, T2Write => 1, IOWait => 1)
port map(
RESET_n => reset_n,
CLK_n => clock_snd,
CLKEN => cpu_ena,
WAIT_n => '1',
INT_n => cpu_irq_n,
NMI_n => '1', --cpu_nmi_n,
BUSRQ_n => '1',
M1_n => cpu_m1_n,
MREQ_n => cpu_mreq_n,
IORQ_n => cpu_ioreq_n,
RD_n => cpu_rd_n,
WR_n => cpu_wr_n,
RFSH_n => open,
HALT_n => open,
BUSAK_n => open,
A => cpu_addr,
DI => cpu_di,
DO => cpu_do
);
-- cpu program ROM 0x0000-0x3FFF
cpu_rom_addr <= cpu_addr(13 downto 0);
cpu_rom_rd <= '1' when cpu_mreq_n = '0' and cpu_rd_n = '0' and cpu_addr(15 downto 14) = "00" else '0'; -- 0x0000-0x3FFF
-- working RAM 0x8000-0x83FF
wram : entity work.gen_ram
generic map( dWidth => 8, aWidth => 10)
port map(
clk => clock_sndn,
we => wram_we,
addr => cpu_addr(9 downto 0),
d => cpu_do,
q => wram_do
);
-- iram (command from main cpu to sound cpu)
process (clock_snd, reset, ssio_iowe)
begin
if reset = '1' then
iram_0_do <= (others => '0');
iram_1_do <= (others => '0');
iram_2_do <= (others => '0');
iram_3_do <= (others => '0');
else
if rising_edge(clock_snd) then
if ssio_iowe = '1' and main_cpu_addr(7 downto 2) = "000111" then -- 0x1C - 0x1F
case main_cpu_addr(1 downto 0) is
when "00" => iram_0_do <= ssio_di;
when "01" => iram_1_do <= ssio_di;
when "10" => iram_2_do <= ssio_di;
when "11" => iram_3_do <= ssio_di;
when others => null;
end case;
end if;
end if;
end if;
end process;
-- AY-3-8910 # 1
ay_3_8910_1 : entity work.YM2149
port map(
-- data bus
I_DA => cpu_do, -- in std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA => ay1_do, -- out std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA_OE_L => open, -- out std_logic;
-- control
I_A9_L => '0', -- in std_logic; -- pin 24
I_A8 => '1', -- in std_logic; -- pin 25
I_BDIR => ay1_bdir, -- in std_logic; -- pin 27
I_BC2 => '1', -- in std_logic; -- pin 28
I_BC1 => ay1_bc1, -- in std_logic; -- pin 29
I_SEL_L => '0', -- in std_logic;
O_AUDIO => ay1_audio_muxed, -- out std_logic_vector(7 downto 0);
O_CHAN => ay1_audio_chan, -- out std_logic_vector(1 downto 0);
-- port a
I_IOA => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA => ay1_port_a, -- out std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA_OE_L => open, -- out std_logic;
-- port b
I_IOB => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB => ay1_port_b, -- out std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB_OE_L => open, -- out std_logic;
ENA => cpu_ena, -- in std_logic; -- clock enable for higher speed operation
RESET_L => reset_n, -- in std_logic;
CLK => clock_snd -- in std_logic -- note 6 Mhz
);
-- AY-3-8910 # 2
ay_3_8910_2 : entity work.YM2149
port map(
-- data bus
I_DA => cpu_do, -- in std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA => ay2_do, -- out std_logic_vector(7 downto 0); -- pin 37 to 30
O_DA_OE_L => open, -- out std_logic;
-- control
I_A9_L => '0', -- in std_logic; -- pin 24
I_A8 => '1', -- in std_logic; -- pin 25
I_BDIR => ay2_bdir, -- in std_logic; -- pin 27
I_BC2 => '1', -- in std_logic; -- pin 28
I_BC1 => ay2_bc1, -- in std_logic; -- pin 29
I_SEL_L => '0', -- in std_logic;
O_AUDIO => ay2_audio_muxed, -- out std_logic_vector(7 downto 0);
O_CHAN => ay2_audio_chan, -- out std_logic_vector(1 downto 0);
-- port a
I_IOA => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA => ay2_port_a, -- out std_logic_vector(7 downto 0); -- pin 21 to 14
O_IOA_OE_L => open, -- out std_logic;
-- port b
I_IOB => (others => '0'), -- in std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB => ay2_port_b, -- out std_logic_vector(7 downto 0); -- pin 13 to 6
O_IOB_OE_L => open, -- out std_logic;
ENA => cpu_ena, -- in std_logic; -- clock enable for higher speed operation
RESET_L => reset_n, -- in std_logic;
CLK => clock_snd -- in std_logic -- note 6 Mhz
);
-- midway ssio sound modulation prom
midssio : entity work.midssio_82s123
port map(
clk => clock_sndn,
addr => ssio_82s123_addr,
data => ssio_82s123_do
);
end struct;

View File

@@ -28,4 +28,4 @@ DATE = "04:04:47 October 16, 2017"
# Revisions
PROJECT_REVISION = "Kickman"
PROJECT_REVISION = "mcr1"

View File

@@ -25,7 +25,7 @@
# Notes:
#
# 1) The default values for assignments are stored in the file:
# Kickman_assignment_defaults.qdf
# mcr1_assignment_defaults.qdf
# If this file doesn't exist, see file:
# assignment_defaults.qdf
#
@@ -41,7 +41,7 @@
# ========================
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name NUM_PARALLEL_PROCESSORS ALL
set_global_assignment -name LAST_QUARTUS_VERSION 13.1
set_global_assignment -name LAST_QUARTUS_VERSION "13.1 SP4.26"
set_global_assignment -name PRE_FLOW_SCRIPT_FILE "quartus_sh:rtl/build_id.tcl"
# Pin & Location Assignments
@@ -158,7 +158,7 @@ set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
# Analysis & Synthesis Assignments
# ================================
set_global_assignment -name FAMILY "Cyclone III"
set_global_assignment -name TOP_LEVEL_ENTITY Kickman_MiST
set_global_assignment -name TOP_LEVEL_ENTITY MCR1_MiST
set_global_assignment -name DEVICE_FILTER_PIN_COUNT 144
set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 8
set_global_assignment -name DEVICE_FILTER_PACKAGE TQFP
@@ -197,7 +197,7 @@ set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -
set_global_assignment -name OUTPUT_IO_TIMING_FAR_END_VMEAS "HALF SIGNAL SWING" -fall
# --------------------------
# start ENTITY(Kickman_MiST)
# start ENTITY(MCR1_MiST)
# start DESIGN_PARTITION(Top)
# ---------------------------
@@ -211,21 +211,22 @@ set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
# end DESIGN_PARTITION(Top)
# -------------------------
# end ENTITY(Kickman_MiST)
# end ENTITY(MCR1_MiST)
# ------------------------
set_global_assignment -name SYSTEMVERILOG_FILE rtl/Kickman_MiST.sv
set_global_assignment -name ENABLE_SIGNALTAP OFF
set_global_assignment -name USE_SIGNALTAP_FILE output_files/hopper.stp
set_global_assignment -name SYSTEMVERILOG_FILE rtl/MCR1_MiST.sv
set_global_assignment -name VHDL_FILE rtl/kick.vhd
set_global_assignment -name VHDL_FILE rtl/kick_sound_board.vhd
set_global_assignment -name VHDL_FILE rtl/gen_ram.vhd
set_global_assignment -name VHDL_FILE rtl/dpram.vhd
set_global_assignment -name VHDL_FILE rtl/spinner.vhd
set_global_assignment -name VHDL_FILE rtl/rom/midssio_82s123.vhd
set_global_assignment -name VHDL_FILE rtl/rom/kick_sp_bits.vhd
set_global_assignment -name VHDL_FILE rtl/rom/kick_bg_bits_2.vhd
set_global_assignment -name VHDL_FILE rtl/rom/kick_bg_bits_1.vhd
set_global_assignment -name VHDL_FILE rtl/cmos_ram.vhd
set_global_assignment -name VHDL_FILE rtl/YM2149_linmix_sep.vhd
set_global_assignment -name SYSTEMVERILOG_FILE rtl/sdram.sv
set_global_assignment -name VHDL_FILE rtl/pll_mist.vhd
set_global_assignment -name QIP_FILE ../../../common/IO/Z80CTC/z80ctc.qip
set_global_assignment -name QIP_FILE ../../../common/CPU/T80/T80.qip
set_global_assignment -name QIP_FILE ../../../common/mist/mist.qip
set_global_assignment -name QIP_FILE ../../common/IO/Z80CTC/z80ctc.qip
set_global_assignment -name QIP_FILE ../../common/CPU/T80/T80.qip
set_global_assignment -name QIP_FILE ../../common/mist/mist.qip
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top

View File

@@ -0,0 +1,42 @@
<misterromdescription>
<name>Draw Poker</name>
<mameversion>0216</mameversion>
<mratimestamp>201912310000</mratimestamp>
<year>1980</year>
<manufacturer>Bally Midway</manufacturer>
<category>Action</category>
<rbf>MCR1</rbf>
<setname>dpoker</setname>
<switches>
<dip bits="7" name="Lamps" ids="Off,On"/>
<dip bits="8" name="Music" ids="On,Off"/>
<dip bits="9" name="Novelty" ids="On,Off"/>
<dip bits="10" name="Cards after 5th" ids="Face Up,Logo Up"/>
<dip bits="11" name="Currency" ids="Ike Dollars,Other"/>
<dip bits="12" name="Background" ids="Green,Blue"/>
</switches>
<rom index="1"><part>2</part></rom>
<rom index="0" zip="dpoker.zip" md5="c7de5d92f544a11393d0d0d5d8386347" type="merged|nonmerged">
<part name="vppp.b3"/>
<part name="vppp.b4"/>
<part name="vppp.b5"/>
<part name="vppp.d4"/>
<part name="vppp.d5"/>
<part name="vppp.d6"/>
<part name="vppp.d7"/>
<part repeat="0x1000">FF</part>
<part name="vssp.a7"/>
<part name="vssp.a8"/>
<part repeat="0x2000">FF</part>
<part name="vpfg.e1"/>
<part name="vpfg.d1"/>
<part name="vpfg.b1"/>
<part name="vpfg.a1"/>
<part name="vpbg.g4"/>
<part name="vpbg.g5"/>
</rom>
</misterromdescription>

View File

@@ -0,0 +1,37 @@
<misterromdescription>
<name>Kick-Man</name>
<mameversion>0216</mameversion>
<mratimestamp>201912310000</mratimestamp>
<year>1980</year>
<manufacturer>Bally Midway</manufacturer>
<category>Action</category>
<rbf>MCR1</rbf>
<setname>kickman</setname>
<switches>
<dip bits="7" name="Music" ids="On,Off"/>
</switches>
<rom index="1"><part>0</part></rom>
<rom index="0" zip="kick.zip|kickman.zip" md5="909ce97f04e248d8f24fd971ee3fc7a4" type="merged|nonmerged">
<part crc="d8cd9f0f" name="1200-a-ur.b3"/>
<part crc="4dee27bb" name="1300-b-ur.b4"/>
<part crc="06f070c9" name="1400-c-ur.b5"/>
<part crc="8d95b740" name="1500-d-ur.d4"/>
<part crc="f24bc0d7" name="1600-e-ur.d5"/>
<part crc="672361fc" name="1700-f-ur.d6"/>
<part repeat="0x2000">FF</part>
<part crc="9e35c02e" name="4200-a.a7"/>
<part crc="ca2b7c28" name="4300-b.a8"/>
<part crc="d1901551" name="4400-c.a9"/>
<part crc="d36ddcdc" name="4500-d.a10"/>
<part crc="2c5d6b55" name="2600a-v2.1e"/>
<part crc="565ea97d" name="2700b-v2.1d"/>
<part crc="f3be56a1" name="2800c-v2.1b"/>
<part crc="77da795e" name="2900d-v2.1a"/>
<part crc="b4d120f3" name="1800g-v2.g4"/>
<part crc="c3ba4893" name="1900h-v2.g5"/>
</rom>
</misterromdescription>

View File

@@ -0,0 +1,37 @@
<misterromdescription>
<name>Kick</name>
<mameversion>0216</mameversion>
<mratimestamp>201912310000</mratimestamp>
<year>1980</year>
<manufacturer>Bally Midway</manufacturer>
<category>Action</category>
<rbf>MCR1</rbf>
<setname>kick</setname>
<switches>
<dip bits="7" name="Music" ids="On,Off"/>
</switches>
<rom index="1"><part>0</part></rom>
<rom index="0" zip="kick.zip" md5="9838142bb7d69715cb4329c26dafec5b" type="merged|nonmerged">
<part crc="65924917" name="1200a-v2.b3"/>
<part crc="27929f52" name="1300b-v2.b4"/>
<part crc="69107ce6" name="1400c-v2.b5"/>
<part crc="04a23aa1" name="1500d-v2.d4"/>
<part crc="1d2834c0" name="1600e-v2.d5"/>
<part crc="ddf84ce1" name="1700f-v2.d6"/>
<part repeat="0x2000">FF</part>
<part crc="9e35c02e" name="4200-a.a7"/>
<part crc="ca2b7c28" name="4300-b.a8"/>
<part crc="d1901551" name="4400-c.a9"/>
<part crc="d36ddcdc" name="4500-d.a10"/>
<part crc="2c5d6b55" name="2600a-v2.1e"/>
<part crc="565ea97d" name="2700b-v2.1d"/>
<part crc="f3be56a1" name="2800c-v2.1b"/>
<part crc="77da795e" name="2900d-v2.1a"/>
<part crc="b4d120f3" name="1800g-v2.g4"/>
<part crc="c3ba4893" name="1900h-v2.g5"/>
</rom>
</misterromdescription>

View File

@@ -0,0 +1,41 @@
<misterromdescription>
<name>Solar Fox</name>
<mameversion>0216</mameversion>
<mratimestamp>201912310000</mratimestamp>
<year>1980</year>
<manufacturer>Bally Midway</manufacturer>
<category>Action</category>
<rbf>MCR1</rbf>
<setname>solarfox</setname>
<switches>
<dip bits="7,8" name="Bonus After" ids="20 racks,10 racks,None" values="1,3,2"/>
<dip bits="9" name="Demo Sounds" ids="Off,On"/>
</switches>
<rom index="1">
<part>1</part>
</rom>
<rom index="0" zip="solarfox.zip" md5="f374d8f8db16489ae75c1bb0ecf9396a" type="merged|nonmerged">
<part crc="8c40f6eb" name="sfcpu.3b"/>
<part crc="4d47bd7e" name="sfcpu.4b"/>
<part crc="b52c3bd5" name="sfcpu.5b"/>
<part crc="bd5d25ba" name="sfcpu.4d"/>
<part crc="dd57d817" name="sfcpu.5d"/>
<part crc="bd993cd9" name="sfcpu.6d"/>
<part crc="8ad8731d" name="sfcpu.7d"/>
<part repeat="0x1000">FF</part>
<part crc="cdecf83a" name="sfsnd.7a"/>
<part crc="cb7788cb" name="sfsnd.8a"/>
<part crc="304896ce" name="sfsnd.9a"/>
<part repeat="0x1000">FF</part>
<part crc="9d9b5d7e" name="sfvid.1a"/>
<part crc="78801e83" name="sfvid.1b"/>
<part crc="4d8445cf" name="sfvid.1d"/>
<part crc="3da25495" name="sfvid.1e"/>
<part crc="ba019a60" name="sfcpu.4g"/>
<part crc="7ff0364e" name="sfcpu.5g"/>
</rom>
</misterromdescription>

View File

@@ -1,5 +1,6 @@
//============================================================================
// Arcade: Kickman by DarFPGA
// Arcade: MCR1 for MiST top-level
// Using Kickman by DarFPGA
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
@@ -16,15 +17,15 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//============================================================================
module Kickman_MiST(
output LED,
module MCR1_MiST(
output LED,
output [5:0] VGA_R,
output [5:0] VGA_G,
output [5:0] VGA_B,
output VGA_HS,
output VGA_VS,
output AUDIO_L,
output AUDIO_R,
output AUDIO_R,
input SPI_SCK,
output SPI_DO,
input SPI_DI,
@@ -47,10 +48,14 @@ module Kickman_MiST(
`include "rtl/build_id.v"
`define CORE_NAME "KICKMAN"
wire [6:0] core_mod;
localparam CONF_STR = {
"KICKMAN;;",
`CORE_NAME,";;",
"O2,Rotate Controls,Off,On;",
"O5,Blend,Off,On;",
"DIP;",
"O6,Service,Off,On;",
"T0,Reset;",
"V,v1.1.",`BUILD_DATE
@@ -60,6 +65,51 @@ wire rotate = status[2];
wire blend = status[5];
wire service = status[6];
reg [7:0] input_0;
reg [7:0] input_1;
reg [7:0] input_2;
reg [7:0] input_3;
reg signed [7:0] spr_offset;
reg vflip_sel;
reg dpoker_lamp;
always @(*) begin
input_0 = 8'hff;
input_1 = 8'hff;
input_2 = 8'hff;
input_3 = 8'hff;
spr_offset = 8'd3;
vflip_sel = 0;
dpoker_lamp = 0;
case (core_mod)
7'h0: // KICK(MAN)
begin
input_0 = ~{ service, 2'b00, m_down, m_two_players, m_one_player, m_coin2, m_coin1 };
input_1 = ~{ 4'h0, spin_angle };
input_3 = { /*music*/status[7], 7'd0 };
end
7'h1: // SOLARFOX
begin
spr_offset = -8'd3;
input_0 = ~{ service, 2'b00, m_fireA, m_two_players | m_fire2B, m_one_player | m_fireB, m_coin2, m_coin1 };
input_1 = ~{ m_up2, m_down2, m_left2, m_right2, m_up, m_down, m_left, m_right };
input_2 = ~{ 7'd0, m_fire2A };
input_3 = ~{ /*cocktail*/1'b0, /*ign.hw fail*/1'b0, /*demo snd*/status[9], /*unk*/2'b00, /*bonus*/&(~status[8:7]), status[8] };
end
7'h2: // DPOKER
begin
vflip_sel = 1;
dpoker_lamp = status[7];
input_0 = ~{ 2'b11, m_down, m_up, dpoker_hopper_release_status, 1'b0, dpoker_coin_release_status, dpoker_coin_in_status };
input_1 = ~{ /*stand*/m_fireA, /*cancel*/m_fireB, /*deal*/m_fireC, btn_hold5, btn_hold4, btn_hold3, btn_hold2, btn_hold1 };
input_3 = ~{ /*backgr.*/status[12], /*currency*/status[11], /*faceup*/status[10], /*2xunused*/2'b11, /*novelty*/status[9], /*music*/status[8], /*hopper*/1'b0 };
end
default : ;
endcase
end
assign LED = ~ioctl_downl;
assign SDRAM_CLK = clk_sys;
assign SDRAM_CKE = 1;
@@ -80,14 +130,34 @@ wire [7:0] joystick_0;
wire [7:0] joystick_1;
wire scandoublerD;
wire ypbpr;
wire [15:0] audio_l, audio_r;
wire hs, vs, cs;
wire blankn;
wire [3:0] g, r, b;
wire no_csync;
wire key_pressed;
wire [7:0] key_code;
wire key_strobe;
user_io #(
.STRLEN(($size(CONF_STR)>>3)))
user_io(
.clk_sys (clk_sys ),
.conf_str (CONF_STR ),
.SPI_CLK (SPI_SCK ),
.SPI_SS_IO (CONF_DATA0 ),
.SPI_MISO (SPI_DO ),
.SPI_MOSI (SPI_DI ),
.buttons (buttons ),
.switches (switches ),
.scandoubler_disable (scandoublerD ),
.ypbpr (ypbpr ),
.no_csync (no_csync ),
.core_mod (core_mod ),
.key_strobe (key_strobe ),
.key_pressed (key_pressed ),
.key_code (key_code ),
.joystick_0 (joystick_0 ),
.joystick_1 (joystick_1 ),
.status (status )
);
wire [14:0] rom_addr;
wire [15:0] rom_do;
wire [13:0] snd_addr;
@@ -98,6 +168,12 @@ wire ioctl_wr;
wire [24:0] ioctl_addr;
wire [7:0] ioctl_dout;
/* ROM structure
00000-07FFF CPU1
08000-0BFFF CPU2
0C000-13FFF gfx2
14000-15FFF gfx1
*/
data_io data_io(
.clk_sys ( clk_sys ),
.SPI_SCK ( SPI_SCK ),
@@ -131,7 +207,7 @@ sdram sdram(
// port2 for sound board
.port2_req ( port2_req ),
.port2_ack ( ),
.port2_a ( ioctl_addr[23:1] - 16'h3000 ),
.port2_a ( ioctl_addr[23:1] - 16'h4000 ),
.port2_ds ( {ioctl_addr[0], ~ioctl_addr[0]} ),
.port2_we ( ioctl_downl ),
.port2_d ( {ioctl_dout, ioctl_dout} ),
@@ -163,18 +239,11 @@ always @(posedge clk_sys) begin
reset <= status[0] | buttons[1] | ~rom_loaded;
end
wire ctc_zc_to2;
wire [3:0] spin_angle;
spinner spinner (
.clock_40(clk_sys),
.reset(reset),
.btn_acc(m_fireA),
.btn_left(m_left),
.btn_right(m_right),
.ctc_zc_to_2(ctc_zc_to2),
.spin_angle(spin_angle)
);
wire [15:0] audio_l, audio_r;
wire hs, vs, cs;
wire blankn;
wire [3:0] g, r, b;
wire [24:0] dl_addr = ioctl_addr - 16'hC000;
kick kick(
.clock_40(clk_sys),
@@ -187,27 +256,35 @@ kick kick(
.video_vs(vs),
.video_csync(cs),
.tv15Khz_mode(scandoublerD),
.separate_audio(1'b0),
.separate_audio(1'b1),
.audio_out_l(audio_l),
.audio_out_r(audio_r),
.coin1(m_coin1),
.coin2(m_coin2),
.start1(m_one_player),
.start2(m_two_players),
.kick(m_down),
.ctc_zc_to_2(ctc_zc_to2),
.spin_angle(spin_angle),
.service(service),
.input_0(input_0),
.input_1(input_1),
.input_2(input_2),
.input_3(input_3),
.spr_offset(spr_offset),
.vflip_sel(vflip_sel),
.dpoker_lamp(dpoker_lamp),
.hopper(dpoker_hopper),
.cpu_rom_addr ( rom_addr ),
.cpu_rom_do ( rom_addr[0] ? rom_do[15:8] : rom_do[7:0] ),
.snd_rom_addr ( snd_addr ),
.snd_rom_do ( snd_addr[0] ? snd_do[15:8] : snd_do[7:0] )
.snd_rom_do ( snd_addr[0] ? snd_do[15:8] : snd_do[7:0] ),
.dl_addr ( dl_addr[16:0] ),
.dl_data ( ioctl_dout ),
.dl_wr ( ioctl_wr )
);
wire vs_out;
wire hs_out;
assign VGA_VS = scandoublerD | vs_out;
assign VGA_HS = scandoublerD ? cs : hs_out;
assign VGA_HS = (~no_csync & scandoublerD & ~ypbpr)? cs : hs_out;
assign VGA_VS = (~no_csync & scandoublerD & ~ypbpr)? 1'b1 : vs_out;
mist_video #(.COLOR_DEPTH(4), .SD_HCNT_WIDTH(10)) mist_video(
.clk_sys ( clk_sys ),
@@ -229,31 +306,9 @@ mist_video #(.COLOR_DEPTH(4), .SD_HCNT_WIDTH(10)) mist_video(
.blend ( blend ),
.scandoubler_disable( 1'b1 ),
.no_csync ( 1'b1 ),
.scanlines ( ),
.ypbpr ( ypbpr )
);
user_io #(
.STRLEN(($size(CONF_STR)>>3)))
user_io(
.clk_sys (clk_sys ),
.conf_str (CONF_STR ),
.SPI_CLK (SPI_SCK ),
.SPI_SS_IO (CONF_DATA0 ),
.SPI_MISO (SPI_DO ),
.SPI_MOSI (SPI_DI ),
.buttons (buttons ),
.switches (switches ),
.scandoubler_disable (scandoublerD ),
.ypbpr (ypbpr ),
.key_strobe (key_strobe ),
.key_pressed (key_pressed ),
.key_code (key_code ),
.joystick_0 (joystick_0 ),
.joystick_1 (joystick_1 ),
.status (status )
);
dac #(
.C_bits(16))
dac_l(
@@ -262,7 +317,7 @@ dac_l(
.dac_i(audio_l),
.dac_o(AUDIO_L)
);
dac #(
.C_bits(16))
dac_r(
@@ -272,6 +327,49 @@ dac_r(
.dac_o(AUDIO_R)
);
// Draw poker coin in detector
wire dpoker_coin_in_status, dpoker_coin_release_status;
coin_flow coin_in(clk_sys, reset, m_coin1, dpoker_coin_in_status, dpoker_coin_release_status);
// Draw poker hopper control
wire dpoker_hopper;
wire dpoker_hopper_in_status, dpoker_hopper_release_status;
coin_flow hopper(clk_sys, reset, dpoker_hopper, dpoker_hopper_in_status, dpoker_hopper_release_status);
// Draw poker extra buttons
reg btn_hold1 = 0;
reg btn_hold2 = 0;
reg btn_hold3 = 0;
reg btn_hold4 = 0;
reg btn_hold5 = 0;
always @(posedge clk_sys) begin
if(key_strobe) begin
case(key_code)
'h1A: btn_hold1 <= key_pressed; // Z
'h22: btn_hold2 <= key_pressed; // X
'h21: btn_hold3 <= key_pressed; // C
'h2A: btn_hold4 <= key_pressed; // V
'h32: btn_hold5 <= key_pressed; // B
endcase
end
end
// Kick spinner
wire ctc_zc_to2;
wire [3:0] spin_angle;
spinner spinner (
.clock_40(clk_sys),
.reset(reset),
.btn_acc(m_fireA),
.btn_left(m_left),
.btn_right(m_right),
.ctc_zc_to_2(ctc_zc_to2),
.spin_angle(spin_angle)
);
// General controls
wire m_up, m_down, m_left, m_right, m_fireA, m_fireB, m_fireC, m_fireD, m_fireE, m_fireF;
wire m_up2, m_down2, m_left2, m_right2, m_fire2A, m_fire2B, m_fire2C, m_fire2D, m_fire2E, m_fire2F;
wire m_tilt, m_coin1, m_coin2, m_coin3, m_coin4, m_one_player, m_two_players, m_three_players, m_four_players;
@@ -292,4 +390,55 @@ arcade_inputs inputs (
.player2 ( {m_fire2F, m_fire2E, m_fire2D, m_fire2C, m_fire2B, m_fire2A, m_up2, m_down2, m_left2, m_right2} )
);
endmodule
endmodule
module coin_flow(
input clk,
input reset,
input coin_in,
output reg in_status,
output reg release_status
);
reg [23:0] timer;
reg [1:0] state;
always @(posedge clk) begin
if (reset) begin
state <= 0;
in_status <= 0;
release_status <= 0;
end else begin
case (state)
0:
if (coin_in) begin
timer <= 24'h3fffff;
in_status <= 1;
state <= 1;
end
1:
if (timer != 0) timer <= timer - 1'd1;
else begin
in_status <= 0;
release_status <= 1;
timer <= 24'h3fffff;
state <= 2;
end
2:
if (timer != 0) timer <= timer - 1'd1;
else begin
release_status <= 0;
state <= 0;
end
default : ;
endcase
end
end
endmodule

View File

@@ -12,7 +12,7 @@
--
-- -----------------------------------------------------------------------
--
-- gen_rwram.vhd
-- dpram.vhd
--
-- -----------------------------------------------------------------------
--
@@ -26,59 +26,56 @@ use IEEE.numeric_std.ALL;
-- -----------------------------------------------------------------------
entity gen_ram is
entity dpram is
generic (
dWidth : integer := 8;
aWidth : integer := 10
);
port (
clk : in std_logic;
we : in std_logic;
addr : in std_logic_vector((aWidth-1) downto 0);
d : in std_logic_vector((dWidth-1) downto 0);
q : out std_logic_vector((dWidth-1) downto 0)
clk_a : in std_logic;
we_a : in std_logic := '0';
addr_a : in std_logic_vector((aWidth-1) downto 0);
d_a : in std_logic_vector((dWidth-1) downto 0) := (others => '0');
q_a : out std_logic_vector((dWidth-1) downto 0);
clk_b : in std_logic;
we_b : in std_logic := '0';
addr_b : in std_logic_vector((aWidth-1) downto 0);
d_b : in std_logic_vector((dWidth-1) downto 0) := (others => '0');
q_b : out std_logic_vector((dWidth-1) downto 0)
);
end entity;
-- -----------------------------------------------------------------------
architecture rtl of gen_ram is
architecture rtl of dpram is
subtype addressRange is integer range 0 to ((2**aWidth)-1);
type ramDef is array(addressRange) of std_logic_vector((dWidth-1) downto 0);
signal ram: ramDef;
signal rAddrReg : std_logic_vector((aWidth-1) downto 0);
signal qReg : std_logic_vector((dWidth-1) downto 0);
signal addr_a_reg: std_logic_vector((aWidth-1) downto 0);
signal addr_b_reg: std_logic_vector((aWidth-1) downto 0);
begin
-- -----------------------------------------------------------------------
-- Signals to entity interface
-- -----------------------------------------------------------------------
-- q <= qReg;
-- -----------------------------------------------------------------------
-- Memory write
-- -----------------------------------------------------------------------
process(clk)
process(clk_a)
begin
if rising_edge(clk) then
if we = '1' then
ram(to_integer(unsigned(addr))) <= d;
if rising_edge(clk_a) then
if we_a = '1' then
ram(to_integer(unsigned(addr_a))) <= d_a;
end if;
q_a <= ram(to_integer(unsigned(addr_a)));
end if;
end process;
process(clk_b)
begin
if rising_edge(clk_b) then
if we_b = '1' then
ram(to_integer(unsigned(addr_b))) <= d_b;
end if;
q_b <= ram(to_integer(unsigned(addr_b)));
end if;
end process;
-- -----------------------------------------------------------------------
-- Memory read
-- -----------------------------------------------------------------------
process(clk)
begin
if rising_edge(clk) then
-- qReg <= ram(to_integer(unsigned(rAddrReg)));
-- rAddrReg <= addr;
---- qReg <= ram(to_integer(unsigned(addr)));
q <= ram(to_integer(unsigned(addr)));
end if;
end process;
--q <= ram(to_integer(unsigned(addr)));
end architecture;

View File

@@ -162,20 +162,22 @@ port(
video_blankn : out std_logic;
video_hs : out std_logic;
video_vs : out std_logic;
spr_offset : in std_logic_vector(7 downto 0) := x"03"; -- -3 for SolarFox, +3 for Kick
vflip_sel : in std_logic := '0'; -- 0 - inv, 1 - norm
dpoker_lamp : in std_logic;
hopper : out std_logic; -- dpoker coin hopper control
separate_audio : in std_logic;
audio_out_l : out std_logic_vector(15 downto 0);
audio_out_r : out std_logic_vector(15 downto 0);
coin1 : in std_logic;
coin2 : in std_logic;
start2 : in std_logic;
start1 : in std_logic;
kick : in std_logic;
service : in std_logic;
input_0 : in std_logic_vector(7 downto 0);
input_1 : in std_logic_vector(7 downto 0);
input_2 : in std_logic_vector(7 downto 0);
input_3 : in std_logic_vector(7 downto 0);
ctc_zc_to_2 : out std_logic;
spin_angle : in std_logic_vector(3 downto 0);
cpu_rom_addr : out std_logic_vector(14 downto 0);
cpu_rom_do : in std_logic_vector(7 downto 0);
@@ -184,9 +186,11 @@ port(
snd_rom_addr : out std_logic_vector(13 downto 0);
snd_rom_do : in std_logic_vector(7 downto 0);
snd_rom_rd : out std_logic;
dbg_cpu_addr : out std_logic_vector(15 downto 0)
);
dl_addr : in std_logic_vector(16 downto 0);
dl_data : in std_logic_vector( 7 downto 0);
dl_wr : in std_logic
);
end kick;
architecture struct of kick is
@@ -198,6 +202,7 @@ architecture struct of kick is
signal hcnt : std_logic_vector(9 downto 0) := (others=>'0'); -- horizontal counter
signal vcnt : std_logic_vector(9 downto 0) := (others=>'0'); -- vertical counter
signal vflip_inv: std_logic_vector(9 downto 0) := (others=>'0'); -- vertical counter inverse
signal vflip : std_logic_vector(9 downto 0) := (others=>'0'); -- vertical counter flip
signal hs_cnt, vs_cnt :std_logic_vector(9 downto 0) ;
@@ -307,25 +312,29 @@ architecture struct of kick is
signal ssio_iowe : std_logic;
signal ssio_do : std_logic_vector(7 downto 0);
signal input_0 : std_logic_vector(7 downto 0);
signal input_1 : std_logic_vector(7 downto 0);
signal input_3 : std_logic_vector(7 downto 0);
signal sp_graphics_we : std_logic;
signal bg_graphics_1_we : std_logic;
signal bg_graphics_2_we : std_logic;
signal lamps : std_logic_vector(7 downto 0);
signal lamp_on : std_logic;
type texte is array(0 to 31) of std_logic_vector(7 downto 0);
signal lamp_text: texte := (
x"36", x"36", x"36", x"36",
x"14", x"15", x"02", x"0F", x"05", x"36", -- STAND
x"04", x"02", x"0F", x"04", x"06", x"0D", x"36", x"36", -- CANCEL
x"05", x"06", x"02", x"0D", x"36", x"36", -- DEAL
x"09", x"10", x"0D", x"05", x"36", x"36", -- HOLD
x"36", x"36");
begin
clock_vid <= clock_40;
clock_vidn <= not clock_40;
reset_n <= not reset;
-- debug
process (reset, clock_vid)
begin
if rising_edge(clock_vid) and cpu_ena ='1' and cpu_mreq_n ='0' then
dbg_cpu_addr<= spin_angle&"00000000000"&service; --cpu_addr;
end if;
end process;
-- make enables clock from clock_vid
process (clock_vid, reset)
begin
@@ -347,7 +356,7 @@ pix_ena <= '1' when (clock_cnt(1 downto 0) = "11" and tv15Khz_mode = '1') or
(clock_cnt(0) = '1' and tv15Khz_mode = '0') else '0'; -- (20MHz)
-----------------------------------
-- Video scanner 634x525 @20Mhz --
-- Video scanner 634x512 @20Mhz --
-- display 512x480 --
-----------------------------------
process (reset, clock_vid)
@@ -356,36 +365,37 @@ begin
hcnt <= (others=>'0');
vcnt <= (others=>'0');
top_frame <= '0';
else
if rising_edge(clock_vid) then
if pix_ena = '1' then
hcnt <= hcnt + 1;
if hcnt = 633 then
hcnt <= (others=>'0');
vcnt <= vcnt + 1;
if (vcnt = 524 and tv15Khz_mode = '0') or (vcnt = 263 and tv15Khz_mode = '1') then
vcnt <= (others=>'0');
top_frame <= not top_frame;
end if;
elsif rising_edge(clock_vid) then
if pix_ena = '1' then
hcnt <= hcnt + 1;
if hcnt = 633 then
hcnt <= (others=>'0');
end if;
if hcnt = 633 then -- TODO: Should be 511, but then need to adjust sprite machine
vcnt <= vcnt + 1;
if (vcnt = 511 and tv15Khz_mode = '0') or (vcnt = 255 and tv15Khz_mode = '1') then
vcnt <= (others=>'0');
top_frame <= not top_frame;
end if;
if tv15Khz_mode = '0' then
-- progessive mode
end if;
if tv15Khz_mode = '0' then
-- progessive mode
if vcnt = 490-1 then video_vs <= '0'; end if; -- front porch 10
if vcnt = 492-1 then video_vs <= '1'; end if; -- sync pulse 2
-- back porch 33
if hcnt = 512+13-8 then video_hs <= '0'; end if; -- front porch 16/25*20 = 13
if hcnt = 512+90-8 then video_hs <= '1'; end if; -- sync pulse 96/25*20 = 77
-- back porch 48/25*20 = 38
video_blankn <= '0';
if hcnt >= 2 and hcnt < 514 and
vcnt >= 1 and vcnt < 481 then video_blankn <= '1';end if;
else -- interlaced mode
if hcnt >= 0 and hcnt < 512 and
vcnt >= 0 and vcnt < 480 then video_blankn <= '1';end if;
else -- interlaced mode
if hcnt = 530 then
hs_cnt <= (others => '0');
if (vcnt = 240) then
@@ -394,18 +404,17 @@ begin
vs_cnt <= vs_cnt +1;
end if;
if vcnt = 240 then video_vs <= '0'; end if;
if vcnt = 242 then video_vs <= '1'; end if;
if vcnt = 250 then video_vs <= '0'; end if;
if vcnt = 253 then video_vs <= '1'; end if;
else
hs_cnt <= hs_cnt + 1;
end if;
video_blankn <= '0';
if hcnt >= 2 and hcnt < 514 and
vcnt >= 1 and vcnt < 241 then video_blankn <= '1';end if;
video_blankn <= '0';
if hcnt >= 0 and hcnt < 512 and
vcnt >= 0 and vcnt < 240 then video_blankn <= '1';end if;
if hs_cnt = 0 then hsync0 <= '0'; video_hs <= '0';
elsif hs_cnt = 47 then hsync0 <= '1'; video_hs <= '1';
end if;
@@ -415,14 +424,13 @@ begin
elsif hs_cnt = 317+ 0 then hsync1 <= '0';
elsif hs_cnt = 317+23 then hsync1 <= '1';
end if;
if hs_cnt = 0 then hsync2 <= '0';
elsif hs_cnt = 317-47 then hsync2 <= '1';
elsif hs_cnt = 317 then hsync2 <= '0';
elsif hs_cnt = 634-47 then hsync2 <= '1';
end if;
if hs_cnt = 0 then hsync3 <= '0';
elsif hs_cnt = 23 then hsync3 <= '1';
elsif hs_cnt = 317 then hsync3 <= '0';
@@ -434,8 +442,7 @@ begin
elsif hs_cnt = 317 then hsync4 <= '0';
elsif hs_cnt = 317+23 then hsync4 <= '1';
end if;
if vs_cnt = 1 then video_csync <= hsync1;
elsif vs_cnt = 2 then video_csync <= hsync1;
elsif vs_cnt = 3 then video_csync <= hsync1;
@@ -451,113 +458,23 @@ begin
elsif vs_cnt = 11 then video_csync <= hsync0;
else video_csync <= hsync0;
end if;
end if;
-- -- test pattern (progressive)
--
-- video_blankn <= '1';
--
-- video_r <= "0000";
-- video_g <= "0000";
-- video_b <= "0000";
--
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 480 then video_b <= "0100"; end if;
--
-- if hcnt >= 1 and hcnt < 511 and
-- vcnt >= 1 and vcnt < 479 then video_r <= "0100"; end if;
--
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 480 then video_g <= "0100"; end if;
--
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 480 and
-- hcnt(5 downto 0) = vcnt(5 downto 0) then
-- video_r <= "1100";
-- video_g <= "1100";
-- video_b <= "1100";
-- end if;
-- -- test pattern (interlaced)
-- video_r <= "0000";
-- video_g <= "0000";
-- video_b <= "0000";
--
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 240 then video_b <= "0100"; end if;
--
-- if hcnt >= 10 and hcnt < 501 and
-- vcnt >= 10 and vcnt < 229 then video_r <= "0100"; end if;
--
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 240 then video_g <= "0100"; end if;
--
-- if hcnt >= 0 and hcnt < 512 and first = '0' and
-- vcnt = 120 then video_b <= "0000"; video_r <= "0100"; video_g <= "0000";end if;
--
-- if hcnt >= 0 and hcnt < 512 and first = '1' and
-- vcnt = 120 then video_b <= "0000"; video_r <= "0000"; video_g <= "0100";end if;
--
-- if hcnt >= 0 and hcnt < 128 and
-- vcnt = 130 then video_b <= "0000"; video_r <= "0100"; video_g <= "0000";end if;
-- if hcnt >= 128 and hcnt < 256 and
-- vcnt = 130 then video_b <= "0000"; video_r <= "0000"; video_g <= "0100";end if;
-- if hcnt >= 256 and hcnt < 384 and
-- vcnt = 130 then video_b <= "0000"; video_r <= "0100"; video_g <= "0100";end if;
--
--
-- if hcnt >= 0 and hcnt < 128 and first = '0' and
-- vcnt = 133 then video_b <= "0000"; video_r <= "0100"; video_g <= "0000";end if;
-- if hcnt >= 128 and hcnt < 256 and first = '1'and
-- vcnt = 133 then video_b <= "0000"; video_r <= "0000"; video_g <= "0100";end if;
-- if hcnt >= 256 and hcnt < 384 and first = '0' and
-- vcnt = 133 then video_b <= "0000"; video_r <= "0100"; video_g <= "0100";end if;
--
-- if hcnt >= 0 and hcnt < 128 and first = '0' and
-- vcnt = 135 then video_b <= "0000"; video_r <= "0100"; video_g <= "0000";end if;
-- if hcnt >= 128 and hcnt < 256 and first = '1'and
-- vcnt = 135 then video_b <= "0000"; video_r <= "0000"; video_g <= "0100";end if;
-- if hcnt >= 256 and hcnt < 384 and first = '0' and
-- vcnt = 135 then video_b <= "0000"; video_r <= "0100"; video_g <= "0100";end if;
-- if hcnt >= 0 and hcnt < 512 and
-- vcnt >= 0 and vcnt < 240 and
-- hcnt(5 downto 0) = vcnt(5 downto 0) then
-- video_r <= "1100";
-- video_g <= "1100";
-- video_b <= "1100";
-- end if;
end if;
end if;
end if;
end process;
--------------------
-- players inputs --
--------------------
-- "11" for test & tilt
input_0 <= not service & "11" & not kick & not start2 & not start1 & not coin2 & not coin1;
input_1 <= x"F" & not spin_angle; -- binary angle decoder (spinner)
input_3 <= x"FE" ;-- FE Music ON, FF Music OFF
------------------------------------------
-- cpu data input with address decoding --
------------------------------------------
cpu_di <= cpu_rom_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) < X"7" else -- 0000-6FFF
wram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) = X"7" else -- 7000-7FFF
sp_ram_cache_do when cpu_mreq_n = '0' and cpu_addr(15 downto 9) = "1111000" else -- sprite ram 0xF000-0xF1FF
bg_ram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 10) = "111111" else -- video ram 0xFC00-0xFFFF
ctc_do when cpu_int_ack_n = '0' or ctc_ce = '1' else -- ctc (interrupt vector or counter data)
ssio_do when cpu_ioreq_n = '0' and cpu_addr(7 downto 4) = X"0" else
X"FF";
cpu_di <= cpu_rom_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) < X"7" else -- 0000-6FFF
wram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 12) = X"7" else -- 7000-7FFF
sp_ram_cache_do when cpu_mreq_n = '0' and cpu_addr(15 downto 9) = "1111000" else -- sprite ram 0xF000-0xF1FF
bg_ram_do when cpu_mreq_n = '0' and cpu_addr(15 downto 10) = "111111" else -- video ram 0xFC00-0xFFFF
ctc_do when cpu_int_ack_n = '0' or ctc_ce = '1' else -- ctc (interrupt vector or counter data)
ssio_do when cpu_ioreq_n = '0' and cpu_addr(7 downto 4) = X"0" else
X"FF";
------------------------------------------------------------------------
-- Misc registers : ctc write enable / interrupt acknowledge
------------------------------------------------------------------------
@@ -576,11 +493,35 @@ bg_ram_cpu_access <= '1' when cpu_mreq_n = '0' and (cpu_wr_n = '0' or cpu_
ssio_iowe <= '1' when cpu_wr_n = '0' and cpu_ioreq_n = '0' else '0';
--------------------------------
-- dpoker lamps & coin hopper --
--------------------------------
process (reset,clock_vid)
begin
if reset = '1' then
lamps <= (others => '0');
hopper <= '0';
elsif rising_edge(clock_vid) then
if cpu_wr_n = '0' and cpu_ioreq_n = '0' and cpu_wr_n = '0' then
if cpu_addr(7 downto 0) = x"2c" then lamps <= cpu_do; end if;
if cpu_addr(7 downto 0) = x"34" then hopper <= cpu_do(6); end if;
end if;
end if;
end process;
lamp_on <= '1' when
(hcnt(8 downto 4) >= 4 and hcnt(8 downto 4) <= 8 and lamps(3) = '1') or -- STAND
(hcnt(8 downto 4) >= 10 and hcnt(8 downto 4) <= 15 and lamps(2) = '1') or -- CANCEL
(hcnt(8 downto 4) >= 18 and hcnt(8 downto 4) <= 21 and lamps(1) = '1') or -- DEAL
(hcnt(8 downto 4) >= 24 and hcnt(8 downto 4) <= 27 and lamps(7 downto 4)&lamps(0) /= "00000") -- HOLD
else '0';
----------------------
--- sprite machine ---
----------------------
vflip <= (240-vcnt(8 downto 0)) & top_frame when tv15Khz_mode = '1' else 480-vcnt; -- apply mirror flip
vflip_inv <= (240-vcnt(8 downto 0)) & top_frame when tv15Khz_mode = '1' else 480-vcnt; -- apply mirror flip
vflip <= vflip_inv when vflip_sel = '0' else vcnt;
sp_buffer_sel <= vflip(1) when tv15Khz_mode = '1' else vflip(0);
@@ -595,7 +536,7 @@ begin
sp_on_line <= '0';
sp_done <= '0';
end if;
if sp_done = '0' then
sp_input_phase <= sp_input_phase + 1 ;
sp_hcnt <= sp_hcnt + 1;
@@ -626,12 +567,12 @@ begin
end case;
sp_mux_roms <= sp_input_phase(2 downto 1);
end if;
if hcnt(0) = '0' then
sp_buffer_ram1_do_r <= sp_buffer_ram1_do;
sp_buffer_ram2_do_r <= sp_buffer_ram2_do;
end if;
end if;
end if;
@@ -640,7 +581,7 @@ end process;
sp_ram_cache_addr <= cpu_addr(8 downto 0) when sp_ram_cache_cpu_access = '1' else sp_ram_addr;
move_buf <= '1' when (vcnt(8 downto 1) = 250 and tv15Khz_mode = '0') or (vcnt(7 downto 1) = 125 and tv15Khz_mode = '1') else '0'; -- line 500-501
move_buf <= '1' when top_frame ='1' and ((vcnt(8 downto 1) = 250 and tv15Khz_mode = '0') or (vcnt(7 downto 1) = 125 and tv15Khz_mode = '1')) else '0'; -- line 500-501
sp_ram_addr <= vcnt(0) & hcnt(8 downto 1) when move_buf = '1' else sp_cnt & sp_input_phase(1 downto 0);
sp_ram_we <= hcnt(0) when move_buf = '1' else '0';
@@ -653,40 +594,48 @@ sp_vflip <= (others => sp_code(7));
sp_code_line <= sp_code(5 downto 0) & (sp_line xor sp_vflip) & (sp_byte_cnt xor sp_hflip); -- sprite graphics roms addr
sp_code_line_mux <= "00" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "01") or
(sp_hflip(0) = '1' and sp_mux_roms = "00") else
"01" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "10") or
(sp_hflip(0) = '1' and sp_mux_roms = "11") else
"10" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "11") or
(sp_hflip(0) = '1' and sp_mux_roms = "10") else
"11" & sp_code_line;-- when (sp_hflip(0) = '0' and sp_mux_roms = "00") or
--(sp_hflip(0) = '1' and sp_mux_roms = "01") ;
(sp_hflip(0) = '1' and sp_mux_roms = "00") else
"01" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "10") or
(sp_hflip(0) = '1' and sp_mux_roms = "11") else
"10" & sp_code_line when (sp_hflip(0) = '0' and sp_mux_roms = "11") or
(sp_hflip(0) = '1' and sp_mux_roms = "10") else
"11" & sp_code_line;-- when (sp_hflip(0) = '0' and sp_mux_roms = "00") or
--(sp_hflip(0) = '1' and sp_mux_roms = "01") ;
sp_graphx_flip <= sp_graphx_do when sp_hflip(0) = '0' else
sp_graphx_do(3 downto 0) & sp_graphx_do(7 downto 4);
sp_graphx_do(3 downto 0) & sp_graphx_do(7 downto 4);
sp_buffer_ram1_di <= sp_buffer_ram1_do or sp_graphx_flip when sp_buffer_sel = '1' else "00000000";
sp_buffer_ram1_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '1' else hcnt(8 downto 1) + X"03";
sp_buffer_ram1_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '1' else hcnt(8 downto 1) + spr_offset;
sp_buffer_ram1_we <= not sp_hcnt(0) and sp_on_line and pix_ena when sp_buffer_sel = '1' else hcnt(0);
sp_buffer_ram2_di <= sp_buffer_ram2_do or sp_graphx_flip when sp_buffer_sel = '0' else "00000000";
sp_buffer_ram2_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '0' else hcnt(8 downto 1) + X"03";
sp_buffer_ram2_addr <= sp_hcnt(8 downto 1) when sp_buffer_sel = '0' else hcnt(8 downto 1) + spr_offset;
sp_buffer_ram2_we <= not sp_hcnt(0) and sp_on_line and pix_ena when sp_buffer_sel = '0' else hcnt(0);
sp_vid <= sp_buffer_ram1_do_r(7 downto 4) when (sp_buffer_sel = '0') and (hcnt(0) = '1') else
sp_buffer_ram1_do_r(3 downto 0) when (sp_buffer_sel = '0') and (hcnt(0) = '0') else
sp_buffer_ram2_do_r(7 downto 4) when (sp_buffer_sel = '1') and (hcnt(0) = '1') else
sp_buffer_ram2_do_r(3 downto 0);-- when (sp_buffer_sel = '1') and (hcnt(0) = '0');
sp_buffer_ram1_do_r(3 downto 0) when (sp_buffer_sel = '0') and (hcnt(0) = '0') else
sp_buffer_ram2_do_r(7 downto 4) when (sp_buffer_sel = '1') and (hcnt(0) = '1') else
sp_buffer_ram2_do_r(3 downto 0);-- when (sp_buffer_sel = '1') and (hcnt(0) = '0');
--------------------
--- char machine ---
--------------------
bg_ram_addr <= cpu_addr(9 downto 0) when bg_ram_cpu_access = '1' else vflip(8 downto 4) & hcnt(8 downto 4);
bg_code_line <= bg_ram_do & vflip(3 downto 1) & hcnt(3);
process (bg_ram_do, vflip, hcnt, dpoker_lamp, lamp_text)
begin
if vflip(8 downto 4) = 1 and dpoker_lamp = '1' then
-- lamp text in line 1
bg_code_line <= lamp_text(to_integer(unsigned(hcnt(8 downto 4)))) & vflip(3 downto 1) & hcnt(3);
else
bg_code_line <= bg_ram_do & vflip(3 downto 1) & hcnt(3);
end if;
end process;
process (clock_vid)
begin
if rising_edge(clock_vid) then
if hcnt(0) = '1' then
case hcnt(2 downto 1) is
when "00" => bg_palette_addr <= bg_graphx2_do(7 downto 6) & bg_graphx1_do(7 downto 6);
@@ -698,9 +647,9 @@ begin
end if;
end process;
bg_vid <= bg_palette_addr;
---------------------------
-- mux char/sprite video --
---------------------------
@@ -721,9 +670,16 @@ process (clock_vid)
begin
if rising_edge(clock_vid) then
if sp_vid = "0000" then
video_r <= bg_palette_red_do;
video_g <= bg_palette_green_do;
video_b <= bg_palette_blue_do;
if vflip(8 downto 4) = 1 and dpoker_lamp = '1' and bg_vid /= x"1" and lamp_on = '0' then
-- grey text for dark lamps in dpoker
video_r <= "0011";
video_g <= "0011";
video_b <= "0011";
else
video_r <= bg_palette_red_do;
video_g <= bg_palette_green_do;
video_b <= bg_palette_blue_do;
end if;
else
video_r <= sp_palette_red_do;
video_g <= sp_palette_green_do;
@@ -731,7 +687,7 @@ begin
end if;
end if;
end process;
------------------------------
-- components & sound board --
------------------------------
@@ -796,7 +752,7 @@ cpu_rom_rd <= '1' when cpu_mreq_n = '0' and cpu_rd_n = '0' and cpu_addr(15 downt
--);
-- working RAM 0x7000-0x77FF
wram : entity work.gen_ram
wram : entity work.cmos_ram
generic map( dWidth => 8, aWidth => 11)
port map(
clk => clock_vidn,
@@ -862,56 +818,66 @@ port map(
);
-- background graphics ROM G4
bg_graphics_1 : entity work.kick_bg_bits_1
--bg_graphics_1 : entity work.kick_bg_bits_1
--port map(
-- clk => clock_vidn,
-- addr => bg_code_line,
-- data => bg_graphx1_do
--);
bg_graphics_1 : entity work.dpram
generic map( dWidth => 8, aWidth => 12)
port map(
clk => clock_vidn,
addr => bg_code_line,
data => bg_graphx1_do
clk_a => clock_vidn,
addr_a => bg_code_line,
q_a => bg_graphx1_do,
clk_b => clock_vid,
addr_b => dl_addr(11 downto 0),
we_b => bg_graphics_1_we,
d_b => dl_data
);
bg_graphics_1_we <= '1' when dl_wr = '1' and dl_addr(16 downto 12) = "01000" else '0';
-- background graphics ROM G5
bg_graphics_2 : entity work.kick_bg_bits_2
--bg_graphics_2 : entity work.kick_bg_bits_2
--port map(
-- clk => clock_vidn,
-- addr => bg_code_line,
-- data => bg_graphx2_do
--);
bg_graphics_2 : entity work.dpram
generic map( dWidth => 8, aWidth => 12)
port map(
clk => clock_vidn,
addr => bg_code_line,
data => bg_graphx2_do
clk_a => clock_vidn,
addr_a => bg_code_line,
q_a => bg_graphx2_do,
clk_b => clock_vid,
addr_b => dl_addr(11 downto 0),
we_b => bg_graphics_2_we,
d_b => dl_data
);
bg_graphics_2_we <= '1' when dl_wr = '1' and dl_addr(16 downto 12) = "01001" else '0';
-- sprite graphics ROM 1E/1D/1B/1A
sprite_graphics : entity work.kick_sp_bits
--sprite_graphics : entity work.kick_sp_bits
--port map(
-- clk => clock_vidn,
-- addr => sp_code_line_mux,
-- data => sp_graphx_do
--);
sprite_graphics : entity work.dpram
generic map( dWidth => 8, aWidth => 15)
port map(
clk => clock_vidn,
addr => sp_code_line_mux,
data => sp_graphx_do
clk_a => clock_vidn,
addr_a => sp_code_line_mux,
q_a => sp_graphx_do,
clk_b => clock_vid,
addr_b => dl_addr(14 downto 0),
we_b => sp_graphics_we,
d_b => dl_data
);
--kick_sound_board
sound_board : entity work.kick_sound_board
port map(
clock_40 => clock_40,
reset => reset,
main_cpu_addr => cpu_addr(7 downto 0),
ssio_iowe => ssio_iowe,
ssio_di => cpu_do,
ssio_do => ssio_do,
input_0 => input_0,
input_1 => input_1,
input_3 => input_3,
separate_audio => separate_audio,
audio_out_l => audio_out_l,
audio_out_r => audio_out_r,
sp_graphics_we <= '1' when dl_wr = '1' and dl_addr(16 downto 15) = "00" else '0';
cpu_rom_addr => snd_rom_addr,
cpu_rom_do => snd_rom_do,
cpu_rom_rd => snd_rom_rd,
dbg_cpu_addr => open --dbg_cpu_addr
);
-- background palette red
bg_palette_red : entity work.gen_ram
generic map( dWidth => 4, aWidth => 4)
@@ -978,4 +944,32 @@ port map(
q => sp_palette_blue_do
);
--kick_sound_board
sound_board : entity work.kick_sound_board
port map(
clock_40 => clock_40,
reset => reset,
main_cpu_addr => cpu_addr(7 downto 0),
ssio_iowe => ssio_iowe,
ssio_di => cpu_do,
ssio_do => ssio_do,
input_0 => input_0,
input_1 => input_1,
input_2 => input_2,
input_3 => input_3,
separate_audio => separate_audio,
audio_out_l => audio_out_l,
audio_out_r => audio_out_r,
cpu_rom_addr => snd_rom_addr,
cpu_rom_do => snd_rom_do,
cpu_rom_rd => snd_rom_rd,
dbg_cpu_addr => open --dbg_cpu_addr
);
end struct;

View File

@@ -65,6 +65,7 @@ port(
input_0 : in std_logic_vector(7 downto 0);
input_1 : in std_logic_vector(7 downto 0);
input_2 : in std_logic_vector(7 downto 0);
input_3 : in std_logic_vector(7 downto 0);
separate_audio : in std_logic;
@@ -242,12 +243,12 @@ ay2_bc1 <= not (not ay2_cs or cpu_addr(1) );
ssio_do <= input_0 when main_cpu_addr = X"00" else -- Input 0 -- players, coins, ...
input_1 when main_cpu_addr = X"01" else -- Input 1 -- angle decoder
x"FF" when main_cpu_addr = X"02" else -- Input 2
input_3 when main_cpu_addr = X"03" else -- Input 3 -- sw1 dip
x"FF" when main_cpu_addr = X"04" else -- Input 4 -- sw2 dip
ssio_status when main_cpu_addr = X"07" else -- ssio status
x"FF";
input_2 when main_cpu_addr = X"02" else -- Input 2
input_3 when main_cpu_addr = X"03" else -- Input 3 -- sw1 dip
x"FF" when main_cpu_addr = X"04" else -- Input 4 -- sw2 dip
ssio_status when main_cpu_addr = X"07" else -- ssio status
x"FF";
process (clock_snd)
begin
if rising_edge(clock_snd) then