System Generator Software Features

Note - For this example to run correctly, you must change your directory (cd within the MATLAB console window) to this directory before launching the example model.

The files contained in this directory are:

black_box.mdl - the Simulink model with an example black box

bit_reverse.m - a MATLAB function for reversing bit order

bit_reverse.vhd - VHDL code for reversing bit order. This file is the actual black box that must be passed to the Xilinx implementation tools. It imitates the behavior of the MATLAB function.

The example project displays three windows:

The top-level model (a model with black box instantiated in it),

The black box (a new Simulink model), and

The output simulation scopes.

By running the simulation from the top-level model, you can see the bits reverse in the output scope. This simulation is running the MATLAB function bit_reverse.

Figure 4-1: Output of example black box function

Black Box window

The Xilinx Black Box token identifies the top level of your black box. Double-clicking on this token brings up a window which allows you to configure the black box.

Open the file bit_reverse.vhd in an editor and view the code. You will

see that the name of the component (bit_reverse) is the same name assigned in the Black Box block parameters dialog box. The user-defined generic (n_bits) is defined there as well. The others are default generics that correspond to the ports (DIN and BRN) on the black box. You must make sure the VHDL code you write (to correspond with your black box) has component and generic names matching those entered in the configuration window.

Note - The main:process(DIN)section near the bottom of the VHDL file is where the actual bit reversing functionality takes place.

Using Black Boxes

129

Page 129
Image 129
Xilinx V2.1 manual Black Box window, Output of example black box function

V2.1 specifications

Xilinx V2.1 is a notable iteration in the series of versatile and robust Field-Programmable Gate Arrays (FPGAs) developed to cater to a wide range of applications. Launched to provide enhancements in performance and flexibility, V2.1 embodies sophisticated technologies and features that stand out in the electronics industry.

One of the primary features of Xilinx V2.1 is its improved processing power. The architecture has been optimized to support higher clock speeds and increased logic density, allowing for more complex designs to be implemented effectively. This boost in performance is facilitated by utilizing advanced silicon technologies, which significantly reduce power consumption while maximizing efficiency.

Another significant characteristic of Xilinx V2.1 is its enhanced I/O (Input/Output) capabilities. The device supports a variety of industry-standard interfaces, which include PCI Express, SATA, and various serial communication protocols. Such adaptability ensures seamless integration into existing systems, providing engineers with the flexibility to adapt to various application requirements without the need for substantial redesign efforts.

Xilinx V2.1 also features improved scalability, making it a prime choice for applications that demand diverse performance levels. This device supports an array of configurations and can be used in small-scale projects as well as in larger, more demanding environments requiring extensive resources. This scalability is further aided by support for multiple development platforms, enabling rapid prototyping and simplifying the design process.

Security is increasingly becoming a priority in digital design, and Xilinx V2.1 addresses this concern via hardware security features. It includes enhanced encryption protocols and secure boot functionalities, which help protect intellectual property and sensitive data from unauthorized access.

Additionally, the integration of advanced DSP (Digital Signal Processing) blocks allows Xilinx V2.1 to efficiently handle data-intensive tasks such as video processing and real-time signal analysis. These capabilities make it suitable for applications in telecommunications, automotive systems, and industrial automation.

Xilinx V2.1 also benefits from a rich development environment, including robust software tools that facilitate design entry, simulation, and verification. The support for industry-standard programming languages like VHDL and Verilog simplifies the development process, enabling engineers to design complex systems more efficiently.

In summary, Xilinx V2.1 stands out due to its impressive combination of high performance, flexibility, scalability, security, and comprehensive development support. These features make it a valuable asset for engineers and developers looking to innovate across various sectors, from telecommunications and automotive to industrial applications.