Explain the concept of a Clock Divider Circuit? Write a VHDL
code for the same?
Answers were Sorted based on User's Feedback
Answer / jaya suriya
IN SPARTAN 3E BOARD.. THE INTERNAL CLOCK FREQUENCY IS
16MHZ... IF WE WANT TO INTERFACING THE EXT DIPLAY DEVICES
WE WON'T RUN IT WITH A NORMAL CLOCK FREQ(16
MHZ)....THATSWHY I HAVE TO CREATED NEW CLOCK PULSE WITH THE
FREQ OF 1HZ BY DEVIDING THE CLOCK..... TAKE THE NORMAL CLK
AS A REFERENCE...THIS IS KNOWN AS CLOCK DIVIDER CONCEPT...
ENTITY CLK_DIV IS
PORT(CLK: IN STD_LOGIC;
NEWCLK:OUT STD_LOGIC);
END CLK_DIV
ARCH BEH OF CLK_DIV IS
VARIABLE COUNT:INTEGER:=0;
SIGNAL CLKN:STD_LOGIC;
BEGIN
PROCESS(CLK)
BEGIN
IF CLK='1' AND CLK'EVENT THEN
COUNT:=COUNT+1;
IF COUNT=8000000 THEN
NEWCLK<= NOT CLKN
COUNT:=0;
END PROCESS;
END BEH;
| Is This Answer Correct ? | 19 Yes | 13 No |
Answer / senthil
I am using the Mr.Suriya code with little modification.
ENTITY CLK_DIV IS
PORT(CLK: IN STD_LOGIC;
NEWCLK:OUT STD_LOGIC);
END CLK_DIV
ARCH BEH OF CLK_DIV IS
VARIABLE COUNT:INTEGER:=0;
BEGIN
PROCESS(CLK)
BEGIN
IF CLK='1' AND CLK'EVENT THEN
COUNT:=COUNT+1;
IF COUNT=8000000 THEN
NEWCLK<= '1';
COUNT:=0;
ELSE
NEWCLK<= '0';
END IF;
END IF;
END PROCESS;
END BEH;
| Is This Answer Correct ? | 12 Yes | 12 No |
Answer / manju
please initialize the variables before using it in the
behaviour architecture or else it will be in the unknown
state still it has some legal value.
| Is This Answer Correct ? | 2 Yes | 4 No |
Draw the Layout of an Inverter?
A circuit has 1 input X and 2 outputs A and B. If X = HIGH for 4 clock ticks, A = 1. If X = LOW for 4 clock ticks, B = 1. Draw a state diagram for this Spec?
what is SCR (Silicon Controlled Rectifier)?
What is Charge Sharing? Explain the Charge Sharing problem while sampling data from a Bus
What is the most complicated/valuable program you written in C/C++?
23 Answers HCL, IBM, Intel, TCS, TVS, Wipro,
Differences between netlist of HSPICE and Spectre?
How binary number can give a signal or convert into a digital signal?
Working of a 2-stage OPAMP?
Why is OOPS called OOPS? (C++)
What are the Factors affecting Power Consumption on a chip?
What was your role in the silicon evaluation/product ramp? What tools did you use?
Are you familiar with the term snooping?