My name is Sven Andersson and I
work as a consultant in embedded
system design, implemented in ASIC
In my spare time I write this blog
and I hope it will inspire others to
learn more about this fantastic field.
I live in Stockholm Sweden and have
my own company
You are welcome to contact me
and ask questions or make comments
about my blog.
The following cores are included with Xilinx Embedded Edition. The IP works directly in XPS and supports MicroBlaze for PLB-based and AXI-based cores.
Starting XPS --> xps &
We are going to create a new design.
We will use the PLB bus standard. In our first design the standard bus was OPB.
We use the same old development board.
We are building a single processor system.
We use the MicroBlaze processor soft core.
Here we add the peripherals we think we will need. Can always be changed.
Here is a summary of the system we are going to build. The setup is stored in the file ETC_system.bsb
This is what the system looks like in the XPS system display window.
Running a simulation
Setting up and running the first simulation on our design is almost fully automated. We start by enabling the generation of a test bench template file. Select Project Options from the Project menu and mark the tick box <Generate test bench template>.
Generate simulation HDL files The next step is generate all the simulation HDL files. Select <Generate HDL Simulation Files> from the Simulation menu. The following command is executed: make -f ETC_system.make simmodel
Start the simulation
Select <Launch HDL simulator> from the Simulation menu to start the simulation. In this process all the HDL files (design and test bench) are compiled and elaborated. The test bench is setup to generate clock and reset signals to the MicroBlaze processor and to the rest of the system when a run command is executed.
Commands used to compile and elaborate:
cd simulation/behavioral sh ETC_system_fuse.sh /opt/Xilinx/13.2/ISE_DS/ISE/bin/lin64/unwrapped/fuse -incremental work.ETC_system_tb work.glbl -prj ETC_system.prj -L xilinxcorelib_ver -L secureip -L unisims_ver -o isim_ETC_system
When trying to display a pdf file from within XPS nothing happens if you don't have acroread installed. I don't like acroread so I added a link to evince instead: sudo ln -s /usr/bin/evince /usr/bin/acroread
Using XPS it is very simple task to put together a MicroBlaze based system with standard peripherals. The hard part comes when we must convert our OPB based ETC system to the PLB bus interface.