OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [alu/] [alu_mux_4.v] - Blame information for rev 21

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

Line No. Rev Author Line
1 3 gdevic
// Copyright (C) 1991-2013 Altera Corporation
2
// Your use of Altera Corporation's design tools, logic functions 
3
// and other software and tools, and its AMPP partner logic 
4
// functions, and any output files from any of the foregoing 
5
// (including device programming or simulation files), and any 
6
// associated documentation or information are expressly subject 
7
// to the terms and conditions of the Altera Program License 
8
// Subscription Agreement, Altera MegaCore Function License 
9
// Agreement, or other applicable license agreement, including, 
10
// without limitation, that your use is for the sole purpose of 
11
// programming logic devices manufactured by Altera and sold by 
12
// Altera or its authorized distributors.  Please refer to the 
13
// applicable agreement for further details.
14
 
15
// PROGRAM              "Quartus II 64-Bit"
16
// VERSION              "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
17
// CREATED              "Mon Oct 13 12:05:38 2014"
18
 
19
module alu_mux_4(
20
        in0,
21
        in1,
22
        in2,
23
        in3,
24
        sel,
25
        out
26
);
27
 
28
 
29
input wire      in0;
30
input wire      in1;
31
input wire      in2;
32
input wire      in3;
33
input wire      [1:0] sel;
34
output wire     out;
35
 
36
wire    SYNTHESIZED_WIRE_8;
37
wire    SYNTHESIZED_WIRE_9;
38
wire    SYNTHESIZED_WIRE_4;
39
wire    SYNTHESIZED_WIRE_5;
40
wire    SYNTHESIZED_WIRE_6;
41
wire    SYNTHESIZED_WIRE_7;
42
 
43
 
44
 
45
 
46
assign  SYNTHESIZED_WIRE_4 = SYNTHESIZED_WIRE_8 & SYNTHESIZED_WIRE_9 & in0;
47
 
48
assign  SYNTHESIZED_WIRE_7 = sel[0] & SYNTHESIZED_WIRE_9 & in1;
49
 
50
assign  SYNTHESIZED_WIRE_5 = SYNTHESIZED_WIRE_8 & sel[1] & in2;
51
 
52
assign  SYNTHESIZED_WIRE_6 = sel[0] & sel[1] & in3;
53
 
54
assign  out = SYNTHESIZED_WIRE_4 | SYNTHESIZED_WIRE_5 | SYNTHESIZED_WIRE_6 | SYNTHESIZED_WIRE_7;
55
 
56
assign  SYNTHESIZED_WIRE_8 =  ~sel[0];
57
 
58
assign  SYNTHESIZED_WIRE_9 =  ~sel[1];
59
 
60
 
61
endmodule

powered by: WebSVN 2.1.0

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