Creating a new Function
With XST I'm unable to create my own function called "Erics_Gate". If I
change the name to "and" or any other exsisting operator it works fine,
but I'd like this function to be called "Erics_Gate".
Any Ideas on how to define "Erics_Gate" as an operator?
entity mux is
Port ( A, B : in STD_LOGIC;
CLK : in STD_LOGIC;
Y : out STD_LOGIC);
architecture Behavioral of mux is
function "Eric_gate" (L:std_ulogic; R:std_ulogic) return STD_ulogic is
if L = '0' and R ='0' then return '1';
elsif L = '0' and R ='1' then return '1';
elsif L = '1' and R ='0' then return '0';
else return '1';
wait until clk = '1';
Y<= A Eric_gate B;
|All times are GMT. The time now is 04:31 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.