我是李孟修 - HDL硬體描述語言 - 電路實作8×8 LED點矩陣文字A顯示
 


歷程檔案 Portfolio


    關於我 About Me

    電路實作8×8 LED點矩陣文字A顯示

    ---------8×8 LED點矩陣文字A顯示---------

    使用裝置: FPGA燒錄板

    使用元件: 8×8點矩陣、IC740474138

    module  A( clk, reset, enable, ROW3_8, D8_8 );

     input          clk, reset, enable;       

     output  [7:0]  D8_8;            reg  [7:0]   A; 

     output  [2:0]  ROW3_8;   reg  [24:0]  cnt4M;       

     assign   ROW3_8 = cnt4M[2:0]; assign   D8_8  = A;   

     always @( posedge  clk )begin

      if( enable==0 )cnt4M = 25'h0;   else  cnt4M = cnt4M + 1; end                    

    always@( cnt4M[0] )begin  case( cnt4M[2:0] )

       3'd0 :   A = 8'b00000000;     3'd1 :   A = 8'b00011000; 

       3'd2 :   A = 8'b00100100;     3'd3 :   A = 8'b01000010;

       3'd4 :   A = 8'b01111110;     3'd5 :   A = 8'b01000010; 

       3'd6 :   A = 8'b01000010;     3'd7 :   A = 8'b01000010; 

       default: A = 8'b00000000;     endcase  end

    endmodule  

    全部共 0則留言
    登入帳號密碼代表遵守學術網路規範


    文章分類 Labels


    最新文章 Top10

    中華科技大學數位化學習歷程 - 意見反應