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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [alu/] [alu_core.v] - Blame information for rev 11

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:17:04 2014"
18
 
19
module alu_core(
20
        cy_in,
21
        S,
22
        V,
23
        R,
24
        op1,
25
        op2,
26
        cy_out,
27
        vf_out,
28
        result
29
);
30
 
31
 
32
input wire      cy_in;
33
input wire      S;
34
input wire      V;
35
input wire      R;
36
input wire      [3:0] op1;
37
input wire      [3:0] op2;
38
output wire     cy_out;
39
output wire     vf_out;
40
output wire     [3:0] result;
41
 
42
wire    [3:0] result_ALTERA_SYNTHESIZED;
43
wire    SYNTHESIZED_WIRE_0;
44
wire    SYNTHESIZED_WIRE_1;
45
wire    SYNTHESIZED_WIRE_5;
46
wire    SYNTHESIZED_WIRE_3;
47
 
48
assign  cy_out = SYNTHESIZED_WIRE_3;
49
 
50
 
51
 
52
 
53
alu_slice       b2v_alu_slice_bit_0(
54
        .cy_in(cy_in),
55
        .op1(op1[0]),
56
        .op2(op2[0]),
57
        .S(S),
58
        .V(V),
59
        .R(R),
60
        .result(result_ALTERA_SYNTHESIZED[0]),
61
        .cy_out(SYNTHESIZED_WIRE_0));
62
 
63
 
64
alu_slice       b2v_alu_slice_bit_1(
65
        .cy_in(SYNTHESIZED_WIRE_0),
66
        .op1(op1[1]),
67
        .op2(op2[1]),
68
        .S(S),
69
        .V(V),
70
        .R(R),
71
        .result(result_ALTERA_SYNTHESIZED[1]),
72
        .cy_out(SYNTHESIZED_WIRE_1));
73
 
74
 
75
alu_slice       b2v_alu_slice_bit_2(
76
        .cy_in(SYNTHESIZED_WIRE_1),
77
        .op1(op1[2]),
78
        .op2(op2[2]),
79
        .S(S),
80
        .V(V),
81
        .R(R),
82
        .result(result_ALTERA_SYNTHESIZED[2]),
83
        .cy_out(SYNTHESIZED_WIRE_5));
84
 
85
 
86
alu_slice       b2v_alu_slice_bit_3(
87
        .cy_in(SYNTHESIZED_WIRE_5),
88
        .op1(op1[3]),
89
        .op2(op2[3]),
90
        .S(S),
91
        .V(V),
92
        .R(R),
93
        .result(result_ALTERA_SYNTHESIZED[3]),
94
        .cy_out(SYNTHESIZED_WIRE_3));
95
 
96
assign  vf_out = SYNTHESIZED_WIRE_3 ^ SYNTHESIZED_WIRE_5;
97
 
98
assign  result = result_ALTERA_SYNTHESIZED;
99
 
100
endmodule

powered by: WebSVN 2.1.0

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