SystemC AMS

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

SystemC AMS is an extension to SystemC for analog, mixed-signal and RF functionality. The SystemC AMS 2.0 standard was released on April 6, 2016 as IEEE Std 1666.1-2016.

SystemC AMS is an extension to SystemC for analog, mixed-signal and RF functionality. The SystemC AMS 2.0 standard was released on April 6, 2016 as IEEE Std 1666.1-2016. sca_trace_file *tf = sca_create_tabular_trace_file("trace_file_name.dat"); sca_trace(tf, , "name"); include using namespace sca_util; // introduced for convenience: sca_util::sca_vector → sca_vector using namespace sca_core; // introduced for convenience: sca_core::sca_time() → sca_time() using namespace sca_ac_analysis; // introduced for convenience: sca_ac_analysis::sca_ac() → sca_ac() SCA_TDF_MODULE(tdf_low_pass) { // TDF ports sca_tdf::sca_in inp; sca_tdf::sca_out outp; // parameters double fcut; // cut-off frequency // methods void initialize(); // simulator callback for initialization purpose void ac_processing(); // simulator callback for AC behavior implementation void processing(); // simulator callback for time implementation // constructor SCA_CTOR(tdf_low_pass) { fcut = 1.0e3; // cut-off frequency 1kHz } private: sca_vector num; // numerator coefficients sca_vector den; // de-numerator coefficients sca_vector state; // state vector sca_tdf::sca_ltf_nd ltf_nd; // linear transfer function (numerator/de-numerator type) }; linear transfer function: H(s) = \frac{1}{1+\frac{1}{2*\pi*f_\mathrm{cut}}s} // initialize linear transfer function coefficients void tdf_low_pass::initialize(){ num(0) = 1.0; den(0) = 1.0; den(1) = 1.0/(2.0*M_PI*fcut); } ToDo: description // AC implementation void tdf_low_pass::ac_processing(){ sca_ac(outp) = sca_ac_ltf_nd(num, den, sca_ac(inp)); } ToDo: description // time domain implementation void tdf_low_pass::processing(){ outp = ltf_nd(num, den, state, inp); } SC_MODULE(eln_low_pass_netlist) { // sca eln terminals sca_eln::sca_terminal n1; sca_eln::sca_terminal n2; // internal nodes sca_eln::sca_node_ref gnd; // eln modules sca_eln::sca_r i_r; sca_eln::sca_c i_c; SC_CTOR(eln_low_pass_netlist) : i_r("i_r"), i_c("i_c") { i_r.value = 1.0; i_r.p.bind(n1); i_r.n.bind(n2); i_c.value = 1.0/(2.0*M_PI*1.0e3); i_c.p.bind(n2); i_c.n.bind(gnd); } };

Phase Locked Loop simulator in SystemC AMS - Américo Dias - Keywords: Phase Locked Loop, PLL, SystemC-AMS SystemC AMS examples - Wolfgang Scherr - Keywords: Filter, ADC, SystemC-AMS

Text derived from https://en.wikipedia.org/w/index.php?oldid=1326630554 under CC BY-SA 4.0; modifications have been made.

References

1 claim could not be tied to a specific sentence and is listed in the table below instead.