鏁扮爜绠′綅閫夊湪modelsim涓棤娉曞彉鍖栵紒锛侊紒

2020-02-17 19:43发布

涓荤▼搴忥細绾㈠瓧閭f绋嬪簭娌′綔鐢紵en淇″彿涓€鐩翠负鍒濆€?'b10!!!!
缁撴灉閿欒锛?png en涓€鐩存槸鍒濆€?'b10!!!! bcd_v vt.zip (1.92 KB, 涓嬭浇娆℃暟: 0) 2015-10-10 21:13 涓婁紶 鐐瑰嚮鏂囦欢鍚嶄笅杞介檮浠? https://bbs.21ic.com/forum.php?mod=attachment&aid=NTE0MTU4fGExMzBkZDhjYjVlYWQyOGJiMjhkOTI4NTFiZTliODcyfDE1ODE5MzYyOTk%3D&request=yes&_f=.zip
/*Purpose:灏嗗洓浣嶄簩杩涘埗杞垚8421BCD鐮侊紝骞舵樉绀哄埌鏁扮爜绠?/
module bcd(clk_50m,a,c,en);
input clk_50m;
input[3:0] a;
output[7:0] c;
output[1:0] en;
/*鍐呴儴鍙橀噺*/
reg[7:0]  c;
reg[1:0]  en=2'b10;
reg[1:0]  en_temp;
reg       clk_div=0;//鍒嗛鍚庢椂閽?br /> reg[7:0]  code_data;//0000_0000,鍙互琛ㄧず2浣嶅崄杩涘埗鐨凚CD瀵勫瓨鍣?br /> reg[3:0]  num_temp;//鏁扮爜绠℃鐮?br /> reg[19:0] counter;//鍒嗛璁℃暟

/*Translate*/
always@(a)
begin
  if(a<=9)

0条回答

一周热门 更多>