VHDL Makefile
Here is a short example for the Makefile I’m currently using to compile and test my VHDL project:
.PHONY: all clean testbench
VCDFILE = tmp
STOPTIME = 42ns
DEBUG = --vcd=$(VCDFILE) --stop-time=$(STOPTIME)
CLEANUP = rm -f $(VCDFILE)
OBJS = clock.o
TARGET =
all:
make test
clean:
ghdl --clean
testbench:
ghdl -m $(TARGET)
ghdl -r $(TARGET) $(DEBUG)
gtkwave $(VCDFILE)
$(CLEANUP)
Which is used in a terminal (providing you have gtkwave and ghdl installed) as follows:
$ make testbench TARGET=Chien_tb
Hoping to be useful, I’ll retire. I’ll be back in a few weeks with more details.
Verilog and VHDL on Linux (Ubuntu)
For those interested in programming electronic components there is always the possibility to use Xilinx if you are on Windows. Of course, there is a Xilinx port for Linux but it is buggy application and a very large download. This article aims to give an alternative to this application. One that will need only a few KB of download from an apt-get source.
Uniformity
Suppose we have to make a quiz. The questions have different degrees of difficulty and come from several different chapters. We have the following problem:How can we ensure that we select the questions uniformly from both domains?
Haskell and Ubuntu
For a normal user, wanting a haskell compiler only for some school courses, a simple apt-get command in Ubuntu is enough. This is not true for someone wanting to really develop something good in Haskell. If he wants to use Ubuntu, then he will get into some problems. I hope that this article will solve some of them.
Looking for the lost harmony
In fact, this is only a successful attempt at trying the Harmony Search for a toy problem.
Books about Functional Programming
The last semester at college taught me programming paradigms. Since then, I have always thinked twice before deciding to write a piece of code in C or Haskell.
Ending the Monkey Typewriter Problem
In this post I will show the last results concerning this problem while also showing that there is a way to stop any Monte Carlo simulation from doing useless runs.
Going Back to the Monkey Typewriter Problem
I began this blog with two articles on the Monkey Typewriter Theorem and, in the last one, I’ve said that there should be a possibility to stop the Monte Carlo simulation at exactly the needed point (when the required precision has been attained).
Quick and Small Haskell Question
Which of the following is better to use?
Haskell or C?
I got bored one day and was looking for something to test my coding skills by trying to solve a difficult problem on a difficult contest. Luckily, reddit provided me with this contest which was exactly what I was looking for. Read the rest of this entry »

