OpenCores
URL https://opencores.org/ocsvn/uart_block/uart_block/trunk

Subversion Repositories uart_block

[/] [uart_block/] [trunk/] [hdl/] [iseProject/] [divisor.vhd] - Diff between revs 9 and 14

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;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.