2. Design Project Simple example : f(x 1 , x 2 , x 3 ) = x 1 x 2 + x 2 x 3 + x 3 x 1 Verilog code : m odule majority(x1, x2 ,x3 ,f); input x1, x2, x3; output f; assign f = (x1&x2)|(x2&x3)|(x3&x1); e ndmodule ;
2. Design Project Open the ModelSim simulator. In the displayed window select File > New > Project
2. Design Project A Create Project pop-up box will appear… 1.Enter the name of the project Choose Project Location
2. Design Project Create new file… 1 2 3
2. Design Project Double click Text Editor
2. Design Project Or add existing file…
2. Design Project After completed coding, select Compile > Compile all Compile of majority.v was successfull