---
VHDL
---
function "AND" (A,B:std_logic) return std_logic isbegin
return (A NAND B)NAND(A NAND B);
end;
---
function "OR" (A,B:std_logic) return std_logic is
begin
return (A NAND A)NAND(B NAND B);
end;
---
function "NOT" (A:std_logic) return std_logic is
begin
return (A NAND A);
end;
No comments:
Post a Comment