Posts

Showing posts from April, 2017

The MicroZed chronicles - free FPGA book

Image
Adam Taylor is the well known author of the MicroZed Chronicles blog on Xilinx website. His Chronicles have been running for several years, and Adam has already compiled entries from his blog in two books. The first book is offered for free on the FPGARelated website for registered users.

This is a partial list of the book contents:


Introduction to the ZynqSoftware environment and configurationThe Boot loaderXADCMultiplexed IOTimers, clocks and watchdogsProcessing System and Programmable LogicDMAAdding an Operating SystemMultiProcessingetc.The book can be find here. Author Adam Taylor is a regular contributor on Xilinx Xcell Daily Blog and he also has his own website.




Xilinx Announces General Availability of Virtex UltraScale+ FPGAs in Amazon EC2 F1 Instances

Image
"Xilinx today announced that its high-performance Xilinx® Virtex® UltraScale+™ FPGAs are available in Amazon Elastic Compute Cloud (Amazon EC2) F1 instances. This instance provides programmable hardware acceleration with FPGAs and enables users to optimize their compute resources for the unique requirements of their workloads...

... F1 instances will be used to solve complex science, engineering, and business problems that require high bandwidth, enhanced networking, and very high compute capabilities. They are particularly beneficial for applications that are time sensitive such as clinical genomics, financial analytics, video processing, big data, security, and machine learning. "


The Virtex Ultrascale+ family is based on the new 16 nm FinFET+ technology, and has the following features:
Up to 8GB of HBM Gen2 integrated in-package Up to 500Mb of on-chip memory integration Integrated 100G Ethernet MAC with RS-FEC and 150G Interlaken coresUp to four speed-grade improvement wit…

Size of wind turbines over the years

Image

Square waveform generator

Image
On the following three-part tutorial, a square waveform generator is presented.
The requirements for the project are to generate a sequence of square waveforms with different frequencies. For each frequency a number of cycles is generated (different for each one). For each frequency, a distinct duty cycle is also defined.

In this implementation the frequency is defined in Hz., and the active high time in ns. The VHDL code does not validate the parameters, i.e, if the active high time for any frequency is longer than its period, the output will be always '1' for that frequency. For each frequency, a number of cycles is defined.

This project was born over a discussion in Xilinx forums. Once I did the project for a specific configuration I started thinking about a way to make a generic solution, and this tutorial tries to reflect the design process of this small project.

The code is presented below. Three different frequencies FREQ1..3 are defined for this example, 242KHz, 23kHz …

The single biggest reason why startups succeed

Big Gross (himself an entrepreneur who has founded quite a few startups) analyzes the main reasons for success and failure of startups, and pinpoint a surprising main reason for that.

As time goes by

Image
The comics strip says it all...
... or maybe not.

There are so many missing:

Ethernet, Fast Ethernet, Gigabit EthernetThe diverse Windows versions... and Unix, and LinuxSerial Rapid IO, InfinibandPDAs, disc-man, MP3-player, tablets, digital camerasADSL, optic fiber, and so many others...

BTW, I first thought about this comics strip while reading about IoT. Will it be a success or will it be forgotten?
I remember that in its time, ATM was also thought to be "the next thing, for sure". Well, it didn't happen...
What would your list have?

VHDL or Verilog?

Image
This question gets asked again and again, by beginners and experienced designers alike. When I saw it posted on the FPGA group at reddit at reddit some time ago, I liked the answer from user fft32, so with his permission, I reproduce it here with some minor changes and additions. VHDL compared to VerilogVHDL: A bit verbose, clunky syntax. I never liked that different constructs have different rules for the "end" tag, like "end synth" for architectures, versus "end component mux" for components. I always find myself looking up the syntax of packages and functions.Strongly typed: It's a bit of a pain to have to make a (0 downto 0) vector to do something like a carry-in, but at the end of the day, it can save you time debugging problems. You don't scratch your head as to why your 10-bit vector is only 0 to 1, because you assigned a 1-bit value to it (a thing you could do in Verilog, but in VHDL would produce a compile error). Also, by default Verilog…

Timers Block - Part two

Image
On the previous entry of this series we went through the VHDL source file and simulation of a Timer component. In this entry, we will instantiate several Timer components to create a timer bank (or block of timers). For this purpose we will instantiate the 'Timer' component presented on the first part of the tutorial several times. The instantiation is done inside a VHDL construct called a FOR GENERATE loop (see lines 50 - 61). The code is attached below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62libraryieee; useieee.std_logic_1164.all; useieee.numeric_std.all; usework.top_pack.all; entitytop_timer_blkisport ( clk:instd_logic; rst:instd_logic; -- inputs data_in:instd_logic_vector (DATA_W-1downto0); -- Data bus, connected to all timers load:instd_logic; -- Load control common to all timers…

High Speed Serial I/O - free book

Image
This book was published by Xilinx in 2005. While in our very dynamic profession, some of the technologies explained can be a bit outdated, the basic concepts are there for anyone who wishes to learn or refresh his/her concepts about high speed serial links. Inside the book you will find data about: Serdes transceivers basics8b/10b, 64b/64b encodingClock recoveryLine equalizationChannel BondingSignal IntegrityPower considerationsBoard design considerations, etc.Book Title: High Speed Serial I/O made simple








SoC and MPSoC

Image
SoC stands for System on Chip. Many electronic applications are based on microprocessors, memories, and peripherals. Traditionally the integration of these system components has been done at the board (PCB) level.

The never-stopping progression in electronic miniaturization has made possible for many of these components (processor, memories, peripherals) to be integrated in a single package, thus called SoC.

On the FPGA arena, it is usual to see applications where the FPGA is integrated with a processor (or processors) at the heart of the system. Until around five years ago, the processors integrated on the FPGAs were mainly soft-core processors, like Nios for Intel-Altera or Microblaze for Xilinx.

Lately, the two major FPGA manufacturers have returned to the trend of including high performance processors as hard-IP on their FPGAs.

In the FPGA world, as in the rest of the digital world, most processors are multi-core. So the acronym MPSoC, means Multi Processor System on Chip.



As an …

Timers block

Image
Hi. In this series of articles, we will experiment with the definition, implementation, simulation and synthesis of a block of timers in VHDL. Along the way, we will: Test the VHDL code blocks using Vivado simulator.Synthesize and implement the VHDL code on Xilinx's Zynq FPGA.Originally this project was used on a relatively small FPGA. The logic for the timers didn't fit so I used the internal memory to implement the solution. In many of my designs I have seen that it is the LUTs (and not the FFs or the internal RAM) what tends to be under heavy utilization. So using the block RAM to implement register (or timers) banks can be a way to fit a design into a device.
So first, let's start with the code for a single timer component:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48libraryieee; useieee.std_logic_1164.all; useieee.numeric_std.all; entitytimerisgeneric ( DATA_W :natu…

VHDL component vs. entity

Image
A VHDL Entity defines the interface of a design unit. The elements of an entity are: Name of the entityGeneric parametersPorts (connections of the entity)Most popular ports are of type in, out, and inout. The architecture specifies the behavior of an entity. An entity can be bonded to several architectures. Each architecture sees all the elements (ports, parameters) of the entity. A component consists of an entity and architecture pair. A component must first be declared. The declaration is a 'virtual' action, a declared component still isn't doing nothing.


For a component to exercise its capabilities, it must be instantiated. The instantiation of a component is compared, many times, to the act of connecting a physical chip to its socket. A component can be instantiated multiple times in a design. A component can be instantiated without a component declaration. Many designers prefer this approach, which was introduced on VHDL '93 (direct instantiation), reducing the re…

Pseudo random number generator Tutorial - Part 3

Image
On the first two chapters of this Tutorial we started with a simple LFSR module and added a test bench. Then, on chapters three and four we upgraded our module with some features and learned to export the test bench data to files. Chapter 5 - Matlab Formal Verification Our VHDL block implements an algorithm that generates pseudo-random numbers. If the register is large enough, the output of the block will have hundreds or thousands of different numbers. How can we be sure that our block is working OK? For algorithms validation, Matlab comes as a very handy tool. First, we will generate an LFSR in Matlab which also creates a results file. Then we can just simply compare both files, if they are equal, we have an additional degree of confidence in our VHDL block. This is what the following Matlab code does:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20% Generate LFSR a = uint32(0); % Order of the polynom, up to 32% Matlab range 1 to 32, VHDL 0 to 31 order = 16; av = zeros…