evita verilog how to use
Hi, nczx,
First of all, Matlab is completely different tool (actually a tool) than Verilog (it's a language). Verilog is a Hardware Description Language (HDL). There are many such languages like VHDL (it stays for Very High Speed Integrated Circuit (VHSIC) Hardware Description Language). Matlab is used for system modeling and analysis and HDLs are used for describing digital circuits. The most convenient application of the language to experiment in hardware is to use it to program CPLD (Complex Programmable Logic Devices) and FPGA (Field Programmable Gate Arrays) programmable logics chips. Main manufacturers / vendors are Xilinx (I think the best one), Altera, Lattice, etc. Go to their web sites - they are full of datasheets, whitepapers, application notes, tutorials and FREE tools for development.
For me the Verilog language is the easy one (matter of preference). I have not tryed to model state machines using Matlab, but I know Matlab can do this. I also know Matlab can "translate" some models into HDL language, but it is kind of advanced task. In general FSM synthesis with Verilog is pretty simple. As it is difficult (and long process) to describe with several words how it can be done, try this link:
www.fpga4fun.com
It is very good site with basic (and advanced too) examples, written in Verilog. This site can give you basic ideas for many things about Verilog HDL. For example, there:
https://www.fpga4fun.com/SerialInterface3.html
is an example of state machine (simple enough).
But, I think a good starting point is to run eye over the book:
"Verilog HDL: A Guide to Digital Design and Synthesis" by Samir Palnitkar
https://www.amazon.com/gp/product/0...f=pd_bbs_1/102-9357084-4568945?_encoding=UTF8
This book can be found somewhere on this site (edaboard) for free or from amazon.
Another very good book with Verilog examples is:
"Digital Design" by Morris Mano
https://www.amazon.com/gp/product/0...102-9357084-4568945?s=books&v=glance&n=283155
I think this book is also available here (edaboard).
Cheers,
uglyduck
P.S. don't forget to press "Helped me", if I helped of course