pradeep.vrr Posted March 21, 2015 Report Share Posted March 21, 2015 Which is the best/ simplest way to model a DAC in Systemc-ams?? Quote Link to comment Share on other sites More sharing options...
Martin Barnasconi Posted March 23, 2015 Report Share Posted March 23, 2015 A DAC is basically bits in, and analog value (represented as a double) out. Depending on the data type you use as the input, bit-by-bit (bool, or sc_logic) or a bit vector (sc_bv or as a sc_uinit), you need to take these bits, make a bit vector of your favourite size, and make an double value from this. You might need a multi-rate input port (sca_tdf::sca_de::sca_in if you connect to a plain SystemC digital model or sca_tdf::sca_in when your DAC input is connected to another TDF model). In a for-loop you can grab the individual bits and create the bit vector, and you can use the to_double method, which is supported by most SystemC data types, to write the double value to a TDF output port. Quote Link to comment Share on other sites More sharing options...
dakupoto Posted March 28, 2015 Report Share Posted March 28, 2015 Which is the best/ simplest way to model a DAC in Systemc-ams?? Hello Sir, There are some very simple DAC designs around. For example: )a) Summing amplifier -- a operational amplifier summing amplifier(R/2^nR) DAC n - number of bits ( Variation on summing amplifier - R/2R DAC These are so simple that a high level simulation is not necessary, Just use good old SPICE. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.