Use VHDL-AMS or Verilog AMS to create a 4-bit DAC (switched capacitor). Should be able to take a 4-bit value from a .dat or .txt file (preferably, though can compromise and just have it as a variable in the code).
The basic structure is 4 switches, 2 capacitors, and the switches are switched depending on the input so that the charge of Capacitor 1 (VC1) and Capacitor 2 (VC2) are distributed back and forth. Basically the objective is to take a 4-bit input and output the corresponding Vreference level for that 4 bit input, e.g. 1/16th Vref, 1/2 Vref, etc. I can provide the details of how the system works and a basic timing diagram of what it should do.
I would like the code for this (preferably that works on the HAMSTER AMS software (free) or Smash (free Student Trial). With the waveform output.
I have attached a PDF with the instructions for this project. Please review and email wuwisbrito@[url removed, login to view] with any further questions.