Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Div_decode: process (div_start, input1, outdend, dsor)
- begin
- if div_start = '1' then
- inDend <= X"00" & input1; --at first clock when Start = 1, set outDend
- ResLsb <= '0';
- elsif outDend >= Dsor then
- ResLSB <= '1';
- inDend <= outDend - Dsor; --Substract outDend from Dsor and put in inDend
- else
- ResLsb <= '0';
- inDend <= outDend;
- end if;
- end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement