Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use transceiver clocks in FINC/FDEC tests #538

Draft
wants to merge 13 commits into
base: staging
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/synthesis/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{"top": "boardTestExtended", "stage": "test", "targets": "All" },
{"top": "boardTestSimple", "stage": "test", "targets": "All" },
{"top": "extraProbesTest", "stage": "test", "targets": "Specific [0]" },
{"top": "fincFdecTests", "stage": "test", "targets": "Specific [-1]"},
{"top": "fincFdecTests", "stage": "test", "targets": "All" },
{"top": "fullMeshHwCcTest", "stage": "test", "targets": "All" },
{"top": "fullMeshHwCcWithRiscvTest", "stage": "test", "targets": "All" },
{"top": "fullMeshSwCcTest", "stage": "test", "targets": "All" },
Expand Down
3 changes: 3 additions & 0 deletions .github/synthesis/debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
{"top": "fincFdecTests", "stage": "test", "targets": "All"}
]
10 changes: 3 additions & 7 deletions bittide-instances/data/constraints/fincFdecTests.xdc
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,18 @@
#
# The data wire of the external reset button is connected to PMOD1_3.


# CLK_125MHZ
set_property BOARD_PART_PIN sysclk_125_p [get_ports {CLK_125MHZ_p}]
set_property BOARD_PART_PIN sysclk_125_n [get_ports {CLK_125MHZ_n}]

# USER_SMA_CLOCK
set_property -dict {IOSTANDARD LVDS PACKAGE_PIN D23} [get_ports {USER_SMA_CLOCK_p}]
set_property -dict {IOSTANDARD LVDS PACKAGE_PIN C23} [get_ports {USER_SMA_CLOCK_n}]
set_property BOARD_PART_PIN sma_mgt_refclk_n [get_ports {SMA_MGT_REFCLK_C_n}]
set_property BOARD_PART_PIN sma_mgt_refclk_p [get_ports {SMA_MGT_REFCLK_C_p}]

# Vivado marks all clocks as related by default. Our external clocks are not
# though, which means that we need to explicitly mark them as unrelated (or
# "asynchronous").
set_clock_groups \
-asynchronous \
-group [get_clocks -include_generated_clocks {CLK_125MHZ_p}] \
-group [get_clocks -include_generated_clocks {USER_SMA_CLOCK_p}]
-group [get_clocks -include_generated_clocks {SMA_MGT_REFCLK_C_p}]

# GPIO_LED_0_LS
set_property BOARD_PART_PIN GPIO_LED_0_LS [get_ports {done}]
Expand Down
10 changes: 5 additions & 5 deletions bittide-instances/src/Bittide/Instances/Domains.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ import Bittide.Arithmetic.Time
import Bittide.ClockControl
import Data.Proxy

createDomain vXilinxSystem{vName = "Basic25", vPeriod = hzToPeriod 25e6}
createDomain vXilinxSystem{vName = "Basic50", vPeriod = hzToPeriod 50e6}
createDomain vXilinxSystem{vName = "Basic100", vPeriod = hzToPeriod 100e6}
createDomain vXilinxSystem{vName = "Basic125", vPeriod = hzToPeriod 125e6}
createDomain vXilinxSystem{vName = "Basic125A", vPeriod = hzToPeriod 125e6}
createDomain vXilinxSystem{vName = "Basic125B", vPeriod = hzToPeriod 125e6}
createDomain vXilinxSystem{vName = "Basic199", vPeriod = hzToPeriod 199e6}
createDomain vXilinxSystem{vName = "Basic200", vPeriod = hzToPeriod 200e6}
createDomain vXilinxSystem{vName = "Basic25", vPeriod = hzToPeriod 25e6}
createDomain vXilinxSystem{vName = "Basic300", vPeriod = hzToPeriod 300e6}
createDomain vXilinxSystem{vName = "Basic50", vPeriod = hzToPeriod 50e6}
createDomain
vXilinxSystem{vName = "Basic625", vPeriod = hzToPeriod 625e6, vResetKind = Asynchronous}
createDomain
vXilinxSystem{vName = "Ext125", vPeriod = hzToPeriod 125e6, vResetKind = Asynchronous}
createDomain
vXilinxSystem{vName = "Ext200", vPeriod = hzToPeriod 200e6, vResetKind = Asynchronous}
createDomain vXilinxSystem{vName = "Ext200A", vPeriod = hzToPeriod 200e6}
createDomain vXilinxSystem{vName = "Ext200B", vPeriod = hzToPeriod 200e6}
vXilinxSystem{vName = "Ext250", vPeriod = hzToPeriod 250e6, vResetKind = Asynchronous}
createDomain vXilinxSystem{vName = "Ext250A", vPeriod = hzToPeriod 250e6}
createDomain vXilinxSystem{vName = "Ext250B", vPeriod = hzToPeriod 250e6}
createDomain
vXilinxSystem{vName = "Ext300", vPeriod = hzToPeriod 300e6, vResetKind = Asynchronous}
createDomain vXilinxSystem{vName = "External", vPeriod = hzToPeriod 200e6}
Expand Down
Loading
Loading