This program provides common HDL modules for the IRENA family of data acquisition instruments that are develeoped and used at the Institute for Experimantal and Applied Physics at the Christian-Albrechts- University in Kiel, Germany. Copyright (c) 2010-2011 Christian-Albrechts-Universität zu Kiel Copyright (c) 2010-2011 Stephan Böttcher This program 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. This program 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 this program. If not, see . The files in the mega/ subdirectory are Copyright (c) by Altera and are not covered by this license. You/we may not be allowed to distribute those, but I could not settle that question by reading the Altera license. The megafunctions provide access to hardware blocks of the specific FPGA (Cyclon 3), pll, sram, multiplier. They were made with a Quartus II web-edition, and do not contain much except for descriptions of the interface to these functions. In the context of this program, the megafunctions fall under the clause of libraries that are part of the _operating system_. You may distribute derived works of this program according to this licecnse, that use similar megafunctions for this or other targets, as long as these megafunctions are simple interface descriptions to facilities that are provided as hardwired components by the target. E.g., this does not cover proprietary CPUs or similar modules, which are synthesized from generic logic cells.