Skip to content
Permalink
Browse files

Add constraints snippets for various PMODs.

Related to #6

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
  • Loading branch information
smunaut committed Feb 17, 2020
1 parent b445454 commit 2ed5b6cf4faed38a4261a3959c6d210ca963d645
@@ -0,0 +1,20 @@
#
# PCF constraints snipper for DVI 12bits PMOD
#

set_io hdmi_clk 38
set_io hdmi_hsync 31
set_io hdmi_vsync 28
set_io hdmi_de 32
set_io hdmi_b[3] 43
set_io hdmi_b[2] 42
set_io hdmi_b[1] 36
set_io hdmi_b[0] 34
set_io hdmi_g[3] 47
set_io hdmi_g[2] 46
set_io hdmi_g[1] 45
set_io hdmi_g[0] 44
set_io hdmi_r[3] 4
set_io hdmi_r[2] 3
set_io hdmi_r[1] 2
set_io hdmi_r[0] 48
@@ -0,0 +1,30 @@
#
# PCF constraints snipper for DVI 3bits PMOD
#

# PMOD 1A
set_io hdmi_clk 2
set_io hdmi_hsync 47
set_io hdmi_vsync 44
set_io hdmi_de 46
set_io hdmi_r 3
set_io hdmi_g 4
set_io hdmi_b 48

# PMOD 1B
#set_io hdmi_clk 38
#set_io hdmi_hsync 34
#set_io hdmi_vsync 28
#set_io hdmi_de 32
#set_io hdmi_r 42
#set_io hdmi_g 43
#set_io hdmi_b 36

# PMOD 2
#set_io hdmi_clk 25
#set_io hdmi_hsync 21
#set_io hdmi_vsync 18
#set_io hdmi_de 20
#set_io hdmi_r 26
#set_io hdmi_g 27
#set_io hdmi_b 23
@@ -0,0 +1,33 @@
#
# PCF constraints snipper for DVI 4bits PMOD
#

# PMOD 1A
set_io hdmi_clk 2
set_io hdmi_hsync 47
set_io hdmi_vsync 44
set_io hdmi_de 46
set_io hdmi_r 3
set_io hdmi_g 4
set_io hdmi_b 48
set_io hdmi_i 45

# PMOD 1B
#set_io hdmi_clk 38
#set_io hdmi_hsync 34
#set_io hdmi_vsync 28
#set_io hdmi_de 32
#set_io hdmi_r 42
#set_io hdmi_g 43
#set_io hdmi_b 36
#set_io hdmi_i 31

# PMOD 2
#set_io hdmi_clk 25
#set_io hdmi_hsync 21
#set_io hdmi_vsync 18
#set_io hdmi_de 20
#set_io hdmi_r 26
#set_io hdmi_g 27
#set_io hdmi_b 23
#set_io hdmi_i 19
@@ -0,0 +1,19 @@
#
# PCF constraints snippet for HyperRAM PMOD
#

set_io hram_dq[0] 34
set_io hram_dq[1] 36
set_io hram_dq[2] 46
set_io hram_dq[3] 2
set_io hram_dq[4] 48
set_io hram_dq[5] 28
set_io hram_dq[6] 32
set_io hram_dq[7] 38
set_io hram_rwds 47
set_io hram_ck 42
set_io hram_rst_n 45
set_io hram_cs_n[0] 44
set_io hram_cs_n[1] 43
set_io hram_cs_n[2] 4
set_io hram_cs_n[3] 3
@@ -0,0 +1,71 @@
#
# PCF constraints snippet for the HUB75 LED panel single PMOD
#

# PMOD 1A
# -------

# Data for panels with Red on pin 1/5 and Blue on pin 3/7
#set_io -nowarn hub75_data[2] 2 # P1A.2 Red
#set_io -nowarn hub75_data[1] 3 # P1A.7 Green
#set_io -nowarn hub75_data[0] 4 # P1A.1 Blue

# Data for panels with Red on pin 3/7 and Blue on pin 1/5
set_io -nowarn hub75_data[2] 4 # P1A.1 Red
set_io -nowarn hub75_data[1] 3 # P1A.7 Green
set_io -nowarn hub75_data[0] 2 # P1A.2 Blue

# Row address
set_io -nowarn hub75_addr_inc 47 # P1A.3
set_io -nowarn hub75_addr_rst 48 # P1A.8

# Control
set_io -nowarn hub75_clk 46 # P1A.9
set_io -nowarn hub75_le 44 # P1A.10
set_io -nowarn hub75_blank 45 # P1A.4


# PMOD 1B
# -------

# Data for panels with Red on pin 1/5 and Blue on pin 3/7
#set_io hub75_data[2] 38 # P1B.2 Red
#set_io hub75_data[1] 42 # P1B.7 Green
#set_io hub75_data[0] 43 # P1B.1 Blue

# Data for panels with Red on pin 3/7 and Blue on pin 1/5
#set_io hub75_data[2] 43 # P1B.1 Red
#set_io hub75_data[1] 42 # P1B.7 Green
#set_io hub75_data[0] 38 # P1B.2 Blue

# Row address
#set_io hub75_addr_inc 34 # P1B.3
#set_io hub75_addr_rst 36 # P1B.8

# Control
#set_io hub75_clk 32 # P1B.9
#set_io hub75_le 28 # P1B.10
#set_io hub75_blank 31 # P1B.4


# PMOD 2
# ------

# Data for panels with Red on pin 1/5 and Blue on pin 3/7
#set_io hub75_data[2] 25 # P2.2 Red
#set_io hub75_data[1] 26 # P2.7 Green
#set_io hub75_data[0] 27 # P2.1 Blue

# Data for panels with Red on pin 3/7 and Blue on pin 1/5
#set_io hub75_data[2] 27 # P2.1 Red
#set_io hub75_data[1] 26 # P2.7 Green
#set_io hub75_data[0] 25 # P2.2 Blue

# Row address
#set_io hub75_addr_inc 21 # P2.3
#set_io hub75_addr_rst 23 # P2.8

# Control
#set_io hub75_clk 20 # P2.9
#set_io hub75_le 18 # P2.10
#set_io hub75_blank 19 # P2.4
@@ -0,0 +1,31 @@
#
# PCF constraints snippet for the HUB75 LED panel PMOD
#

# Data for panels with Red on pin 1/5 and Blue on pin 3/7
set_io hub75_data[5] 3 # A7 - Red 1
set_io hub75_data[4] 48 # A8 - Green 1
set_io hub75_data[3] 46 # A9 - Blue 1
set_io hub75_data[2] 4 # A1 - Red 0
set_io hub75_data[1] 2 # A2 - Green 0
set_io hub75_data[0] 47 # A3 - Blue 0

# Data for panels with Red on pin 3/7 and Blue on pin 1/5
#set_io hub75_data[5] 46 # A9 - Red 1
#set_io hub75_data[4] 48 # A8 - Green 1
#set_io hub75_data[3] 3 # A7 - Blue 1
#set_io hub75_data[2] 47 # A3 - Red 0
#set_io hub75_data[1] 2 # A2 - Green 0
#set_io hub75_data[0] 4 # A1 - Blue 0

# Row address
set_io hub75_addr[4] 28 # B10
set_io hub75_addr[3] 31 # B4
set_io hub75_addr[2] 34 # B3
set_io hub75_addr[1] 38 # B2
set_io hub75_addr[0] 43 # B1

# Control
set_io hub75_clk 32 # B9
set_io hub75_le 36 # B8
set_io hub75_blank 42 # B7
@@ -0,0 +1,19 @@
#
# PCF constraints snippet for Quad HyperRAM PMOD
#

set_io hram_dq[0] 43
set_io hram_dq[1] 38
set_io hram_dq[2] 34
set_io hram_dq[3] 31
set_io hram_dq[4] 28
set_io hram_dq[5] 32
set_io hram_dq[6] 36
set_io hram_dq[7] 42
set_io hram_rwds 44
set_io hram_ck 47
set_io hram_rst_n 46
set_io hram_cs_n[0] 2
set_io hram_cs_n[1] 48
set_io hram_cs_n[2] 4
set_io hram_cs_n[3] 3

0 comments on commit 2ed5b6c

Please sign in to comment.
You can’t perform that action at this time.