aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd')
-rw-r--r--testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd80
1 files changed, 80 insertions, 0 deletions
diff --git a/testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd b/testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd
new file mode 100644
index 000000000..f52bcb8da
--- /dev/null
+++ b/testsuite/vests/vhdl-ams/ashenden/compliant/design-processing/active_filter.vhd
@@ -0,0 +1,80 @@
+
+-- Copyright (C) 2002 Morgan Kaufmann Publishers, Inc
+
+-- This file is part of VESTs (Vhdl tESTs).
+
+-- VESTs is free software; you can redistribute it and/or modify it
+-- under the terms of the GNU General Public License as published by the
+-- Free Software Foundation; either version 2 of the License, or (at
+-- your option) any later version.
+
+-- VESTs is distributed in the hope that it will be useful, but WITHOUT
+-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+-- for more details.
+
+-- You should have received a copy of the GNU General Public License
+-- along with VESTs; if not, write to the Free Software Foundation,
+-- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+-- not in book
+
+library ieee_proposed; use ieee_proposed.electrical_systems.all;
+
+entity resistor is
+ port ( terminal node1, node2 : electrical );
+end entity resistor;
+
+
+library ieee_proposed; use ieee_proposed.electrical_systems.all;
+
+entity capacitor is
+ port ( terminal node1, node2 : electrical );
+end entity capacitor;
+
+
+library ieee_proposed; use ieee_proposed.electrical_systems.all;
+
+entity LF353_opamp is
+ port ( terminal plus, minus, output, pos_supply, neg_supply : electrical );
+end entity LF353_opamp;
+
+
+library ieee_proposed; use ieee_proposed.electrical_systems.all;
+
+entity active_filter is
+end entity active_filter;
+
+-- end not in book
+
+
+
+library widget_parts, wasp_lib;
+
+architecture component_based of active_filter is
+
+ -- declaration of signals, terminals, quantities, etc
+ -- ...
+
+ -- not in book
+
+ terminal input, node2, node3, node4, node7, node15, Vdd, Vss : electrical;
+
+ -- end not in book
+
+begin
+
+ R1 : entity wasp_lib.resistor
+ port map ( node1 => input, node2 => node2 );
+
+ C1 : entity widget_parts.capacitor
+ port map ( node1 => node3, node2 => ground );
+
+ Amp1 : entity work.LF353_opamp
+ port map ( plus => node4, minus => node7, output => node15,
+ pos_supply => Vdd, neg_supply => Vss );
+
+ -- other component instantiations
+ -- ...
+
+end architecture component_based;