O'Reilly logo

All-Digital Frequency Synthesizer in Deep-Submicron CMOS by Poras T. Balsara, Robert B. Staszewski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX C

VHDL SOURCE CODE

C.1 DCO LEVEL 2

This VHDL code pertains to the DCO model description in Section 6.5.5. The entity declaration of the level 2 DCO is between lines 18 and 39. The VHDL generics or elaboration-phase parameter constants are declared between lines 19 and 30. The port declaration of the block's I/O signals is between lines 31 and 39. The behavioral architecture describing the block starts at line 42. Lines 43 through 49 declare internal signals. Lines 56 through 61 describe the DCO varactor merging operation on the left of Fig. 6.10. The period is calculated and checked for upper and lower bounds between lines 67 and 81. Finally, the period-controlled oscillator (PCO) engine is instantiated between lines 87 and 98.

 1 --------------------------------------------------
 2 --
 3 -- Digitally controlled Oscillator, dco_12.vhd
 4 --
 5 --------------------------------------------------
 6 -- (C) Robert B. Staszewski, Texas Instruments Inc
 7 --------------------------------------------------
 8
 9  library ieee;
10   use ieee.std_logic_1164.all;
11
12 library rf; 13 use rf.components_common.src_pco_c; 14 15 entity dco_12 is 16 generic ( 17 DCO_PER_0 : time := 417 ps; -- period of center freq. 18 DCO_PEROFF_LIM : time := 83 ps; -- maximum period deviation 19 DCO_TIME_RES : time := 1 fs; -- finest time resolution 20 DCO_QUANT_P : positive := 402; 21 DCO_QUANT_A : positive := 80; 22 DCO_QUANT_T : positive := 4; -- (DCO_TIME_RES units) 23 DCO_INIT_DLY : time := 0 ns; -- initial ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required