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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [toplevel/] [z80_top_direct_n.v] - Blame information for rev 22

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

Line No. Rev Author Line
1 8 gdevic
//============================================================================
2
// Z80 Top level using the direct module declaration
3
//============================================================================
4
`timescale 1us/ 100 ns
5
 
6
module z80_top_direct_n(
7
    output wire nM1,
8
    output wire nMREQ,
9
    output wire nIORQ,
10
    output wire nRD,
11
    output wire nWR,
12
    output wire nRFSH,
13
    output wire nHALT,
14
    output wire nBUSACK,
15
 
16
    input wire nWAIT,
17
    input wire nINT,
18
    input wire nNMI,
19
    input wire nRESET,
20
    input wire nBUSRQ,
21
 
22
    input wire CLK,
23
    output wire [15:0] A,
24
    inout wire [7:0] D
25
);
26
 
27
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28
// Include core A-Z80 level connecting all internal modules
29
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30
`include "core.vh"
31
 
32
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
// Address, Data and Control bus drivers connecting to external pins
34
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35
address_pins address_pins_(
36
    .clk            (clk),
37
    .bus_ab_pin_we  (bus_ab_pin_we),
38
    .pin_control_oe (pin_control_oe),
39
    .address        (address),
40
    .abus           (A)
41
);
42
 
43
data_pins data_pins_(
44
    .bus_db_pin_oe  (bus_db_pin_oe),
45
    .bus_db_pin_re  (bus_db_pin_re),
46
    .ctl_bus_db_we  (ctl_bus_db_we),
47
    .ctl_bus_db_oe  (ctl_bus_db_oe),
48
    .clk            (clk),
49
    .db             (db0),
50
    .D              (D)
51
);
52
 
53
control_pins_n control_pins_(
54
    .busack        (busack),
55
    .CPUCLK        (CLK),
56
    .pin_control_oe(pin_control_oe),
57
    .in_halt       (in_halt),
58
    .pin_nWAIT     (nWAIT),
59
    .pin_nBUSRQ    (nBUSRQ),
60
    .pin_nINT      (nINT),
61
    .pin_nNMI      (nNMI),
62
    .pin_nRESET    (nRESET),
63
    .nM1_out       (nM1_out),
64
    .nRFSH_out     (nRFSH_out),
65
    .nRD_out       (nRD_out),
66
    .nWR_out       (nWR_out),
67
    .nIORQ_out     (nIORQ_out),
68
    .nMREQ_out     (nMREQ_out),
69
    .nmi           (nmi),
70
    .busrq         (busrq),
71
    .clk           (clk),
72
    .intr          (intr),
73
    .mwait         (mwait),
74
    .reset_in      (reset_in),
75
    .pin_nM1       (nM1),
76
    .pin_nMREQ     (nMREQ),
77
    .pin_nIORQ     (nIORQ),
78
    .pin_nRD       (nRD),
79
    .pin_nWR       (nWR),
80
    .pin_nRFSH     (nRFSH),
81
    .pin_nHALT     (nHALT),
82
    .pin_nBUSACK   (nBUSACK)
83
 );
84
 
85
endmodule

powered by: WebSVN 2.1.0

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