Skip to content

Commit

Permalink
Added 'Termination' module with initial termination modules
Browse files Browse the repository at this point in the history
  • Loading branch information
callendorph committed Oct 17, 2024
1 parent 3b08de7 commit ebf61e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/circuits.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ defpackage jsl/circuits:
forward jsl/circuits/CrystalResonator
forward jsl/circuits/Network
forward jsl/circuits/Pullups
forward jsl/circuits/Termination
forward jsl/circuits/utils

35 changes: 35 additions & 0 deletions src/circuits/Termination.stanza
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

0 comments on commit ebf61e2

Please sign in to comment.