mistral: Use the iterators
This commit is contained in:
parent
3b99db294f
commit
8d330f1dc7
2
.github/workflows/mistral_ci.yml
vendored
2
.github/workflows/mistral_ci.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Execute build nextpnr
|
- name: Execute build nextpnr
|
||||||
env:
|
env:
|
||||||
MISTRAL_PATH: ${{ github.workspace }}/deps/mistral
|
MISTRAL_PATH: ${{ github.workspace }}/deps/mistral
|
||||||
MISTRAL_REVISION: 8f78291541df10d70fde6c9c58765c437807c68d
|
MISTRAL_REVISION: 98ec7f69bfd5ab77e608ccd47ede988b45a7d99b
|
||||||
run: |
|
run: |
|
||||||
source ./.github/ci/build_mistral.sh
|
source ./.github/ci/build_mistral.sh
|
||||||
get_dependencies
|
get_dependencies
|
||||||
|
@ -87,12 +87,9 @@ Arch::Arch(ArchArgs args)
|
|||||||
// This import takes about 5s, perhaps long term we can speed it up, e.g. defer to Mistral more...
|
// This import takes about 5s, perhaps long term we can speed it up, e.g. defer to Mistral more...
|
||||||
log_info("Initialising routing graph...\n");
|
log_info("Initialising routing graph...\n");
|
||||||
int pip_count = 0;
|
int pip_count = 0;
|
||||||
for (const auto &mux : cyclonev->dest_node_to_rmux) {
|
for (const auto &rnode : cyclonev->rnodes()) {
|
||||||
const auto &rmux = cyclonev->rmux_info[mux.second];
|
WireId dst_wire(rnode.id());
|
||||||
WireId dst_wire(mux.first);
|
for (const auto &src : rnode.sources()) {
|
||||||
for (const auto &src : rmux.sources) {
|
|
||||||
if (CycloneV::rn2t(src) == CycloneV::NONE)
|
|
||||||
continue;
|
|
||||||
WireId src_wire(src);
|
WireId src_wire(src);
|
||||||
wires[dst_wire].wires_uphill.push_back(src_wire);
|
wires[dst_wire].wires_uphill.push_back(src_wire);
|
||||||
wires[src_wire].wires_downhill.push_back(dst_wire);
|
wires[src_wire].wires_downhill.push_back(dst_wire);
|
||||||
|
Loading…
Reference in New Issue
Block a user