![]() |
我是李孟修 - HDL硬體描述語言 - 電路實作8×8 LED點矩陣文字A顯示 |
|
|
電路實作8×8 LED點矩陣文字A顯示---------8×8 LED點矩陣文字A顯示--------- 使用裝置: FPGA燒錄板 使用元件: 8×8點矩陣、IC7404、74138 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] cnt assign ROW3_8 = cnt always @( posedge clk )begin if( enable==0 )cnt always@( cnt 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
|
|