1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-01-20 01:34:38 +00:00
2019-07-22 23:42:05 +02:00

33 lines
855 B
Verilog

`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer: Paul Wightmore
//
// Create Date: 21:46:13 05/04/2018
// Design Name: LS158
// Module Name: system86/ttl/ls158.v
// Project Name: Namco System86 simulation
// Target Devices:
// Tool versions:
// Description: LS158 - As LS157 only with inverted outputs
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// License: https://www.apache.org/licenses/LICENSE-2.0
//
//////////////////////////////////////////////////////////////////////////////////
module LS158(
input wire G,
input wire SELA,
input wire [3:0] A,
input wire [3:0] B,
output wire [3:0] Y
);
assign Y = G ? ~(SELA ? A : B) : 4'b1;
endmodule