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

Subversion Repositories i650

[/] [i650/] [trunk/] [rtl/] [translators.v] - Rev 11

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

`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// 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: Drum code translators.
// 
// 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
//////////////////////////////////////////////////////////////////////////////////
`include "defines.v"
 
module translators (
    input [0:6] dist_early_out, bs_out, console_out,
    input ri_gs, ri_bs, ri_console,
    input n800x,
    input [0:4] gs_out,
	 output gs_write,
    output [0:4] gs_in,
    output reg[0:6] select_out
    );
 
	reg [0:6] sel_in7;
	wire [0:6] sel_out7;
	xlate7to5 x75 (sel_in7, gs_in);
	xlate5to7 x57 (gs_out, sel_out7);
 
	assign gs_write = ri_gs | ri_bs | ri_console;
 
	always @(*) begin
		sel_in7 = ri_console? console_out
              : ri_gs? dist_early_out 
              : ri_bs? bs_out 
              : `biq_blank;
		select_out = (n800x)? sel_out7 : `biq_blank;
	end;
 
endmodule
 

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.