Vhdl help

Thread Starter

danebrown.sjce

Joined Dec 2, 2013
14
i need a simple vhdl code for dividing 23 bit dy 23 bit with clock input,divisor input,dividend input ,quotient and remainder input.............pls help
 

Thread Starter

danebrown.sjce

Joined Dec 2, 2013
14
i donno wat to do wit the clock.......my teacher said each division operation must be carried at either of the edges ......i donno how to program dat
 

tshuck

Joined Oct 18, 2012
3,534
Well, let's start with what you do know regarding the topic.

What method are you supposed to be using? Combinational? Algorithm?
 

Brownout

Joined Jan 10, 2012
2,390
i donno wat to do wit the clock.......my teacher said each division operation must be carried at either of the edges ......i donno how to program dat

Look up clock process block in VHDL. The basic structure is thus:

Rich (BB code):
process (clk, reset)
begin
  if reset = '1' then
    --program default reset values here
  elsif clk'event and clk = '1' then
    --edge defined values are programed here
  end if;
end process
See other examples here

http://stackoverflow.com/questions/9989913/vhdl-how-to-use-clk-and-reset-in-process
 
Top