| 1 |
746 |
lampret |
//////////////////////////////////////////////////////////////////////
|
| 2 |
|
|
//// ////
|
| 3 |
|
|
//// ps2_defines.v ////
|
| 4 |
|
|
//// ////
|
| 5 |
|
|
//// This file is part of the "ps2" project ////
|
| 6 |
|
|
//// http://www.opencores.org/cores/ps2/ ////
|
| 7 |
|
|
//// ////
|
| 8 |
|
|
//// Author(s): ////
|
| 9 |
|
|
//// - mihad@opencores.org ////
|
| 10 |
|
|
//// - Miha Dolenc ////
|
| 11 |
|
|
//// ////
|
| 12 |
|
|
//// All additional information is avaliable in the README.txt ////
|
| 13 |
|
|
//// file. ////
|
| 14 |
|
|
//// ////
|
| 15 |
|
|
//// ////
|
| 16 |
|
|
//////////////////////////////////////////////////////////////////////
|
| 17 |
|
|
//// ////
|
| 18 |
|
|
//// Copyright (C) 2000 Miha Dolenc, mihad@opencores.org ////
|
| 19 |
|
|
//// ////
|
| 20 |
|
|
//// This source file may be used and distributed without ////
|
| 21 |
|
|
//// restriction provided that this copyright statement is not ////
|
| 22 |
|
|
//// removed from the file and that any derivative work contains ////
|
| 23 |
|
|
//// the original copyright notice and the associated disclaimer. ////
|
| 24 |
|
|
//// ////
|
| 25 |
|
|
//// This source file is free software; you can redistribute it ////
|
| 26 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
| 27 |
|
|
//// Public License as published by the Free Software Foundation; ////
|
| 28 |
|
|
//// either version 2.1 of the License, or (at your option) any ////
|
| 29 |
|
|
//// later version. ////
|
| 30 |
|
|
//// ////
|
| 31 |
|
|
//// This source is distributed in the hope that it will be ////
|
| 32 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
| 33 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
| 34 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
| 35 |
|
|
//// details. ////
|
| 36 |
|
|
//// ////
|
| 37 |
|
|
//// You should have received a copy of the GNU Lesser General ////
|
| 38 |
|
|
//// Public License along with this source; if not, download it ////
|
| 39 |
|
|
//// from http://www.opencores.org/lgpl.shtml ////
|
| 40 |
|
|
//// ////
|
| 41 |
|
|
//////////////////////////////////////////////////////////////////////
|
| 42 |
|
|
//
|
| 43 |
|
|
// CVS Revision History
|
| 44 |
|
|
//
|
| 45 |
|
|
// $Log: not supported by cvs2svn $
|
| 46 |
760 |
lampret |
// Revision 1.1.1.1 2002/03/21 16:55:45 lampret
|
| 47 |
|
|
// First import of the "new" XESS XSV environment.
|
| 48 |
|
|
//
|
| 49 |
|
|
//
|
| 50 |
746 |
lampret |
// Revision 1.2 2002/02/18 16:33:08 mihad
|
| 51 |
|
|
// Changed defines for simulation to work without xilinx primitives
|
| 52 |
|
|
//
|
| 53 |
|
|
// Revision 1.1.1.1 2002/02/18 16:16:56 mihad
|
| 54 |
|
|
// Initial project import - working
|
| 55 |
|
|
//
|
| 56 |
|
|
//
|
| 57 |
|
|
|
| 58 |
760 |
lampret |
`define PS2_RAMB4
|
| 59 |
746 |
lampret |
`define PS2_TRANSLATION_TABLE_31_0 256'h5b03111e1f2c71665a02101d702a386559290f3e40424464583c3b3d3f4143ff
|
| 60 |
|
|
`define PS2_TRANSLATION_TABLE_63_32 256'h5f0908162432726a5e071522233031695d061314212f39685c040512202d2e67
|
| 61 |
|
|
`define PS2_TRANSLATION_TABLE_95_64 256'h76632b751b1c363a6e620d1a7428736d610c19272635346c600a0b181725336b
|
| 62 |
|
|
`define PS2_TRANSLATION_TABLE_127_96 256'h544649374a514e574501484d4c5053526f7f7e474b7d4f7c7b0e7a7978775655
|
| 63 |
|
|
`define PS2_TRANSLATION_TABLE_159_128 256'h9f9e9d9c9b9a999897969594939291908f8e8d8c8b8a89888786855441828180
|
| 64 |
|
|
`define PS2_TRANSLATION_TABLE_191_160 256'hbfbebdbcbbbab9b8b7b6b5b4b3b2b1b0afaeadacabaaa9a8a7a6a5a4a3a2a1a0
|
| 65 |
|
|
`define PS2_TRANSLATION_TABLE_223_192 256'hdfdedddcdbdad9d8d7d6d5d4d3d2d1d0cfcecdcccbcac9c8c7c6c5c4c3c2c1c0
|
| 66 |
|
|
`define PS2_TRANSLATION_TABLE_255_224 256'hfffefdfcfbfaf9f8f7f6f5f4f3f2f1f0efeeedecebeae9e8e7e6e5e4e3e2e1e0
|
| 67 |
|
|
|
| 68 |
760 |
lampret |
`define PS2_TIMER_60USEC_VALUE_PP 600 // Number of sys_clks for 60usec.
|
| 69 |
|
|
`define PS2_TIMER_60USEC_BITS_PP 10 // Number of bits needed for timer
|
| 70 |
|
|
`define PS2_TIMER_5USEC_VALUE_PP 50 // Number of sys_clks for debounce
|
| 71 |
|
|
`define PS2_TIMER_5USEC_BITS_PP 6 // Number of bits needed for timer
|
| 72 |
746 |
lampret |
|
| 73 |
|
|
//`define SIM
|