Manmeet Saluja
Manmeet Saluja

Reputation: 147

VHDL program for A xor b xor c

I have to write a VHDL program in XILINX for the following expression:

Z = A xor B xor C.

This is one of my first VHDL programs so I'm not comfortable with the syntax. Kindly help me with the program.

Upvotes: 0

Views: 3011

Answers (1)

Morten Zilmer
Morten Zilmer

Reputation: 15934

A good place to start is the Wikipedia VHDL page, and the first one under Design examples is very similar to what you request, you just have to replace O <= I1 and I2; with Z <= A xor B xor C; and modify the interface accordingly.

To get a simulator that can compile and simulate VHDL, you can use ModelSim-Altera Starter Edition, which is free. You can get it at ModelSim-Altera Edition Software.

For additional VHDL reading, look at Further reading. Note that VHDL is not a programming language, but a Hardware Description Language (HDL), and thereby different from ordinary programming languages. In order to get a good VHDL experience I suggest that you dig into some of the resources to learn the basic concepts.

Upvotes: 2

Related Questions