Skip to content

yixiaoyang/leon-wsn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                         \\\|///
                       \\  - -  //
                        (  @ @  )
+---------------------oOOo-(_)-oOOo-------------------------+
|                                                           |
|                        README TXT                         |
|                   	By yixiaoyang                       |
|                        2011-11-15                         |
|                                                           |
|                          					                |
|                      www.hit.edu.cn                       |
|                                                           |
|                            Oooo                           |
+----------------------oooO--(   )--------------------------+
                      (   )   ) /
                       \ (   (_/
                        \_)     
                        
+---------------+
|	HISTORY		|
+---------------+
2011-9-25
	--create it.

2011-9-25
	--add ov9650 driver. 

2011-10-25
	--add FATFS

2011-11-15
	--opdk update to version 2.0
	
2012-1-7
	--sync with git-hub

2012-3-1
	--port ecos spi driver to DE2-70
	
2012-5-4
	--integration of software project

2012-5-12
	--add interrupt testing code in intr.c/intr.h
	--add gpio-irq interface
	--next step:testing irq & interrupt
	
+---------------+
|	IO PINS		|
+---------------+
/*GPIO PORTA PORTB */
gpio[0-13] 	==> IO_B[0-13]


PORTA:
	gpio[0-7] for camera input
PORTB:
	gpio[8] for spi2
	gpio[9] for spi2
	gpio[10] for spi2

PORTC:
	/*LED*/
	gpio[16-17]	==>	LED_G[0-1]
	/*SPI*/
	gpio[18-22]	==>	spi

PORTD:
	gpio[24-21]
/*UART1*/
UART1_RX	==>	IO_B[29]
UART1_TX	==>	IO_B[28]

/*EXTERN CLOCK 24MHZ*/
CLOCK_24	==>	IO_B[31]
MYPLL_EN	==>	IO_B[30]	<==	PORTE[0]

+---------------+
|				|
+---------------+
# Project-Wide Assignments
# ========================
#set_global_assignment -name ORIGINAL_QUARTUS_VERSION "4.1 SP2"
#set_global_assignment -name PROJECT_CREATION_TIME_DATE "16:13:08 DECEMBER 01, 2004"

# Explicitly disable TimeQuest since the GRLIB flow invokes the classical
# timing analyzer and USE_TIMEQUEST_TIMING_ANALYZER defaults to "ON"
# set_global_assignment -name USE_TIMEQUEST_TIMING_ANALYZER "OFF"


set_global_assignment -name TOP_LEVEL_ENTITY "fpga_top"
#============================================================
set_global_assignment -name FAMILY "Cyclone II"
set_global_assignment -name DEVICE EP2C70F896C6

######
set_global_assignment -name RESERVE_ASDO_AFTER_CONFIGURATION "AS INPUT TRI-STATED"

#######
#============================================================
# CLOCK
#============================================================
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK_50
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK2_50
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK3_50
set_location_assignment PIN_AD15 -to CLOCK_50
set_location_assignment PIN_D16 -to CLOCK2_50
set_location_assignment PIN_R28 -to CLOCK3_50

# IO_B[31] ==> 24MHZ CLK; IO_B[30] ==> 24MHZ CLK ENABLE 
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to CLOCK_24
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to MYPLL_EN
set_location_assignment PIN_P30 -to CLOCK_24
set_location_assignment PIN_R22 -to MYPLL_EN

#============================================================
# LED
#============================================================
set_location_assignment PIN_AJ6 -to LEDR[0]
set_location_assignment PIN_AK5 -to LEDR[1]
set_location_assignment PIN_AJ5 -to LEDR[2]
set_location_assignment PIN_AJ4 -to LEDR[3]
set_location_assignment PIN_AK3 -to LEDR[4]
set_location_assignment PIN_AH4 -to LEDR[5]
set_location_assignment PIN_AJ3 -to LEDR[6]
set_location_assignment PIN_AJ2 -to LEDR[7]
set_location_assignment PIN_AH3 -to LEDR[8]
set_location_assignment PIN_AD14 -to LEDR[9]
set_location_assignment PIN_AC13 -to LEDR[10]
set_location_assignment PIN_AB13 -to LEDR[11]
set_location_assignment PIN_AC12 -to LEDR[12]
set_location_assignment PIN_AB12 -to LEDR[13]
set_location_assignment PIN_AC11 -to LEDR[14]
set_location_assignment PIN_AD9 -to LEDR[15]
set_location_assignment PIN_AD8 -to LEDR[16]
set_location_assignment PIN_AJ7 -to LEDR[17]
#============================================================
# KEY
#============================================================
set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[0]
set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[1]
set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[2]
set_instance_assignment -name IO_STANDARD "2.5 V" -to KEY[3]

set_location_assignment PIN_T29 -to KEY[0]
set_location_assignment PIN_T28 -to KEY[1]
set_location_assignment PIN_U30 -to KEY[2]
set_location_assignment PIN_U29 -to KEY[3]
#============================================================
# SW
#============================================================
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[0]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[1]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[2]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[3]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[4]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[5]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[6]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[7]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[8]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[9]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[10]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[11]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[12]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[13]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[14]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[15]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[16]
set_instance_assignment -name IO_STANDARD "2.5 V" -to SW[17]

set_location_assignment PIN_AA23 -to SW[0]
set_location_assignment PIN_AB26 -to SW[1]
set_location_assignment PIN_AB25 -to SW[2]
set_location_assignment PIN_AC27 -to SW[3]
set_location_assignment PIN_AC26 -to SW[4]
set_location_assignment PIN_AC24 -to SW[5]
set_location_assignment PIN_AC23 -to SW[6]
set_location_assignment PIN_AD25 -to SW[7]
set_location_assignment PIN_AD24 -to SW[8]
set_location_assignment PIN_AE27 -to SW[9]
set_location_assignment PIN_W5 -to SW[10]
set_location_assignment PIN_V10 -to SW[11]
set_location_assignment PIN_U9 -to SW[12]
set_location_assignment PIN_T9 -to SW[13]
set_location_assignment PIN_L5 -to SW[14]
set_location_assignment PIN_L4 -to SW[15]
set_location_assignment PIN_L7 -to SW[16]
set_location_assignment PIN_L8 -to SW[17]

#============================================================
# SDRAM
#============================================================
set_location_assignment PIN_AC1 -to DRAM_DQ[0]
set_location_assignment PIN_AC2 -to DRAM_DQ[1]
set_location_assignment PIN_AC3 -to DRAM_DQ[2]
set_location_assignment PIN_AD1 -to DRAM_DQ[3]
set_location_assignment PIN_AD2 -to DRAM_DQ[4]
set_location_assignment PIN_AD3 -to DRAM_DQ[5]
set_location_assignment PIN_AE1 -to DRAM_DQ[6]
set_location_assignment PIN_AE2 -to DRAM_DQ[7]
set_location_assignment PIN_AE3 -to DRAM_DQ[8]
set_location_assignment PIN_AF1 -to DRAM_DQ[9]
set_location_assignment PIN_AF2 -to DRAM_DQ[10]
set_location_assignment PIN_AF3 -to DRAM_DQ[11]
set_location_assignment PIN_AG2 -to DRAM_DQ[12]
set_location_assignment PIN_AG3 -to DRAM_DQ[13]
set_location_assignment PIN_AH1 -to DRAM_DQ[14]
set_location_assignment PIN_AH2 -to DRAM_DQ[15]
set_location_assignment PIN_U1 -to DRAM_DQ[16]
set_location_assignment PIN_U2 -to DRAM_DQ[17]
set_location_assignment PIN_U3 -to DRAM_DQ[18]
set_location_assignment PIN_V2 -to DRAM_DQ[19]
set_location_assignment PIN_V3 -to DRAM_DQ[20]
set_location_assignment PIN_W1 -to DRAM_DQ[21]
set_location_assignment PIN_W2 -to DRAM_DQ[22]
set_location_assignment PIN_W3 -to DRAM_DQ[23]
set_location_assignment PIN_Y1 -to DRAM_DQ[24]
set_location_assignment PIN_Y2 -to DRAM_DQ[25]
set_location_assignment PIN_Y3 -to DRAM_DQ[26]
set_location_assignment PIN_AA1 -to DRAM_DQ[27]
set_location_assignment PIN_AA2 -to DRAM_DQ[28]
set_location_assignment PIN_AA3 -to DRAM_DQ[29]
set_location_assignment PIN_AB1 -to DRAM_DQ[30]
set_location_assignment PIN_AB2 -to DRAM_DQ[31]

set_location_assignment PIN_V9 -to DRAM_DQM[0]
set_location_assignment PIN_AB6 -to DRAM_DQM[1]
set_location_assignment PIN_M10 -to DRAM_DQM[2]
set_location_assignment PIN_U8 -to DRAM_DQM[3]

# DRAM0
set_location_assignment PIN_AA4 -to DRAM0_ADDR[0]
set_location_assignment PIN_AA5 -to DRAM0_ADDR[1]
set_location_assignment PIN_AA6 -to DRAM0_ADDR[2]
set_location_assignment PIN_AB5 -to DRAM0_ADDR[3]
set_location_assignment PIN_AB7 -to DRAM0_ADDR[4]
set_location_assignment PIN_AC4 -to DRAM0_ADDR[5]
set_location_assignment PIN_AC5 -to DRAM0_ADDR[6]
set_location_assignment PIN_AC6 -to DRAM0_ADDR[7]
set_location_assignment PIN_AD4 -to DRAM0_ADDR[8]
set_location_assignment PIN_AC7 -to DRAM0_ADDR[9]
set_location_assignment PIN_Y8 -to DRAM0_ADDR[10]
set_location_assignment PIN_AE4 -to DRAM0_ADDR[11]
set_location_assignment PIN_AF4 -to DRAM0_ADDR[12]
set_location_assignment PIN_AA9 -to DRAM0_BA[0]
set_location_assignment PIN_AA10 -to DRAM0_BA[1]
set_location_assignment PIN_W10 -to DRAM0_CAS_N
set_location_assignment PIN_AA8 -to DRAM0_CKE
set_location_assignment PIN_AD6 -to DRAM0_CLK
set_location_assignment PIN_Y10 -to DRAM0_CS_N
set_location_assignment PIN_Y9 -to DRAM0_RAS_N
set_location_assignment PIN_W9 -to DRAM0_WE_N
# DRAM1
set_location_assignment PIN_T5 -to DRAM1_ADDR[0]
set_location_assignment PIN_T6 -to DRAM1_ADDR[1]
set_location_assignment PIN_U4 -to DRAM1_ADDR[2]
set_location_assignment PIN_U6 -to DRAM1_ADDR[3]
set_location_assignment PIN_U7 -to DRAM1_ADDR[4]
set_location_assignment PIN_V7 -to DRAM1_ADDR[5]
set_location_assignment PIN_V8 -to DRAM1_ADDR[6]
set_location_assignment PIN_W4 -to DRAM1_ADDR[7]
set_location_assignment PIN_W7 -to DRAM1_ADDR[8]
set_location_assignment PIN_W8 -to DRAM1_ADDR[9]
set_location_assignment PIN_T4 -to DRAM1_ADDR[10]
set_location_assignment PIN_Y4 -to DRAM1_ADDR[11]
set_location_assignment PIN_Y7 -to DRAM1_ADDR[12]
set_location_assignment PIN_T7 -to DRAM1_BA[0]
set_location_assignment PIN_T8 -to DRAM1_BA[1]
set_location_assignment PIN_N8 -to DRAM1_CAS_N
set_location_assignment PIN_L10 -to DRAM1_CKE
set_location_assignment PIN_G5 -to DRAM1_CLK
set_location_assignment PIN_P9 -to DRAM1_CS_N
set_location_assignment PIN_N9 -to DRAM1_RAS_N
set_location_assignment PIN_M9 -to DRAM1_WE_N

#============================================================
# FLASH
#============================================================
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[3]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[4]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[5]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[6]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[7]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[8]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[9]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[10]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[11]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[12]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[13]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[14]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[15]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[16]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[17]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[18]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[19]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[20]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_ADDR[21]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[3]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[4]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[5]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[6]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[7]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[8]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[9]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[10]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[11]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[12]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[13]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[14]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_DQ[15]

#set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_BYTE_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_CE_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_OE_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_RST_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_RY_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_WE_N
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to FL_WP_N


set_location_assignment PIN_AF24 -to FL_ADDR[0]
set_location_assignment PIN_AG24 -to FL_ADDR[1]
set_location_assignment PIN_AE23 -to FL_ADDR[2]
set_location_assignment PIN_AG23 -to FL_ADDR[3]
set_location_assignment PIN_AF23 -to FL_ADDR[4]
set_location_assignment PIN_AG22 -to FL_ADDR[5]
set_location_assignment PIN_AH22 -to FL_ADDR[6]
set_location_assignment PIN_AF22 -to FL_ADDR[7]
set_location_assignment PIN_AH27 -to FL_ADDR[8]
set_location_assignment PIN_AJ27 -to FL_ADDR[9]
set_location_assignment PIN_AH26 -to FL_ADDR[10]
set_location_assignment PIN_AJ26 -to FL_ADDR[11]
set_location_assignment PIN_AK26 -to FL_ADDR[12]
set_location_assignment PIN_AJ25 -to FL_ADDR[13]
set_location_assignment PIN_AK25 -to FL_ADDR[14]
set_location_assignment PIN_AH24 -to FL_ADDR[15]
set_location_assignment PIN_AG25 -to FL_ADDR[16]
set_location_assignment PIN_AF21 -to FL_ADDR[17]
set_location_assignment PIN_AD21 -to FL_ADDR[18]
set_location_assignment PIN_AK28 -to FL_ADDR[19]
set_location_assignment PIN_AJ28 -to FL_ADDR[20]
set_location_assignment PIN_AE20 -to FL_ADDR[21]
set_location_assignment PIN_AF29 -to FL_DQ[0]
set_location_assignment PIN_AE28 -to FL_DQ[1]
set_location_assignment PIN_AE30 -to FL_DQ[2]
set_location_assignment PIN_AD30 -to FL_DQ[3]
set_location_assignment PIN_AC29 -to FL_DQ[4]
set_location_assignment PIN_AB29 -to FL_DQ[5]
set_location_assignment PIN_AA29 -to FL_DQ[6]
set_location_assignment PIN_Y28 -to FL_DQ[7]
set_location_assignment PIN_AF30 -to FL_DQ[8]
set_location_assignment PIN_AE29 -to FL_DQ[9]
set_location_assignment PIN_AD29 -to FL_DQ[10]
set_location_assignment PIN_AC28 -to FL_DQ[11]
set_location_assignment PIN_AC30 -to FL_DQ[12]
set_location_assignment PIN_AB30 -to FL_DQ[13]
set_location_assignment PIN_AA30 -to FL_DQ[14]
set_location_assignment PIN_AE24 -to FL_DQ[15]

#set_location_assignment PIN_Y29 -to FL_BYTE_N
set_location_assignment PIN_AG28 -to FL_CE_N
set_location_assignment PIN_AG29 -to FL_OE_N
set_location_assignment PIN_AH28 -to FL_RST_N
set_location_assignment PIN_AH30 -to FL_RY_N
set_location_assignment PIN_AJ29 -to FL_WE_N
set_location_assignment PIN_AH29 -to FL_WP_N
#============================================================
# GPIO
#============================================================
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[3]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[4]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[5]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[6]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[7]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[8]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[9]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[10]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[11]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[12]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[13]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[14]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[15]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[16]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[17]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[18]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[19]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[20]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[21]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[22]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[23]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[24]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[25]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[26]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[27]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[28]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[29]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[30]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[31]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[32]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[33]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[34]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[35]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[36]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[37]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[38]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[39]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[40]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[41]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[42]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to GPIO[43]



#xiaoyang start
########################################################
#	PORTA <==> IO_B[0-7]
#	PIN_G27 ==> IO_B[0] ==> GPIO[0]	
#	PIN_G28	==>	IO_B[1] ==>	GPIO[1]
#	PIN_H27	==> IO_B[2] ==> GPIO[2]
#	PIN_L24	==> IO_B[3] ==> GPIO[3]
#	PIN_H28	==> IO_B[4] ==> GPIO[4]
#	PIN_L25	==> IO_B[5] ==> GPIO[5]
#	PIN_K27	==> IO_B[6] ==> GPIO[6]
#	PIN_L28	==> IO_B[7] ==> GPIO[7]
########################################################
set_location_assignment PIN_G27 -to GPIO[0]
set_location_assignment PIN_G28 -to GPIO[1]
set_location_assignment PIN_H27 -to GPIO[2]
set_location_assignment PIN_L24 -to GPIO[3]
set_location_assignment PIN_H28 -to GPIO[4]
set_location_assignment PIN_L25 -to GPIO[5]
set_location_assignment PIN_K27 -to GPIO[6]
set_location_assignment PIN_L28 -to GPIO[7]


########################################################
#	PORTB ==> IO_B[8-15]
#	PIN_K28 ==> IO_B[8] ==> GPIO[8]	
#	PIN_L27	==>	IO_B[9] ==>	GPIO[9]
#	PIN_K29	==> IO_B[10] ==> GPIO[10]
#	PIN_M25	==> IO_B[11] ==> GPIO[11]
#	PIN_K29	==> IO_B[12] ==> GPIO[12]
#	PIN_M25	==> IO_B[13] ==> GPIO[13]
#	PIN_L29	==> IO_B[14] ==> GPIO[14]
#	PIN_L30	==> IO_B[15] ==> GPIO[15]
########################################################
set_location_assignment PIN_K28 -to GPIO[8]
set_location_assignment PIN_L27 -to GPIO[9]
set_location_assignment PIN_K29 -to GPIO[10]
set_location_assignment PIN_M25 -to GPIO[11]
set_location_assignment PIN_K30 -to GPIO[12]
set_location_assignment PIN_M24 -to GPIO[13]
set_location_assignment PIN_L29 -to GPIO[14]
set_location_assignment PIN_L30 -to GPIO[15]

########################################################
#	PORTC
#	GPIO[16] ==> LEDR[0]	
#	GPIO[17] ==> LEDR[1]
########################################################
set_location_assignment PIN_W27 -to GPIO[16]
set_location_assignment PIN_W25 -to GPIO[17]

########################################################
#	PORTC
#	PIN_J30 ==> IO_A[18] ==> GPIO[18]	
#	PIN_H24	==>	IO_A[19] ==>	GPIO[19]
#	PIN_J25	==> IO_A[20] ==> GPIO[20]
#	PIN_K24	==> IO_A[21] ==> GPIO[21]
#	PIN_J24	==> IO_A[22] ==> GPIO[22]
########################################################
# SPI I/F
set_location_assignment PIN_J30 -to GPIO[18]
set_location_assignment PIN_H24 -to GPIO[19]
set_location_assignment PIN_J25 -to GPIO[20]
set_location_assignment PIN_K24 -to GPIO[21]
set_location_assignment PIN_J24 -to GPIO[22]

########################################################
#	AHB UART
#	PIN_D21 ==> UART_RXD ==> GPIO[28]
#	PIN_E21	==>	UART_TXD ==> GPIO[29]
#	gpio aux..
########################################################
set_location_assignment PIN_D21 -to GPIO[28]
set_location_assignment PIN_E21 -to GPIO[29]

########################################################
#	PORTE[0-7] <==> IO_A[0-7]
#	GPIO[32] ==> IO_A[0] ==> PIN_C30	
#	GPIO[33] ==> IO_A[1] ==> PIN_C29
#	GPIO[34] ==> IO_A[2] ==> PIN_E28	
#	GPIO[35] ==> IO_A[3] ==> PIN_D29
#	GPIO[36] ==> IO_A[4] ==> PIN_E27	
#	GPIO[37] ==> IO_A[5] ==> PIN_D28
#	GPIO[38] ==> IO_A[6] ==> PIN_E29	
#	GPIO[39] ==> IO_A[7] ==> PIN_G25	
########################################################
set_location_assignment PIN_C30 -to GPIO[32]
set_location_assignment PIN_C29 -to GPIO[33]
set_location_assignment PIN_E28 -to GPIO[34]
set_location_assignment PIN_D29 -to GPIO[35]
set_location_assignment PIN_E27 -to GPIO[36]
set_location_assignment PIN_D28 -to GPIO[37]
set_location_assignment PIN_E29 -to GPIO[38]
set_location_assignment PIN_G25 -to GPIO[39]
########################################################
#xiaoyang end

#================================================================
# SPI
#================================================================
#set_location_assignment PIN_C30 -to GPIO[18]
#set_location_assignment PIN_C29 -to GPIO[19]
#set_location_assignment PIN_D29 -to GPIO[20]
#set_location_assignment PIN_D28 -to GPIO[21]
#set_location_assignment PIN_G25 -to GPIO[22]
#================================================================
# LED Indicator
#================================================================
#set_location_assignment PIN_W27 -to LEDG[0]
#set_location_assignment PIN_W25 -to LEDG[1]
#set_location_assignment PIN_W23 -to LEDG[2]
#set_location_assignment PIN_Y27 -to LEDG[3]
#set_location_assignment PIN_Y24 -to LEDG[4]
#set_location_assignment PIN_Y23 -to LEDG[5]
#set_location_assignment PIN_AA27 -to LEDG[6]
#set_location_assignment PIN_AA24 -to LEDG[7]
#set_location_assignment PIN_AA24 -to GPIO[43]
#================================================================
# AUDIO
#================================================================
# set_location_assignment PIN_E30 -to GPIO[34]
# set_location_assignment PIN_F29 -to GPIO[35]
# set_location_assignment PIN_F30 -to GPIO[36]

About

wsn project based on leon3 processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages