-- The Following Information Has Been Generated By Exemplar Logic AndMay Be Freely Distributed And Modified.
-- Design Name : Pseudorandom Purpose : This Design Is A Pseudorandom Number Generator. This Design Will Generate An 8-Bit Random Number Using The Polynomial P(X) = X + 1.
-- This System Has A Seed Generator And Will Generate 2**8 - 1 Unique
-- Vectors In Pseudorandom Order. These Vectors Are Stored In A RAM Which
-- Samples The Random Number Every 32 Clock Cycles. This Variance Of A
-- Priority Encoded Seed Plus A Fixed Sampling Frequency Provides A Truely
-- Random Number.
--
-- This Design Used VHDL-1993 Methods For Coding VHDL.
--
Library IEEE ;
Use IEEE.Std_logic_1164.All ;
Use IEEE.Std_logic_arith.All ;
Entity Divide_by_n Is
Generic (Data_width : Natural := 8 );
Port (
Data_in : In UNSIGNED(Data_width - 1 Downto 0) ;
Load : In Std_logic ;
Clk : In Std_logic ;
Reset : In Std_logic ;
Divide : Out Std_logic
);
End Divide_by_n ;
Architecture Rtl Of Divide_by_n Is
Signal Count_reg : UNSIGNED(Data_width - 1 Downto 0) ;