Skip to content

Commit

Permalink
ise_hammer: virtex ioi
Browse files Browse the repository at this point in the history
  • Loading branch information
wanda-phi committed Aug 3, 2024
1 parent 5f6ed28 commit 2451047
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 2 deletions.
2 changes: 1 addition & 1 deletion databases/xcv-tiledb.json

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions docs/xilinx/virtex/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,59 @@ Input/Output

.. raw:: html
:file: ../gen/tile-xcv-IO.T.html


``IOB.L.V``
===========

.. raw:: html
:file: ../gen/tile-xcv-IOB.L.V.html


``IOB.R.V``
===========

.. raw:: html
:file: ../gen/tile-xcv-IOB.R.V.html


``IOB.B.V``
===========

.. raw:: html
:file: ../gen/tile-xcv-IOB.B.V.html


``IOB.T.V``
===========

.. raw:: html
:file: ../gen/tile-xcv-IOB.T.V.html


``IOB.L.VE``
============

.. raw:: html
:file: ../gen/tile-xcv-IOB.L.VE.html


``IOB.R.VE``
============

.. raw:: html
:file: ../gen/tile-xcv-IOB.R.VE.html


``IOB.B.VE``
============

.. raw:: html
:file: ../gen/tile-xcv-IOB.B.VE.html


``IOB.T.VE``
============

.. raw:: html
:file: ../gen/tile-xcv-IOB.T.VE.html
13 changes: 13 additions & 0 deletions prjcombine_ise_hammer/src/fgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ pub enum BelKV {
OtherIobDiffOutput(String),
BankDiffOutput(String, Option<String>),
NotIbuf,
VirtexIsDllIob(bool),
}

impl<'a> TileKV<'a> {
Expand Down Expand Up @@ -2059,6 +2060,18 @@ impl<'a> BelKV {
}
fuzzer
}
BelKV::VirtexIsDllIob(val) => {
let ExpandedDevice::Virtex(edev) = backend.edev else {
unreachable!()
};
let is_dll = edev.grid.kind != prjcombine_virtex::grid::GridKind::Virtex
&& ((loc.1 == edev.grid.col_clk() - 1 && bel.to_idx() == 1)
|| (loc.1 == edev.grid.col_clk() && bel.to_idx() == 2));
if *val != is_dll {
return None;
}
fuzzer
}
})
}
}
Expand Down
1 change: 1 addition & 0 deletions prjcombine_ise_hammer/src/io.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod xc5200;
pub mod virtex;
pub mod virtex2;
Loading

0 comments on commit 2451047

Please sign in to comment.