URL
https://opencores.org/ocsvn/i650/i650/trunk
[/] [i650/] [trunk/] [rtl/] [translators.v] - Blame information for rev 9
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 |
|
|
// Additional Comments:
|
11 |
|
|
//
|
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 |
|
|
input [0:6] dist_early_out,
|
34 |
|
|
input [0:6] bs_out,
|
35 |
|
|
input ri_gs,
|
36 |
|
|
input ri_bs,
|
37 |
|
|
input n800x,
|
38 |
|
|
input [0:4] gs_out,
|
39 |
|
|
output gs_write,
|
40 |
|
|
output [0:4] gs_in,
|
41 |
|
|
output reg[0:6] select_out
|
42 |
|
|
);
|
43 |
|
|
|
44 |
|
|
reg [0:6] sel_in7;
|
45 |
|
|
wire [0:6] sel_out7;
|
46 |
|
|
xlate7to5 x75 (sel_in7, gs_in);
|
47 |
|
|
xlate5to7 x57 (gs_out, sel_out7);
|
48 |
|
|
|
49 |
|
|
assign gs_write = ri_gs | ri_bs;
|
50 |
|
|
|
51 |
|
|
always @(*) begin
|
52 |
|
|
sel_in7 = (ri_gs)? dist_early_out : ((ri_bs)? bs_out : `biq_blank);
|
53 |
|
|
select_out = (n800x)? sel_out7 : `biq_blank;
|
54 |
|
|
end;
|
55 |
|
|
|
56 |
|
|
endmodule
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.