From 57671ab0d6d680c6220e476d3b20a266ae9b4dd5 Mon Sep 17 00:00:00 2001 From: PhillipRambo <93056982+PhillipRambo@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:46:44 +0200 Subject: [PATCH] Update sar_adc.md --- modules/module_3_8_bit_SAR_ADC/part_4_SAR_ADC/sar_adc.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/module_3_8_bit_SAR_ADC/part_4_SAR_ADC/sar_adc.md b/modules/module_3_8_bit_SAR_ADC/part_4_SAR_ADC/sar_adc.md index 67926fea..96f7377f 100644 --- a/modules/module_3_8_bit_SAR_ADC/part_4_SAR_ADC/sar_adc.md +++ b/modules/module_3_8_bit_SAR_ADC/part_4_SAR_ADC/sar_adc.md @@ -11,7 +11,7 @@ Before diving into the full ADC schematic, it's essential to check whether the S ├── SAR_ADC_tb.sch - +├── sar_adc_tutorial.sch ├── simulations │ └── sar_logic.so @@ -167,7 +167,7 @@ write sar_adc_test.raw - `.endc` marks the end of the control block, completing the simulation setup. -## Running the Simulation +## Running the Simulation (sar_adc_tutorial.sch) Below, the clock waveforms are shown. As seen, the sampling phase ends when `clk_samp` goes low, which then triggers the comparator. This firing of the comparator generates a rising edge on `clk_algo`, initiating the SAR conversion. Since the `reset (rst)` signal is connected to the sampling clock and `Enable (En)` is tied to `Vdd` (i.e., always logic high), the SAR logic responds to the `clk_algo` signal (the output of the NAND gate) and begins the bit-wise comparison process. @@ -191,7 +191,7 @@ This confirms that the SAR conversion is functioning correctly. --- -## Further Analysis +## Further Analysis (SAR_ADC_tb.sch) At this point, we have a working SAR ADC, so the primary tutorial goal is achieved. However, we will now extend the analysis by extracting the output and post-processing it in Python to recover the ADC's differential input waveform. @@ -337,3 +337,4 @@ And the reconstructed output from the ideal DAC will appear as: ## Conclusion This post-processing step demonstrates how to extract and visualize the SAR ADC output. The setup also forms a solid foundation for further analysis, such as computing dynamic performance metrics of the ADC—SNR, SINAD, and ENOB—using standard Python libraries. +