Skip to content

Commit

Permalink
ise_hammer: 7v GTP/GTX/GTH.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanda-phi committed Oct 5, 2024
1 parent fe0a267 commit 9a4353e
Show file tree
Hide file tree
Showing 11 changed files with 2,387 additions and 28 deletions.
2 changes: 1 addition & 1 deletion databases/xc7v-tiledb.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions docs/xilinx/virtex7/gth.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _virtex7-gth:

GTH transceivers
################

.. todo:: document


``GTH_COMMON``
==============

.. raw:: html
:file: ../gen/tile-xc7v-GTH_COMMON.html


``GTH_CHANNEL``
===============

.. raw:: html
:file: ../gen/tile-xc7v-GTH_CHANNEL.html
34 changes: 34 additions & 0 deletions docs/xilinx/virtex7/gtp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.. _virtex7-gtp:

GTP transceivers
################

.. todo:: document


``GTP_COMMON``
==============

.. raw:: html
:file: ../gen/tile-xc7v-GTP_COMMON.html


``GTP_CHANNEL``
===============

.. raw:: html
:file: ../gen/tile-xc7v-GTP_CHANNEL.html


``GTP_COMMON_MID``
==================

.. raw:: html
:file: ../gen/tile-xc7v-GTP_COMMON_MID.html


``GTP_CHANNEL_MID``
===================

.. raw:: html
:file: ../gen/tile-xc7v-GTP_CHANNEL_MID.html
20 changes: 20 additions & 0 deletions docs/xilinx/virtex7/gtx.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. _virtex7-gtx:

GTX transceivers
################

.. todo:: document


``GTX_COMMON``
==============

.. raw:: html
:file: ../gen/tile-xc7v-GTX_COMMON.html


``GTX_CHANNEL``
===============

.. raw:: html
:file: ../gen/tile-xc7v-GTX_CHANNEL.html
3 changes: 3 additions & 0 deletions docs/xilinx/virtex7/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ Virtex 7
cmt
pcie
pcie3
gtp
gtx
gth
config
34 changes: 34 additions & 0 deletions prjcombine_ise_hammer/src/fgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3588,6 +3588,8 @@ pub enum TileBits {
Cmt,
Mgt,
DoubleHclk,
GtpCommonMid,
GtpChannelMid,
}

impl TileBits {
Expand Down Expand Up @@ -4176,6 +4178,38 @@ impl TileBits {
edev.btile_hclk(loc.0, loc.1 + 1, loc.2),
]
}
TileBits::GtpCommonMid => {
let ExpandedDevice::Virtex4(edev) = backend.edev else {
unreachable!()
};
assert_eq!(edev.kind, prjcombine_virtex4::grid::GridKind::Virtex7);
let col = if loc.1.to_idx() % 2 == 0 {
loc.1 - 1
} else {
loc.1 + 1
};
vec![
edev.btile_main(loc.0, col, loc.2 - 3),
edev.btile_main(loc.0, col, loc.2 - 2),
edev.btile_main(loc.0, col, loc.2 - 1),
edev.btile_main(loc.0, col, loc.2),
edev.btile_main(loc.0, col, loc.2 + 1),
edev.btile_main(loc.0, col, loc.2 + 2),
edev.btile_hclk(loc.0, col, loc.2),
]
}
TileBits::GtpChannelMid => {
let ExpandedDevice::Virtex4(edev) = backend.edev else {
unreachable!()
};
assert_eq!(edev.kind, prjcombine_virtex4::grid::GridKind::Virtex7);
let col = if loc.1.to_idx() % 2 == 0 {
loc.1 - 1
} else {
loc.1 + 1
};
(0..11).map(|i| edev.btile_main(loc.0, col, loc.2 + i)).collect()
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions prjcombine_ise_hammer/src/gt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pub mod virtex4;
pub mod virtex5;
pub mod virtex6_gth;
pub mod virtex6_gtx;
pub mod virtex7;
Loading

0 comments on commit 9a4353e

Please sign in to comment.