- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to design a combinational circuit that will detect the value 0x41000 when my Input[27..0] equals that value. I am having troubles getting started on this circuit, and would greatly appreciate any help. Thank you!
Link Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VHDL:
match <= '1' when (input = X"0041000") else '0'; Verilog: (or something close to this) assign match = (input == 28'h41000);- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've never used Verilog or VHDL. Is there a tutorial or a pdf I can read up on how to use these? Thank you for your quick reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I've never used Verilog or VHDL. Is there a tutorial or a pdf I can read up on how to use these? Thank you for your quick reply! --- Quote End --- How are you creating your FPGA designs then? Schematic capture? There's probably a comparator component you can use. As for HDL tutorials, you're better off getting a good book. Cheers, Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, purley schematics. I just started using Quartus/Altera. I've never heard of Verilog or HDL until now, and I read up on both a little bit and am not sure if I am supposed to use them or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Definitely Learn one or the other:
Verilog is very easy to learn if you have any basic programming experience. But like C, you can shoot yourself in the foot with it. (IE, it's easier to read, but will allow you to do things that will not always work). VHDL is more structured, so it's a bit harder to read at first, and has more typing to get something done. Verilog is mainly using in the commercial industry in the US. VHDL tends to be mainly used in military industry or Europe. Both are valid and good hardware description languages, that are well worth the time to learn. You will see both in time. The advantage these have over schematic is many, but mainly the complexity of the designs you can easily accomplish. Pete- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are a couple of free ebooks on Verilog at:
http://edudirectory.50webs.com/tutorbooks.htm So that should get you started.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One thing to note about Verilog - it has been superseded by SystemVerilog.
If you are going to learn a new language, learn SystemVerilog. SystemVerilog supports many of the constructs that VHDL supports, and adds a lot more verification features. Altera's most recent IP is being delivered in SystemVerilog format ... so go with the flow and learn SystemVerilog. Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Yes, purley schematics. I just started using Quartus/Altera. I've never heard of Verilog or HDL until now, and I read up on both a little bit and am not sure if I am supposed to use them or not. --- Quote End --- What do you mean "supposed to use them"? If you want to learn to use them, go ahead and do it. Cheers, Dave

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page