由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EE版 - Need help!
相关主题
FPGA beginner questionQuestion about phase distortion due to filter
Re: what is RF design, and how about its prospectultra low frequency amplifier
Re: what's semiconductor packaging?请大家指条明路
Re: a basic Q on electronic circus请问MOSFET的length怎么影响cutoff frequency?
Re: flat channel?3G几个不同的主频之间主要差别是什么?
EE近段的机会太少了请教:傅立叶变换
求 thomas lee的 the design of radio frequency integrated circuit一书答案A question about HFSS
1GHz以上的Oscillator设计求助有没有这中VERILOG/VHDL 的论坛,或网站
相关话题的讨论汇总
话题: multiplier话题: 000话题: mhz话题: frequency话题: clock
进入EE版参与讨论
1 (共1页)
o****e
发帖数: 536
1
Problem statement:
We often use a phase locked loop capable of generating a new frequency which
is locked in
phase to a clock that is supplied at a different frequency. The relationship
between the two
frequencies is given by a rational fraction - that is, there is a
multiplication step and a
division step, both of which are integers, to convert from one frequency to
the other.
For example, we may have a 10 MHz clock, and we need a 12 MHz clock which is
phase
locked to the 10 MHz clock. In this case we would use a multiplier of 6 and
a divisor of 5 to
get 10,000,000 * 6 = 60,000,000; 60,000,000 / 5 = 12,000,000.
As a generic exercise, write a routine which when given two integers will
return an integer
representing the smallest multiplier required to convert from one frequency
to the other.
(The divisor is implied based on the returned multiplier.)
Routine Signature:
int multiplier(int BaseFreq, int OutputFreq)
Constraints:
sizeof(int) = 32
BaseFreq and OutputFreq will be between 1 and 2147483647 inclusive
Examples:
1) multiplier(10000000,12000000) returns 6. This is the example above.
2) multiplier(12000000,10000000) returns 5. Same as example 1, but the
result is
multiply by 5, divide by 6.
3) multiplier(123456,54321) returns 18107. 123456 * 18107 = 2235417792;
2235417792 / 41152 = 54321.
1 (共1页)
进入EE版参与讨论
相关主题
有没有这中VERILOG/VHDL 的论坛,或网站Re: flat channel?
Frequency drift问题EE近段的机会太少了
问一体个自相关函数的问题求 thomas lee的 the design of radio frequency integrated circuit一书答案
Quantum dot laser 好找工作吗?1GHz以上的Oscillator设计求助
FPGA beginner questionQuestion about phase distortion due to filter
Re: what is RF design, and how about its prospectultra low frequency amplifier
Re: what's semiconductor packaging?请大家指条明路
Re: a basic Q on electronic circus请问MOSFET的length怎么影响cutoff frequency?
相关话题的讨论汇总
话题: multiplier话题: 000话题: mhz话题: frequency话题: clock