Skip to content

Commit

Permalink
Add constraints snippets for various PMODs.
Browse files Browse the repository at this point in the history
Related to #6

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut authored and esden committed Apr 7, 2020
1 parent b445454 commit 627c4d1
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dvi-12bit/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions dvi-3bit/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions dvi-4bit/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions hyperram/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
71 changes: 71 additions & 0 deletions led-panel-single/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions led-panel/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions quadhyperram/icebreaker.pcf
Original file line number Diff line number Diff line change
@@ -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 627c4d1

Please sign in to comment.