Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Mm74hc154 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

shimaz

16 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thanks friend..

    is this coding for verilog or VHDL...

    your dam good in programming..how can i learn programming...

    waitng for your repy

    shimaz
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    @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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Moin,

    --- 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