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:21:31 2014"
|
18 |
|
|
|
19 |
|
|
module alu_bit_select(
|
20 |
|
|
bsel,
|
21 |
|
|
bs_out_high,
|
22 |
|
|
bs_out_low
|
23 |
|
|
);
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
input wire [2:0] bsel;
|
27 |
|
|
output wire [3:0] bs_out_high;
|
28 |
|
|
output wire [3:0] bs_out_low;
|
29 |
|
|
|
30 |
|
|
wire [3:0] bs_out_high_ALTERA_SYNTHESIZED;
|
31 |
|
|
wire [3:0] bs_out_low_ALTERA_SYNTHESIZED;
|
32 |
|
|
wire SYNTHESIZED_WIRE_12;
|
33 |
|
|
wire SYNTHESIZED_WIRE_13;
|
34 |
|
|
wire SYNTHESIZED_WIRE_14;
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
assign bs_out_low_ALTERA_SYNTHESIZED[0] = SYNTHESIZED_WIRE_12 & SYNTHESIZED_WIRE_13 & SYNTHESIZED_WIRE_14;
|
40 |
|
|
|
41 |
|
|
assign bs_out_low_ALTERA_SYNTHESIZED[1] = bsel[0] & SYNTHESIZED_WIRE_13 & SYNTHESIZED_WIRE_14;
|
42 |
|
|
|
43 |
|
|
assign bs_out_low_ALTERA_SYNTHESIZED[2] = SYNTHESIZED_WIRE_12 & bsel[1] & SYNTHESIZED_WIRE_14;
|
44 |
|
|
|
45 |
|
|
assign bs_out_low_ALTERA_SYNTHESIZED[3] = bsel[0] & bsel[1] & SYNTHESIZED_WIRE_14;
|
46 |
|
|
|
47 |
|
|
assign bs_out_high_ALTERA_SYNTHESIZED[0] = SYNTHESIZED_WIRE_12 & SYNTHESIZED_WIRE_13 & bsel[2];
|
48 |
|
|
|
49 |
|
|
assign bs_out_high_ALTERA_SYNTHESIZED[1] = bsel[0] & SYNTHESIZED_WIRE_13 & bsel[2];
|
50 |
|
|
|
51 |
|
|
assign bs_out_high_ALTERA_SYNTHESIZED[2] = SYNTHESIZED_WIRE_12 & bsel[1] & bsel[2];
|
52 |
|
|
|
53 |
|
|
assign bs_out_high_ALTERA_SYNTHESIZED[3] = bsel[0] & bsel[1] & bsel[2];
|
54 |
|
|
|
55 |
|
|
assign SYNTHESIZED_WIRE_12 = ~bsel[0];
|
56 |
|
|
|
57 |
|
|
assign SYNTHESIZED_WIRE_13 = ~bsel[1];
|
58 |
|
|
|
59 |
|
|
assign SYNTHESIZED_WIRE_14 = ~bsel[2];
|
60 |
|
|
|
61 |
|
|
assign bs_out_high = bs_out_high_ALTERA_SYNTHESIZED;
|
62 |
|
|
assign bs_out_low = bs_out_low_ALTERA_SYNTHESIZED;
|
63 |
|
|
|
64 |
|
|
endmodule
|