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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [bus/] [bus_switch.v] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 gdevic
//============================================================================
2
// Bus switch in bus A-Z80 CPU
3
//
4
// Copyright 2014, 2016 Goran Devic
5
//
6
// This module provides control data bus switch signals. The sole purpose of
7
// having these wires defined in this module is to get all control signals
8
// (which are processed by genglobals.py) to appear in the list of global
9
// control signals ("globals.vh") for consistency.
10
//============================================================================
11
 
12
module bus_switch
13
(
14
    input wire ctl_sw_1u,               // Control input for the SW1 upstream
15
    input wire ctl_sw_1d,               // Control input for the SW1 downstream
16
 
17
    input wire ctl_sw_2u,               // Control input for the SW2 upstream
18
    input wire ctl_sw_2d,               // Control input for the SW2 downstream
19
 
20
    input wire ctl_sw_mask543_en,       // Enables masking [5:3] on the data bus switch 1
21
 
22
    //--------------------------------------------------------------------
23
 
24
    output wire bus_sw_1u,              // SW1 upstream
25
    output wire bus_sw_1d,              // SW1 downstream
26
 
27
    output wire bus_sw_2u,              // SW2 upstream
28
    output wire bus_sw_2d,              // SW2 downstream
29
 
30
    output wire bus_sw_mask543_en       // Affects SW1 downstream
31
);
32
 
33
assign bus_sw_1u = ctl_sw_1u;
34
assign bus_sw_1d = ctl_sw_1d;
35
 
36
assign bus_sw_2u = ctl_sw_2u;
37
assign bus_sw_2d = ctl_sw_2d;
38
 
39
assign bus_sw_mask543_en = ctl_sw_mask543_en;
40
 
41
endmodule

powered by: WebSVN 2.1.0

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