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

Subversion Repositories i650

[/] [i650/] [trunk/] [rtl/] [defines.v] - Rev 4

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

//////////////////////////////////////////////////////////////////////////////////
// IBM 650 Reconstruction in Verilog (i650)
// 
// This file is part of the IBM 650 Reconstruction in Verilog (i650) project
// http:////www.opencores.org/project,i650
//
// Description: Global definitions.
// 
// Additional Comments: 
//
// Copyright (c) 2015 Robert Abeles
//
// This source file is free software; you can redistribute it
// and/or modify it under the terms of the GNU Lesser General
// Public License as published by the Free Software Foundation;
// either version 2.1 of the License, or (at your option) any
// later version.
//
// This source 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 Lesser General Public License for more
// details.
//
// You should have received a copy of the GNU Lesser General
// Public License along with this source; if not, download it
// from http://www.opencores.org/lgpl.shtml
//////////////////////////////////////////////////////////////////////////////////
 
//-----------------------------------------------------------------------------
// Bi-quinary binary codes
//-----------------------------------------------------------------------------
`define biq_blank 7'b00_00000
`define biq_0 7'b01_00001
`define biq_1 7'b01_00010
`define biq_2 7'b01_00100
`define biq_3 7'b01_01000
`define biq_4 7'b01_10000
`define biq_5 7'b10_00001
`define biq_6 7'b10_00010
`define biq_7 7'b10_00100
`define biq_8 7'b10_01000
`define biq_9 7'b10_10000
`define biq_plus  7'b10_10000
`define biq_minus 7'b10_01000
 
//-----------------------------------------------------------------------------
// Bi-quinary bit numbers
//-----------------------------------------------------------------------------
`define biq_b5 0
`define biq_b0 1
`define biq_q4 2
`define biq_q3 3
`define biq_q2 4
`define biq_q1 5
`define biq_q0 6
 
//-----------------------------------------------------------------------------
// 2 of 5 drum recording codes
//-----------------------------------------------------------------------------
`define drum2of5_blank 5'b00000
`define drum2of5_0 5'b01100
`define drum2of5_1 5'b11000
`define drum2of5_2 5'b10100
`define drum2of5_3 5'b10010
`define drum2of5_4 5'b01010
`define drum2of5_5 5'b00110
`define drum2of5_6 5'b10001
`define drum2of5_7 5'b01001
`define drum2of5_8 5'b00101
`define drum2of5_9 5'b00011
 
 

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

powered by: WebSVN 2.1.0

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