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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [port.h] - Blame information for rev 51

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3 51 dgisselq
// Filename:    port.h
4 4 dgisselq
//
5
// Project:     OpenArty, an entirely open SoC based upon the Arty platform
6
//
7 51 dgisselq
// Purpose:     Defines the communication parameters necessary for communicating
8
//              with the device.
9 4 dgisselq
//
10 51 dgisselq
//
11 4 dgisselq
// Creator:     Dan Gisselquist, Ph.D.
12
//              Gisselquist Technology, LLC
13
//
14
////////////////////////////////////////////////////////////////////////////////
15
//
16 51 dgisselq
// Copyright (C) 2015-2017, Gisselquist Technology, LLC
17 4 dgisselq
//
18
// This program is free software (firmware): you can redistribute it and/or
19
// modify it under the terms of  the GNU General Public License as published
20
// by the Free Software Foundation, either version 3 of the License, or (at
21
// your option) any later version.
22
//
23
// This program is distributed in the hope that it will be useful, but WITHOUT
24
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
// for more details.
27
//
28
// You should have received a copy of the GNU General Public License along
29 51 dgisselq
// with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
30 4 dgisselq
// target there if the PDF file isn't present.)  If not, see
31
// <http://www.gnu.org/licenses/> for a copy.
32
//
33
// License:     GPL, v3, as defined and found on www.gnu.org,
34
//              http://www.gnu.org/licenses/gpl.html
35
//
36
//
37
////////////////////////////////////////////////////////////////////////////////
38
//
39
//
40
#ifndef PORT_H
41
#define PORT_H
42
 
43 51 dgisselq
// There are two ways to connect: via a serial port, and via a TCP socket
44
// connected to a serial port.  This way, we can connect the device on one
45
// computer, test it, and when/if it doesn't work we can replace the device
46
// with the test-bench.  Across the network, no one will know any better that
47
// anything had changed.
48
#define FPGAHOST        "localhost"
49 4 dgisselq
#define FPGATTY         "/dev/ttyUSB1"
50 6 dgisselq
#define FPGAPORT        6510
51 4 dgisselq
 
52
#ifndef FORCE_UART
53
#define FPGAOPEN(V) V= new FPGA(new NETCOMMS(FPGAHOST, FPGAPORT))
54
#else
55
#define FPGAOPEN(V) V= new FPGA(new TTYCOMMS(FPGATTY))
56
#endif
57
 
58
#endif

powered by: WebSVN 2.1.0

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