KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue23840_bus_group_to_vector.cpp File Reference

Test for bus group to bus vector connections through hierarchical sheet pins. More...

Go to the source code of this file.

Classes

struct  ISSUE23840_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (Issue23840BusGroupToVector, ISSUE23840_FIXTURE)
 

Detailed Description

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.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()