OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [trunk/] [sc_env/] [di_mux.cpp] - Blame information for rev 113

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

Line No. Rev Author Line
1 97 ghutchis
#include "di_mux.h"
2
 
3
void di_mux::event()
4
{
5
        uart_cs_n = 1;
6
 
7
        if (!mreq_n) {
8
                di = di_mem;
9
        } else if (!iorq_n) {
10
                if ((addr & 0xF8) == 0x18) {
11
                        di = di_uart;
12
                        uart_cs_n = 0;
13
                } else
14
                        di = di_resp;
15
        } else
16
                di = 0;
17
}

powered by: WebSVN 2.1.0

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