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

5 次查看(过去 30 天)
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.

回答(1 个)

Tim McBrayer
Tim McBrayer 2014-4-7
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.

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by