hi,
不知道您是否要以下这一个?
======================================
我假设你的E, D, A三个字母就是接三个七段显示器
module display_eda
(
output_e,
output_d,
output_a,
clk,
rst_n
);
//apply 3 DFFs and let them wrap around all the time
reg dff_e, dff_d, dff_a;
always@(posedge clk or negedge rst_n)
begin
if(~rst_n)
begin
output_e <= 1'b1 ;
output_d <= 1'b0 ;
output_a <= 1'b0 ;
end
else
begin
output_e <= output_a ;
output_d <= output_e ;
output_a <= output_d ;
end
end
endmodule
//=======================
焊个电路板把三个七段显示器接到output_e, output_d, otuput_a就ok了