Bird
0
0
PCB Designbi_tool~10 mins

Length matching for parallel buses in PCB Design - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the total length of a bus segment.

PCB Design
total_length = sum([1])
Drag options to blanks, or click blank then click option'
Asegment_lengths
Bbus_width
Ctrace_width
Dnum_segments
Attempts:
3 left
💡 Hint
Common Mistakes
Using bus width instead of segment lengths
Using number of segments instead of lengths
2fill in blank
medium

Complete the code to find the maximum length among parallel bus traces.

PCB Design
max_length = max([1])
Drag options to blanks, or click blank then click option'
Asegment_widths
Bnum_traces
Ctrace_lengths
Dbus_widths
Attempts:
3 left
💡 Hint
Common Mistakes
Using widths instead of lengths
Using number of traces instead of lengths
3fill in blank
hard

Fix the error in the code to calculate the length difference between traces.

PCB Design
length_diff = [1] - min(trace_lengths)
Drag options to blanks, or click blank then click option'
Atrace_lengths[0]
Bmax(trace_lengths)
Clen(trace_lengths)
Dsum(trace_lengths)
Attempts:
3 left
💡 Hint
Common Mistakes
Using sum instead of max
Using length of list instead of max length
4fill in blank
hard

Fill both blanks to create a dictionary of trace length differences for each trace.

PCB Design
length_diffs = {trace: [1] - [2] for trace in range(len(trace_lengths))}
Drag options to blanks, or click blank then click option'
Amax(trace_lengths)
Bmin(trace_lengths)
Ctrace_lengths[trace]
Dsum(trace_lengths)
Attempts:
3 left
💡 Hint
Common Mistakes
Subtracting max length instead of min
Using sum instead of individual trace length
5fill in blank
hard

Fill both blanks to filter traces with length difference greater than a threshold.

PCB Design
filtered_traces = {trace: diff for trace, diff in length_diffs.items() if diff [1] [2]
Drag options to blanks, or click blank then click option'
A>
Bthreshold
C<
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using less than instead of greater than
Comparing to zero instead of threshold