{'fraction_non_alphanumeric': 0.022706630336058128, 'fraction_numerical': 0.008174386920980926, 'mean_word_length': 5.191011235955056, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Bit-Stream-Based PWM Technique for Sine-Wave Generation

A new method for the generation of high-quality sinusoidal signals is presented. Multibit binary signals are represented using uniformly weighted single bit streams that can then be processed by digital logic. Building blocks that are useful for the construction of the sinusoidal generator are also presented. The bit-stream representation has the advantage of having the characteristics of a classical pulsewidth-modulation signal and hence can be used to drive high-power switching devices with minimal conditioning. The technique is simple and can easily be implemented using digital logic on a field-programmable gate array (FPGA). The operation of a single-phase inverter using the proposed technique is demonstrated using an Altera Stratix FPGA and a custom-built power stage. The complete digital design uses less than 200 logic elements. The performance of this technique is quantified using simulations and practical measurements. Practical implementations lead to total harmonic distortion measures ranging between 0.75% and 4.92%.