amitjagtap
Full Member level 5
hi All,
I have written a vhdl code for clk generation. I have simulated it on ISIM and Modelsim. It is synthesized too. But I dont have FPGA board to test it. Can anybody test it on their Kit and send me the result....
*********** VHDL Code ******************
entity clkgentest is
Port ( reset:in std_logic;
clkdivut std_logic;
clkout : out std_logic);
end clkgentest;
architecture Behavioral of clkgentest is
signal clk: std_logic:=('0');
signal clkby2:std_logic:=('0');
begin
clk<=not clk after 20 ns;
clkout<=clk;
process(clk) is
begin
if reset='0' then clkdiv<='0'; else
if (clk'event and clk='1') then clkby2<=not clkby2; end if;
end if;
clkdiv<=clkby2;
end process;
end Behavioral;
I have written a vhdl code for clk generation. I have simulated it on ISIM and Modelsim. It is synthesized too. But I dont have FPGA board to test it. Can anybody test it on their Kit and send me the result....
*********** VHDL Code ******************
entity clkgentest is
Port ( reset:in std_logic;
clkdivut std_logic;
clkout : out std_logic);
end clkgentest;
architecture Behavioral of clkgentest is
signal clk: std_logic:=('0');
signal clkby2:std_logic:=('0');
begin
clk<=not clk after 20 ns;
clkout<=clk;
process(clk) is
begin
if reset='0' then clkdiv<='0'; else
if (clk'event and clk='1') then clkby2<=not clkby2; end if;
end if;
clkdiv<=clkby2;
end process;
end Behavioral;