What is EagleDeviceGen?
Since Eagle converted their device libraries to an XML format, it is now possible to generate PHDL device declarations using Eagle's .lbr files.
You can use EagleDeviceGen, an open-source Java GUI utility, to generate
PHDL device declarations for use in a design. The GUI gives you
the ability to pick and choose which devices and packages are
applicable to your design. The utility then generates a .phdl file
that can be included in your top-level PHDL source code.
Note: The Eagle XML device libraries define connections on a pin by pin bases and don't use very good logical names. You may need to go in manually and edit the pin declarations if you desire to use arrays and to set useful logical names for what each of the pins are used for.
- Download the JAR file here
- Type the following on the command prompt after navigating to the JAR's directory, to open the utility:
java -jar EagleDeviceGen.jar
How to Use EagleDeviceGen
This is the main screen
Click on "Browse..." to open an Eagle 6.x+ library file. The "Devices" list will be populated with each device found in the file, as shown below:
When a device, the "Packages" list becomes populated with all of its potential footprint packages. By then clicking on one of the packages, an rough drawing of what it looks like appears in the right-most frame, as shown below:
By double-clicking on a package, it is added to the bottom list. This list is constituted by all the devices that will appear in the generated .phdl file.
To remove a device from the bottom list, double click on it, and it will disappear from the list.
Clicking on the "Generate Devices" button will then prompt you to specify a file name and location for the .phdl device declaration file.
This utility was contributed by Richard Black.