2015年12月30日 星期三

Final test Nand & Nor mixed

12/16 Final test  Nand & Nor  mixed 




Combine Nand Gate program with Nor Gate program into one program. But not to get two program interference each other it has to share the same resources A,B,C,D and different output.

2015年11月4日 星期三

11/04 第一題




運用別的方法表達跟前幾天一樣的內容,是運用for的觀念。
第二題也是!

11/04 第二題

11/04 第二題




今天運用別的方法表達跟前幾天一樣的內容,是運用for的觀念。

2015年10月7日 星期三

10/07 第二題

 

Second Question Of The Class 10/07

 

 
 


心得:

這題多了一個 [SEL] 算是一個選擇器,選擇A或選擇B。其實就是一個二合一多工器了。
" SEL=S0 "

10/07 第一題

 

First Question Of the Class 10/07


 
 

心得:

這題的True-Table 雖然有點繁雜,但程式內容稍微改一下其實不會做不出來。
 

2015年9月30日 星期三

AND combine with OR

AND combine with OR 



module top; 

wire A, B, C, D,OUT1, OUT2,OUT3;
system_clock #800 clock1(A); 
system_clock #400 clock2(B);
system_clock #200 clock3(C);
system_clock #100 clock4(D);

and a1(OUT1, A, B);
and a2(OUT2, C, D);
or a3(OUT3, OUT2, OUT1);

endmodule 

module system_clock(clk); 
parameter PERIOD=100; 
output clk; 
reg clk; 

initial clk=0; 

always 
 begin 
#(PERIOD/2) clk=~clk; 
 end 

always@(posedge clk)
 if($time>1000)$stop; 

endmodule 

心得:
這次是加分題 與同學競爭 寫出這題 最後幸運的加到分很
爽 哈哈 !!