Hello people!
I need to model a 2-bit flash adc converter according to the standard SystemC AMS for a university project.
I have already modeled TDF in the generation part of the analog signal by setting the timestep and all other parameters.
Now the samples of the output voltage from the module TDF end to the input of a module ELN which should represent the circuit, made of resistors, comparators and reference voltage that effect the operation of A / D conversion.
I'm having problems:
1) in shaping the comparators (I use what I find in sc_nullor.cpp and if so, how?)
2) for the reference voltage would like to understand what needs to be defined.
If you have solutions ready for use are welcome!
Thanks in advance!