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

Subversion Repositories i650

[/] [i650/] [trunk/] [rtl/] [translators.v] - Blame information for rev 23

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

Line No. Rev Author Line
1 9 eightycc
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3
// IBM 650 Reconstruction in Verilog (i650)
4
// 
5
// This file is part of the IBM 650 Reconstruction in Verilog (i650) project
6
// http:////www.opencores.org/project,i650
7
//
8
// Description: Drum code translators.
9
// 
10 21 eightycc
// Additional Comments: See US 2959351, Fig. 72.
11 9 eightycc
//
12
// Copyright (c) 2015 Robert Abeles
13
//
14
// This source file is free software; you can redistribute it
15
// and/or modify it under the terms of the GNU Lesser General
16
// Public License as published by the Free Software Foundation;
17
// either version 2.1 of the License, or (at your option) any
18
// later version.
19
//
20
// This source is distributed in the hope that it will be
21
// useful, but WITHOUT ANY WARRANTY; without even the implied
22
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
23
// PURPOSE.  See the GNU Lesser General Public License for more
24
// details.
25
//
26
// You should have received a copy of the GNU Lesser General
27
// Public License along with this source; if not, download it
28
// from http://www.opencores.org/lgpl.shtml
29
//////////////////////////////////////////////////////////////////////////////////
30
`include "defines.v"
31
 
32
module translators (
33 11 eightycc
    input [0:6] dist_early_out, bs_out, console_out,
34
    input ri_gs, ri_bs, ri_console,
35 21 eightycc
    input n800x, console_read_gs,
36 9 eightycc
    input [0:4] gs_out,
37 22 eightycc
    output gs_write,
38 9 eightycc
    output [0:4] gs_in,
39 22 eightycc
    output [0:6] gs_biq_out
40 9 eightycc
    );
41
 
42 22 eightycc
   wire [0:6] sel_in7;
43
   wire [0:6] sel_out7;
44
   xlate7to5 x75 (sel_in7, gs_in);
45
   xlate5to7 x57 (gs_out, sel_out7);
46
 
47
   assign gs_write = ri_gs | ri_bs | ri_console;
48
 
49
   assign sel_in7 = ri_console? console_out
50
                  : ri_gs? dist_early_out
51
                  : ri_bs? bs_out
52
                  : `biq_blank;
53
   assign gs_biq_out = (n800x | console_read_gs)? sel_out7 : `biq_blank;
54 9 eightycc
 
55
endmodule

powered by: WebSVN 2.1.0

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