J
JustJohn
Guest
When you want a one of eight decoder, are you tired of typing in:
with Phase_Ctr
select Phase <=
"00000001" when "000",
"00000010" when "001",
"00000100" when "010",
"00001000" when "011",
"00010000" when "100",
"00100000" when "101",
"01000000" when "110",
"10000000" when "111",
"00000000" when others;
Then start taking advantage of IEEE.Numeric_Std:
Phase <= ROTATE_LEFT( "00000001", TO_INTEGER( Phase_Ctr ) );
This is equally clear, and should sim/synth just the same.
Other examples welcome...
Sidebar request to Xilinx:
I love the vhdl template your ISE produces when adding a new source,
but it still starts things off with:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
That is so '90s, we're over halfway through the 00's. Is there any way
to change your ISE vhdl template to:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
Regards all,
Just John
with Phase_Ctr
select Phase <=
"00000001" when "000",
"00000010" when "001",
"00000100" when "010",
"00001000" when "011",
"00010000" when "100",
"00100000" when "101",
"01000000" when "110",
"10000000" when "111",
"00000000" when others;
Then start taking advantage of IEEE.Numeric_Std:
Phase <= ROTATE_LEFT( "00000001", TO_INTEGER( Phase_Ctr ) );
This is equally clear, and should sim/synth just the same.
Other examples welcome...
Sidebar request to Xilinx:
I love the vhdl template your ISE produces when adding a new source,
but it still starts things off with:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
That is so '90s, we're over halfway through the 00's. Is there any way
to change your ISE vhdl template to:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
Regards all,
Just John