URL
https://opencores.org/ocsvn/uart_block/uart_block/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 5 |
Rev 9 |
Line 2... |
Line 2... |
--! http://en.wikipedia.org/wiki/Division_%28digital%29
|
--! http://en.wikipedia.org/wiki/Division_%28digital%29
|
library IEEE;
|
library IEEE;
|
use IEEE.STD_LOGIC_1164.ALL;
|
use IEEE.STD_LOGIC_1164.ALL;
|
use IEEE.std_logic_arith.all;
|
use IEEE.std_logic_arith.all;
|
|
|
|
--! Use CPU Definitions package
|
|
use work.pkgDefinitions.all;
|
|
|
entity divisor is
|
entity divisor is
|
Port ( rst : in STD_LOGIC;
|
Port ( rst : in STD_LOGIC;
|
clk : in STD_LOGIC;
|
clk : in STD_LOGIC;
|
quotient : out STD_LOGIC_VECTOR (31 downto 0);
|
quotient : out STD_LOGIC_VECTOR ((nBitsLarge-1) downto 0);
|
reminder : out STD_LOGIC_VECTOR (31 downto 0);
|
reminder : out STD_LOGIC_VECTOR ((nBitsLarge-1) downto 0);
|
numerator : in STD_LOGIC_VECTOR (31 downto 0);
|
numerator : in STD_LOGIC_VECTOR ((nBitsLarge-1) downto 0);
|
divident : in STD_LOGIC_VECTOR (31 downto 0);
|
divident : in STD_LOGIC_VECTOR ((nBitsLarge-1) downto 0);
|
done : out STD_LOGIC);
|
done : out STD_LOGIC);
|
end divisor;
|
end divisor;
|
|
|
architecture Behavioral of divisor is
|
architecture Behavioral of divisor is
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.