|
KiCad PCB EDA Suite
|
Test for bus group to bus vector connections through hierarchical sheet pins. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <schematic_utils/schematic_file_util.h>#include <connection_graph.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_screen.h>#include <sch_symbol.h>#include <sch_pin.h>#include <settings/settings_manager.h>#include <locale_io.h>Go to the source code of this file.
Classes | |
| struct | ISSUE23840_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (Issue23840BusGroupToVector, ISSUE23840_FIXTURE) | |
Test for bus group to bus vector connections through hierarchical sheet pins.
The schematic has two instances of the same sub-sheet (LEDs.kicad_sch) containing 8 LEDs with resistors, driven by bus vector LEDs[0..7]:
Instance 1 (LED_A): CON_A_[1..8] (bus vector) -> sheet pin LEDs[0...7] Components: D1-D8, R1-R8. Standard vector-to-vector, already works.
Instance 2 (LED_B): {CON_B_7 CON_B_8 CON_B_[1..3] CON_B_[4..6]} (bus group) -> sheet pin LEDs[0...7] Components: D9-D16, R9-R16. Cross-type group-to-vector, positional mapping.
Expected positional mapping for instance 2: LEDs0 -> CON_B_7, LEDs1 -> CON_B_8, LEDs2 -> CON_B_1, LEDs3 -> CON_B_2, LEDs4 -> CON_B_3, LEDs5 -> CON_B_4, LEDs6 -> CON_B_5, LEDs7 -> CON_B_6
Definition in file test_issue23840_bus_group_to_vector.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | Issue23840BusGroupToVector | , |
| ISSUE23840_FIXTURE | ) |
Definition at line 67 of file test_issue23840_bus_group_to_vector.cpp.
References BOOST_CHECK_MESSAGE(), dummy, SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetRef(), KI_TEST::LoadSchematic(), SCH_CONNECTION::Name(), path, pin, and SCH_SYMBOL_T.