Forum Discussion
Altera_Forum
Honored Contributor
13 years agodivide by two operation in vhdl
Hai, I have write vhdl code for divide by two operation. Below is the short code:
SRL16_a:process(CLK) begin -- SRL16
if CLK'event and CLK='1' then
...
Altera_Forum
Honored Contributor
13 years agoAccording to my manual calculation, the bp values are as expectable. You are doing a logical shift right, probably you want an arithmetical shift with sign extension?