Altera_Forum
Honored Contributor
16 years agoMm74hc154 Fpga
hi friends
im doing a project on MM74HC154 FPGA 4-to-16 line decoder i need some ideas and informations... waiting for your replies shimazhi friends
im doing a project on MM74HC154 FPGA 4-to-16 line decoder i need some ideas and informations... waiting for your replies shimazMoin,
--- Quote Start --- im doing a project on MM74HC154 FPGA 4-to-16 line decoder --- Quote End --- Nice chip - not as complex as the Altera FPGAs :rolleyes: --- Quote Start --- i need some ideas and informations... --- Quote End --- Here you are: http://www.lmgtfy.com/?q=mm74hc154 Cheers, WK@shimaz
This looks like an initial course assignment... --- Quote Start --- im doing a project on MM74HC154 FPGA 4-to-16 line decoder --- Quote End --- You can specify this as a schematic, VHDL or Verilog. Here is (one of the many possible) way(s) how you can do this in Verilog...
module MM74HC154(a, b, c, d, g1, g2, out);
input a, b, c, d, g1, g2;
output reg out;
integer i;
always @(a, b, c, d, g1, g2)
if (g1 || g2)
out = 16'bzzzzzzzzzzzzzzzz;
else
for (i = 0; i < 16; i = i + 1)
out = ({d, c, b, a} == i) ? 1'b0 : 1'b1;
endmodule
Have fun learing FPGA design.thanks friend..
is this coding for verilog or VHDL... your dam good in programming..how can i learn programming... waitng for your repy shimazThis is Verilog. There are many verilog tutorials on the web (http://lmgtfy.com/?q=verilog+tutorial).
sanmao your helping me a lot..i dont know how to thank you..ill write about you in my preface of the project
how about the VHDL codings...There are also many vhdl tutorials on the net (http://www.lmgtfy.com/?q=vhdl+tutorial).
can you give me the exact link for the vhdl
If you are new to VHDL the best is to buy a good book. This is important as designing hardware in VHDL or Verilog is quite different than programming in C/C++ or Java.
There are many good books out there on VHDL and Verilog. If you are interested in learning VHDL, I can recommend : "the designer's guide to vhdl (http://www.ashenden.com.au/vhdl-book/dg3e.html)" from Peter Ashenden.in this book do i get the information to do the verilog programing for MM74HC14 FPGA4-16 decoder ..im extremly sory for trubling you...hope you wont mistake me
You may not find the exact code for what you are looking for, but at least you'll learn how to do it. It's not that difficult.