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

Subversion Repositories i650

[/] [i650/] [trunk/] [rtl/] [defines.v] - Blame information for rev 4

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

Line No. Rev Author Line
1 4 eightycc
//////////////////////////////////////////////////////////////////////////////////
2
// IBM 650 Reconstruction in Verilog (i650)
3
// 
4
// This file is part of the IBM 650 Reconstruction in Verilog (i650) project
5
// http:////www.opencores.org/project,i650
6
//
7
// Description: Global definitions.
8
// 
9
// Additional Comments: 
10
//
11
// Copyright (c) 2015 Robert Abeles
12
//
13
// This source file is free software; you can redistribute it
14
// and/or modify it under the terms of the GNU Lesser General
15
// Public License as published by the Free Software Foundation;
16
// either version 2.1 of the License, or (at your option) any
17
// later version.
18
//
19
// This source is distributed in the hope that it will be
20
// useful, but WITHOUT ANY WARRANTY; without even the implied
21
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
22
// PURPOSE.  See the GNU Lesser General Public License for more
23
// details.
24
//
25
// You should have received a copy of the GNU Lesser General
26
// Public License along with this source; if not, download it
27
// from http://www.opencores.org/lgpl.shtml
28
//////////////////////////////////////////////////////////////////////////////////
29
 
30
//-----------------------------------------------------------------------------
31
// Bi-quinary binary codes
32
//-----------------------------------------------------------------------------
33
`define biq_blank 7'b00_00000
34
`define biq_0 7'b01_00001
35
`define biq_1 7'b01_00010
36
`define biq_2 7'b01_00100
37
`define biq_3 7'b01_01000
38
`define biq_4 7'b01_10000
39
`define biq_5 7'b10_00001
40
`define biq_6 7'b10_00010
41
`define biq_7 7'b10_00100
42
`define biq_8 7'b10_01000
43
`define biq_9 7'b10_10000
44
`define biq_plus  7'b10_10000
45
`define biq_minus 7'b10_01000
46
 
47
//-----------------------------------------------------------------------------
48
// Bi-quinary bit numbers
49
//-----------------------------------------------------------------------------
50
`define biq_b5 0
51
`define biq_b0 1
52
`define biq_q4 2
53
`define biq_q3 3
54
`define biq_q2 4
55
`define biq_q1 5
56
`define biq_q0 6
57
 
58
//-----------------------------------------------------------------------------
59
// 2 of 5 drum recording codes
60
//-----------------------------------------------------------------------------
61
`define drum2of5_blank 5'b00000
62
`define drum2of5_0 5'b01100
63
`define drum2of5_1 5'b11000
64
`define drum2of5_2 5'b10100
65
`define drum2of5_3 5'b10010
66
`define drum2of5_4 5'b01010
67
`define drum2of5_5 5'b00110
68
`define drum2of5_6 5'b10001
69
`define drum2of5_7 5'b01001
70
`define drum2of5_8 5'b00101
71
`define drum2of5_9 5'b00011
72
 

powered by: WebSVN 2.1.0

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