URL
https://opencores.org/ocsvn/uart_block/uart_block/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 14 |
Line 20... |
Line 20... |
architecture Behavioral of divisor is
|
architecture Behavioral of divisor is
|
|
|
begin
|
begin
|
|
|
-- Division algorithm Q=N/D
|
-- Division algorithm Q=N/D
|
process (rst, clk)
|
process (rst, clk, numerator, divident)
|
variable Q : unsigned(quotient'length-1 downto 0);
|
variable Q : unsigned(quotient'length-1 downto 0);
|
variable R : unsigned(reminder'length-1 downto 0);
|
variable R : unsigned(reminder'length-1 downto 0);
|
variable D : unsigned(reminder'length-1 downto 0);
|
variable D : unsigned(reminder'length-1 downto 0);
|
variable N : unsigned(reminder'length-1 downto 0);
|
variable N : unsigned(reminder'length-1 downto 0);
|
variable iteractions : integer;
|
variable iteractions : integer;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.