A simple applet has been created to demonstrate how JHDL can be used to generate, simulate
and netlist circuit modules for FPGAs. This specific example generates
an MCM FIR filter circuit.
Instructions for operating with the Applet are shown below the Applet window.
MCM FIR filter Demo Instructions
To experiment with this module
generator applet, perform the following steps:
Building the MCM FIR filter
Select the parameters of the MCM FIR filter module generator
that you would like. You can select the widths of the filter input,
and output. You also may set the number of precision mits to be used
in the filtering. Set the number of whole bits precision bits and
the number of fractional precision bits. In addition, you also can set
the values for the taps or weights of the FIR filter. These values
are given as a long string of floating point numbers seperated by
spaces as shown in the above example.
When you have selected your parameters, press the Build
button. This will construct the filter with the selected parameters and
display a schematic of the filter in the schematic panel.
After building a circuit, you can always go back and modify the
module parameters and press Build to recreate a circuit.
Viewing the MCM FIR filter Circuit
Once the circuit has been created, you can view the structure of
the circuit in the schematic window that was created for you. You can
pan around the top-level circuit using the scroll bars.
You can push into the schematic by double-clicking on any of the
circuit cells. This will create and display a new schematic window.
Tabs are shown below the schematics to select between the various open
schematic windows.
Simulating the MCM FIR filter Circuit
Once the MCM FIR filter has been constructed, you can simulate
the circuit by pressing the Cycle button. This will issue a
single clock on the design and display the values of the
wires/registers within the schematic windows.
You can change the values of the x input using the text
boxes in the applet. You can also enable/disable the auto simulate
mode of the inputs. The default mode is to randomly generate a number
for the filter input each clock cycle.
The simulation can be reset by pressing the Reset
button. This will reinitialize the state of the simulation.
Viewing signal waveforms
You can view a waveform for a signal by double-clicking on any
wire in the schematic. This will open a new "Waves Viewer" window over
the schematic window (use the tabs to select between the schematic
and waves windows).
Any number of wires can be viewed by double clicking on the
appropriate schematic wire.
Generating an EDIF circuit netlist
You can generate an EDIF netlist of the circuit by pressing the
Netlist button. This will open a new window and display the
netlist in a scrollable text window.
Notes on the STATS of the circuit
The statistics for this curcuit are currently unavailable. In
the future you may be able to determine the # LUTs is the total number of LUTs that this circuit
will map to and is a rough estimation of the size of the circuit
when placed on an FPGA. The Cycle Time will give the
maximum number of LUTs for the worst case propigation delay. The
actual time is dependant on routing and the specific FPGA used.
The Latency will tell you the number of clock cycles it takes to
get the output of the circuit after the inputs have been set.