How can i take the output of a phase accumulator as clock by taking 24th bit

3 views (last 30 days)
In my project I'm using DCO which includes a phase accumulator with 25 bits(0-24).From the output of phase accumulator i have to choose 24th bit as one clock and 23rd bit as another clock.What is the logic behind it .What is the difference in frequencies of these clocks.I'm using VHDL for coding.

Answers (1)

Tim McBrayer
Tim McBrayer on 7 Apr 2014
There are a rich set of bit manipulation blocks supplied with HDL Coder. To get a dynamically generated library of all HDL-capable blocks in your SImulink install, type
>> hdllib
The bit operation blocks are in the "HDL Operations" category. The supported operations are:
  1. Bit Concatenation
  2. Bit Reduction Operators
  3. Bit Rotate
  4. Bit Shift
  5. Bit Slice
The Bit Slice block can perform the single bit extraction that you are looking to perform. This functionality is also available through the MATLAB Function block and hand-written MATLAB code.

Categories

Find more on Code Generation in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!