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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [bus/] [control_pins_n.v] - Blame information for rev 3

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              "Sun Nov 16 23:06:14 2014"
18
 
19
module control_pins_n(
20
        busack,
21
        CPUCLK,
22
        pin_control_oe,
23
        in_halt,
24
        pin_nWAIT,
25
        pin_nBUSRQ,
26
        pin_nINT,
27
        pin_nNMI,
28
        pin_nRESET,
29
        nM1_out,
30
        nRFSH_out,
31
        nRD_out,
32
        nWR_out,
33
        nIORQ_out,
34
        nMREQ_out,
35
        nmi,
36
        busrq,
37
        clk,
38
        intr,
39
        mwait,
40
        reset_in,
41
        pin_nM1,
42
        pin_nMREQ,
43
        pin_nIORQ,
44
        pin_nRD,
45
        pin_nWR,
46
        pin_nRFSH,
47
        pin_nHALT,
48
        pin_nBUSACK
49
);
50
 
51
 
52
input wire      busack;
53
input wire      CPUCLK;
54
input wire      pin_control_oe;
55
input wire      in_halt;
56
input wire      pin_nWAIT;
57
input wire      pin_nBUSRQ;
58
input wire      pin_nINT;
59
input wire      pin_nNMI;
60
input wire      pin_nRESET;
61
input wire      nM1_out;
62
input wire      nRFSH_out;
63
input wire      nRD_out;
64
input wire      nWR_out;
65
input wire      nIORQ_out;
66
input wire      nMREQ_out;
67
output wire     nmi;
68
output wire     busrq;
69
output wire     clk;
70
output wire     intr;
71
output wire     mwait;
72
output wire     reset_in;
73
output wire     pin_nM1;
74
output wire     pin_nMREQ;
75
output wire     pin_nIORQ;
76
output wire     pin_nRD;
77
output wire     pin_nWR;
78
output wire     pin_nRFSH;
79
output wire     pin_nHALT;
80
output wire     pin_nBUSACK;
81
 
82
 
83
assign  clk = CPUCLK;
84
assign  pin_nM1 = nM1_out;
85
assign  pin_nRFSH = nRFSH_out;
86
 
87
 
88
 
89
assign  pin_nMREQ = pin_control_oe ? nMREQ_out : 1'bz;
90
 
91
assign  pin_nIORQ = pin_control_oe ? nIORQ_out : 1'bz;
92
 
93
assign  pin_nRD = pin_control_oe ? nRD_out : 1'bz;
94
 
95
assign  pin_nWR = pin_control_oe ? nWR_out : 1'bz;
96
 
97
assign  busrq =  ~pin_nBUSRQ;
98
 
99
assign  pin_nHALT =  ~in_halt;
100
 
101
assign  mwait =  ~pin_nWAIT;
102
 
103
assign  pin_nBUSACK =  ~busack;
104
 
105
assign  intr =  ~pin_nINT;
106
 
107
assign  nmi =  ~pin_nNMI;
108
 
109
assign  reset_in =  ~pin_nRESET;
110
 
111
 
112
endmodule

powered by: WebSVN 2.1.0

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