diff options
author | gatecat <gatecat@ds0.me> | 2021-05-09 16:27:57 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-05-15 14:54:33 +0100 |
commit | c5d983066df541ad93a13904e96e0298489e2fcd (patch) | |
tree | f0acc0724f6152fd14610bcbe5e812397177bb0d /mistral/arch.cc | |
parent | 2612853238af4c84fa38c1c5e349fa19c5c51ebe (diff) | |
download | nextpnr-c5d983066df541ad93a13904e96e0298489e2fcd.tar.gz nextpnr-c5d983066df541ad93a13904e96e0298489e2fcd.tar.bz2 nextpnr-c5d983066df541ad93a13904e96e0298489e2fcd.zip |
mistral: Some preps for generating bitstreams
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/arch.cc')
-rw-r--r-- | mistral/arch.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mistral/arch.cc b/mistral/arch.cc index 592eddff..632fb0b2 100644 --- a/mistral/arch.cc +++ b/mistral/arch.cc @@ -303,6 +303,12 @@ WireId Arch::add_wire(int x, int y, IdString name, uint64_t flags) } } +bool Arch::wires_connected(WireId src, WireId dst) const +{ + PipId pip(src.node, dst.node); + return getBoundPipNet(pip) != nullptr; +} + PipId Arch::add_pip(WireId src, WireId dst) { wires[src].wires_downhill.push_back(dst); |