OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_c/] [jtag/] [jtag_quartus_stp/] [jtag.h] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 alirezamon
/* Copyright 2012 Brian Swetland <swetland@frotz.net>
2
 *
3
 * Licensed under the Apache License, Version 2.0 (the "License");
4
 * you may not use this file except in compliance with the License.
5
 * You may obtain a copy of the License at
6
 *
7
 *     http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 * Unless required by applicable law or agreed to in writing, software
10
 * distributed under the License is distributed on an "AS IS" BASIS,
11
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 * See the License for the specific language governing permissions and
13
 * limitations under the License.
14
 */
15
 
16
#ifndef _JTAG_H_
17
#define _JTAG_H_
18
 
19
 
20
#define UPDATE_WB_ADDR  0x7
21
#define UPDATE_WB_WR_DATA  0x6
22
#define UPDATE_WB_RD_DATA  0x5
23
#define RD_WR_STATUS    0x4
24
 
25
#define BIT_NUM         (word_width<<3) 
26
#define BYTE_NUM         word_width     
27
/* Global vars */
28
unsigned int index_num=126;
29
unsigned int word_width=4; // 
30
unsigned int write_verify=0;
31
unsigned int memory_offset=0;
32
unsigned int memory_boundary=0xFFFFFFFF;
33
 
34
// de10-nano 
35
char default_hardware[]="DE-SoC *";
36
char default_dev_num[]="@2*";
37
 
38
char * hardware_name=default_hardware;
39
char * dev_num=default_dev_num;
40
 
41
char * binary_file_name=0;
42
char enable_binary_send=0;
43
char enable_binary_read=0;
44
char * write_data=0;
45
 
46
 
47
/* altera virtual jtag support */
48
int jtag_init(char *hrdname, char *dvicname );
49
void jtag_vir(unsigned vir);
50
void jtag_vdr(unsigned sz, unsigned bits, unsigned *out);
51
void jtag_vdr_long(unsigned , unsigned * , unsigned *, int );
52
 
53
#include "jtag.c"
54
 
55
#endif

powered by: WebSVN 2.1.0

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