-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'Termination' module with initial termination modules
- Loading branch information
1 parent
3b08de7
commit ebf61e2
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#use-added-syntax(jitx) | ||
defpackage jsl/circuits/Termination: | ||
import core | ||
import jitx | ||
import jitx/parts | ||
|
||
|
||
doc: \<DOC> | ||
Create a typical shield termination | ||
|
||
This type is intended mostly for prototypes where the | ||
exact termination requirements aren't completely known. | ||
We're giving ourselves options for testing. | ||
|
||
Default is a simple RC parallel circuit. | ||
|
||
@member SHIELD Connected to the shield of a connector, etc. | ||
@member GND Ground plane connection for the termination. | ||
|
||
@param R-query Resistor query parameters - default is `ResistorQuery()`. | ||
@param C-query Capacitor query parameters. Default sets a min rated | ||
voltage of 50.0V. | ||
<DOC> | ||
public defn shield-termination ( | ||
R-query:ResistorQuery = ResistorQuery(), | ||
C-query:CapacitorQuery = CapacitorQuery(rated-voltage = AtLeast(50.0)) | ||
) -> Instantiable: | ||
|
||
pcb-module shield-term-t : | ||
port SHIELD | ||
port GND | ||
insert-resistor(SHIELD, GND, R-query, resistance = 0.0, inst-name = "R") | ||
insert-capacitor(SHIELD, GND, C-query, capacitance = 4.7e-9, inst-name = "C") | ||
|
||
shield-term-t |