Jump to content

lucioct89

Members
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by lucioct89

  1. Sumit, I'll know that I just found out that I had the problem of vref misconfigured, now setting the offset to 0V and amplitude to 10V things work, and I can read voltages at nodes 7.5V, 5V, 2.5V, which are those that should be compared in comparators as I wanted ...thanks for the references certainly give him a look!
  2. 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!
  3. Hello Sumit, while I thank you also for the advice of your previous post, I made ​​other changes to the code going to complete the encoder and you leave them attached. At the time I set the 4 resistors 300KOhm, you think it's the right choice? And one more thing: vdd, the wine and the time of sampling values ​​should I put it? The vdd must be constant or sinusoidal? I set the vin as a sinusoidal signal but what values of amplitude and frequency should I set? Thanks in advance adc.zip
  4. Hello Torsten, I followed the suggestions of your post, the code attached are the changes I made to the draft code, in which I put the testbench. Note that I miss to implement the encoder module as TDF, but otherwise things seem to work. One thing that I would like to ask is what do you advise me to assign values ​​to the elements r1, r2, r3, r4 and give value to the reference voltage vdd, because according to their choice depends on the goodness of the conversion. (even if I was forced to use 2bit output) Assuming a full scale of 10 volts, 0 to 10V input voltage always positive and I do the following steps to quantize and encode: Sample value ---> Output Comparator ----> 2bits-output 0 <x <2.5V ---> 000 ----> 00 2.5V <x <5V ---> 001 ---> 01 5V <x <7.5V--> 011 ---> 10 7.5V <x <10V ---> 111 ---> 11 I'm working in the right way or I would recommend to change this pattern? Thanks in advance ad_converter.zip
  5. Hello Torsten, I built te resistor-ladder and I would like to better understand how to get the value of the voltage of the nodes eln to come in as input to the comparator. Thanks in advance! Source Code.zip
  6. Hello Torsten, I built te resistor-ladder and I would like to better understand how to get the value of the voltage of the nodes eln to come in as input to the comparator. Thanks in advance!
×