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

조회 수: 4 (최근 30일)
reni
reni 2014년 4월 4일
답변: Tim McBrayer 2014년 4월 7일
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