{"sections":[{"heading":"Before starting","paragraphs":["Use the intended licensed JoSIM-Pro installation and a new writable working folder. Check its CLI version. This example was exercised on the recorded Windows 2.9 review CLI; final-package and other-platform checks remain open.","Save the circuit below as UTF-8 plain text named rc_basic.cir. Confirm the actual extension rather than a hidden .txt suffix. Node 0 is the reference; IN and OUT are node names. The initial * line is a comment."]},{"code":"* RC response: 50 ohm, 0.2 pF, 10 ps time constant\n.PARAM DRIVE=1m\nV1 IN 0 PWL(0 0 10p 0 20p DRIVE 100p DRIVE)\nR1 IN OUT 50\nC1 OUT 0 0.2p\n.OPTION ANALYSIS=VOLTAGE INTEGRATION=BDF\n.TRAN 0.5p 100p\n.PRINT V(IN) V(OUT) I(R1)\n.END","heading":"Create the complete circuit","paragraphs":[".PARAM DRIVE=1m supplies the PWL source amplitude: 1 mV here. R1 is 50 ohms and C1 is 0.2 pF, so the RC time constant is 10 ps. The source rises from 0 to 1 mV between 10 and 20 ps and then stays constant.","The R and C lines provide the electrical network, .OPTION selects VOLTAGE/BDF for this example, .TRAN requests a 0.5 ps integration step to 100 ps, and .PRINT requests two voltages and the R1 current. .END terminates the deck.","A Josephson circuit additionally needs the appropriate B instance and matching model card/library. Use the model guide for its parameters and scaling; this linear RC example does not establish junction physics."]},{"code":"josim-pro-cli -o rc_basic.csv rc_basic.cir","heading":"Run and inspect the saved deck","steps":["Run the command below from the working folder. If the executable is not on PATH, use its actual installed path as described in the CLI guide.","Read the first diagnostic and job status. Confirm rc_basic.csv is newly created, then inspect its headers and time span.","Keep seconds, volts and amperes attached to the exported columns. Check the response before introducing additional devices or models."]},{"heading":"Recognise success","paragraphs":["The checked file has time, V(IN), V(OUT) and I(R1) columns, 201 finite samples and a 0–100 ps span. The output charges toward 1 mV after the input ramp; the reference at 50 ps is approximately 0.96853 mV.","For an independent check, let A=1e-3 V, T=10e-12 s and tau=50*0.2e-12 s. During the ramp, with u=t-10e-12, Vout=(A/T)*(u-tau*(1-exp(-u/tau))). After 20 ps, Vout=A*(1-(tau/T)*(1-exp(-T/tau))*exp(-(t-20e-12)/tau)). Before the ramp Vout=0.","The checked 0.5 ps run stayed within 0.5% of the 1 mV drive when compared with that ideal reference. The refinement guide makes the time-step effect explicit; this local criterion does not establish a production model tolerance."]},{"heading":"If parsing or simulation fails","paragraphs":["Use the exact diagnostic to check the saved filename, statement spelling, node connections, required model/library and complete .TRAN/.PRINT/.END lines. The analysis uses the saved file, not unsaved editor text.","Write output to a separate path and use a new result name after a failed attempt. For missing dependencies follow the include-recovery guide; for a matrix/topology diagnostic reduce to a complete small circuit before tuning the solver."]}],"canonical_url":"https://www.sun-magnetics.com/knowledge-base/josim-netlist-basics","url":"/knowledge-base/josim-netlist-basics","known_issues":[],"search_record":{"execution":true,"relatedProducts":[],"version_tags":["JoSIM-Pro 2.9 target"],"text":"Write and run a complete JoSIM circuit netlist Start with a small circuit containing sources, components, analysis and output requests. Save a complete plain-text deck, run it to a separate result file and check quantities against a simple reference. JoSIM-Pro 2.9.0 release target; bounded Windows RC CLI evidence How to complete netlist circuit file .END ground node R C PWL RC circuit authoring Before starting Use the intended licensed JoSIM-Pro installation and a new writable working folder. Check its CLI version. This example was exercised on the recorded Windows 2.9 review CLI; final-package and other-platform checks remain open. Save the circuit below as UTF-8 plain text named rc_basic.cir. Confirm the actual extension rather than a hidden .txt suffix. Node 0 is the reference; IN and OUT are node names. The initial * line is a comment.  Create the complete circuit .PARAM DRIVE=1m supplies the PWL source amplitude: 1 mV here. R1 is 50 ohms and C1 is 0.2 pF, so the RC time constant is 10 ps. The source rises from 0 to 1 mV between 10 and 20 ps and then stays constant. The R and C lines provide the electrical network, .OPTION selects VOLTAGE/BDF for this example, .TRAN requests a 0.5 ps integration step to 100 ps, and .PRINT requests two voltages and the R1 current. .END terminates the deck. A Josephson circuit additionally needs the appropriate B instance and matching model card/library. Use the model guide for its parameters and scaling; this linear RC example does not establish junction physics. * RC response: 50 ohm, 0.2 pF, 10 ps time constant\n.PARAM DRIVE=1m\nV1 IN 0 PWL(0 0 10p 0 20p DRIVE 100p DRIVE)\nR1 IN OUT 50\nC1 OUT 0 0.2p\n.OPTION ANALYSIS=VOLTAGE INTEGRATION=BDF\n.TRAN 0.5p 100p\n.PRINT V(IN) V(OUT) I(R1)\n.END Run and inspect the saved deck Run the command below from the working folder. If the executable is not on PATH, use its actual installed path as described in the CLI guide. Read the first diagnostic and job status. Confirm rc_basic.csv is newly created, then inspect its headers and time span. Keep seconds, volts and amperes attached to the exported columns. Check the response before introducing additional devices or models. josim-pro-cli -o rc_basic.csv rc_basic.cir Recognise success The checked file has time, V(IN), V(OUT) and I(R1) columns, 201 finite samples and a 0–100 ps span. The output charges toward 1 mV after the input ramp; the reference at 50 ps is approximately 0.96853 mV. For an independent check, let A=1e-3 V, T=10e-12 s and tau=50*0.2e-12 s. During the ramp, with u=t-10e-12, Vout=(A/T)*(u-tau*(1-exp(-u/tau))). After 20 ps, Vout=A*(1-(tau/T)*(1-exp(-T/tau))*exp(-(t-20e-12)/tau)). Before the ramp Vout=0. The checked 0.5 ps run stayed within 0.5% of the 1 mV drive when compared with that ideal reference. The refinement guide makes the time-step effect explicit; this local criterion does not establish a production model tolerance.  If parsing or simulation fails Use the exact diagnostic to check the saved filename, statement spelling, node connections, required model/library and complete .TRAN/.PRINT/.END lines. The analysis uses the saved file, not unsaved editor text. Write output to a separate path and use a new result name after a failed attempt. For missing dependencies follow the include-recovery guide; for a matrix/topology diagnostic reduce to a complete small circuit before tuning the solver. ","id":"josim-netlist-basics","keywords":"complete netlist circuit file .END ground node R C PWL RC circuit authoring","kind":"How to","title":"Write and run a complete JoSIM circuit netlist","product":"JoSIM-Pro"},"version":"2.9.0 release target; bounded Windows RC CLI evidence","id":"josim-netlist-basics","related":["/knowledge-base/josim-cli-output","/knowledge-base/josim-run-current-source","/knowledge-base/josim-model-syntax","/knowledge-base/josim-hierarchical-design","/knowledge-base/josim-transient-timestep","/knowledge-base/josim-editor-navigation","/knowledge-base/josim-editor-completion","/knowledge-base/josim-controlled-sources"],"downloads":[{"url":"/_functions/kbExample?name=rc-basic.zip","scope":"Exact checked input files plus instructions; final-release/platform applicability remains pending.","files":["rc_basic.cir","README.txt"],"id":"rc-basic","requires":["Compatible licensed JoSIM-Pro 2.9 CLI","New writable directory; preserve all files together"],"title":"RC circuit"}],"publication_status":"published","numerical_output":null,"provenance":{"execution_checks":[{"routes":["cli"],"scope":"Complete linear RC circuit, included parameterised cell, include recovery, fixed-step refinement, nine scalar forms and measurement failure/recovery","result":"passed","articles":["josim-netlist-basics","josim-hierarchical-design","josim-transient-timestep","josim-measurements"],"purpose":"circuit-authoring-refinement-measurements","version":"JoSIM-Pro 2.9.0 installed Windows review CLI","id":"VAL-014","records":["authoring-version","rc_basic","rc_hierarchy","rc_missing_library","rc_library_restored","rc_literal_override","rc_coarse","rc_medium","rc_fine","rc_measurements","rc_measurements_sparse","rc_missing_event","rc_measurements_recovered","rc_duplicate_measurement","rc_invalid_print_step"],"limit":"Handwritten RC examples and their declared analytic criteria only. No Josephson-device, adaptive/noisy, GUI, other-platform or final-release qualification. CLI loaded-library path was not observed.","observed":{"missing_event_rejected_without_final_csv":true,"hierarchy_headers":["time","V(OUT50)","V(OUT100)","I(R1|X1)"],"nonpositive_print_step_rejected":true,"installed_cli_and_adjacent_core_preserved":true,"all_authored_inputs_preserved":true,"measurement_reference_checks":{"delay":true,"swing":true,"peak":true,"half":true,"rms":true,"integral":true,"sample":true,"average":true,"minimum":true},"missing_include_rejected_without_csv":true,"measurements":{"delay":{"unit":"s","value":7.347845185494056e-12},"swing":{"unit":"V","value":0.00008397118684255278},"peak":{"unit":"V","value":0.000998434674734019},"half":{"unit":"s","value":2.2347845185494056e-11},"rms":{"unit":"V","value":0.0009792524152708322},"integral":{"unit":"V*s","value":3.916042272290987e-14},"sample":{"unit":"V","value":0.0009685395593167445},"average":{"unit":"V","value":0.0009790105680727468},"minimum":{"unit":"V","value":0.0009144634878914662}},"measurements_independent_of_print_start_and_cadence":true,"nine_scalar_values_and_units_match_reference":true,"complete_basic_circuit_matches_rc_reference":true,"duplicate_case_insensitive_name_rejected":true,"sparse_measurements":{"delay":{"unit":"s","value":7.347845185494056e-12},"swing":{"unit":"V","value":0.00008397118684255278},"peak":{"unit":"V","value":0.000998434674734019},"half":{"unit":"s","value":2.2347845185494056e-11},"rms":{"unit":"V","value":0.0009792524152708322},"integral":{"unit":"V*s","value":3.916042272290987e-14},"sample":{"unit":"V","value":0.0009685395593167445},"average":{"unit":"V","value":0.0009790105680727468},"minimum":{"unit":"V","value":0.0009144634878914662}},"literal_component_value_not_changed_by_unused_named_argument":true,"analytic_reference":{"delay":{"absolute_check_allowance":5e-14,"unit":"s","value":7.344720351728633e-12},"swing":{"absolute_check_allowance":0.000002,"unit":"V","value":0.00008398134465763686},"peak":{"absolute_check_allowance":0.000002,"unit":"V","value":0.0009984331297888881},"half":{"absolute_check_allowance":5e-14,"unit":"s","value":2.2344720351728633e-11},"rms":{"absolute_check_allowance":0.000002,"unit":"V","value":0.000979246563904772},"integral":{"absolute_check_allowance":8e-17,"unit":"V*s","value":3.916018655342363e-14},"sample":{"absolute_check_allowance":0.000002,"unit":"V","value":0.0009685285705208703},"average":{"absolute_check_allowance":0.000002,"unit":"V","value":0.0009790046638355908},"minimum":{"absolute_check_allowance":0.000002,"unit":"V","value":0.0009144517851312513}},"refinement_reduces_reference_error":true,"refinement":{"coarse":{"step":"0.5p","max_voltage_error_V":3.607179059673428e-7,"max_error_fraction_of_drive":0.0003607179059673428,"headers":["time","V(IN)","V(OUT)","I(R1)"],"rows":51,"time_start_s":0,"time_end_s":1e-10},"fine":{"step":"0.125p","max_voltage_error_V":2.1017905967295886e-8,"max_error_fraction_of_drive":0.000021017905967295886,"headers":["time","V(IN)","V(OUT)","I(R1)"],"rows":51,"time_start_s":0,"time_end_s":1e-10},"medium":{"step":"0.25p","max_voltage_error_V":8.601790596734354e-8,"max_error_fraction_of_drive":0.00008601790596734354,"headers":["time","V(IN)","V(OUT)","I(R1)"],"rows":51,"time_start_s":0,"time_end_s":1e-10}},"restoring_reachable_event_recovers_measurements_and_csv":true,"corrected_include_reference_recovers":true,"three_refinements_keep_51_common_output_samples":true,"successful_commands_exit_zero":true,"measurement_csv":{"headers":["time","V(IN)","V(OUT)","I(R1)"],"rows":31,"time_start_s":4e-11},"included_subcircuit_and_instance_override":true}}],"figure_evidence":[],"review_notes":["The documented RC files match the checked input content. All new outputs were written to fresh paths.","Final distributed 2.9 package, other platforms and GUI workflows remain pending. Example-specific analytic allowances are not universal solver tolerances."],"scope":"Recorded inputs/builds only. Complete walkthrough and final-package acceptance remain separate.","verification_requirements":{"gui_method":"not-required-for-this-answer","illustrations":"not-required-for-this-answer","required":["technical-review","release-applicability","execution","numerical-interpretation","recovery"],"status":"review-incomplete"},"sources":[{"id":"josim-pro:docs/manual_source/sections/syntax.tex","section":"Netlist anatomy, resistor/capacitor, PWL voltage source, transient and output statements"},{"id":"josim-pro:docs/manual_source/sections/usage.tex","section":"CLI input/output and versioned execution contract"},{"id":"validation:josim-authoring-windows-20261103","section":"VAL-014: exact RC examples, independent reference checks and recovery"}]},"title":"Write and run a complete JoSIM circuit netlist","type":"How to","markdown_url":"/_functions/kbResource?path=markdown%2Fjosim-netlist-basics.md","summary":"Start with a small circuit containing sources, components, analysis and output requests. Save a complete plain-text deck, run it to a separate result file and check quantities against a simple reference.","product":"JoSIM-Pro"}