Assignment 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

# i

A 粉 1 ”
B {= A + 1 ;
# 10;
( E= B

( a) (B)
^
D八
[ a) set (3 )
, >
A 时
7 D Q Q =
1b
) ]

B B 因為 r = 1
bl
Q
c
7

c
7
先判斷
clk
1
ns
7 lc
1 20 30 40 50 20 30 40 50 ms

module U :

Nflip flop (M N
-

, .
C 1 k C 1 Rn
, ,
Q Qn) ;
,

input U l C1 k C 1 Rn ;
, , ,

output reg Qj
B Λ
Output Q ;
initial
beg些 “
(
| | 1 >

ay
0 ;
A ^

,
@( lk .cpu )
begin …… 7
f ( C ( Rn == 0 )


;

Q <= O ;

else if ( (1 |k == 0 )

begin |
… | 7
; f (U : =
0 & &N : = 0)

Q≤ rQ ;

else if (U : =
0 & &N : =
1 )
Q {= 1 ;

else if (U :
1 & & N == 0 )
Q <= O;

dse if ( µ= 1 & β : ) N
: 1

Q
Qiendend
=

QnL Q ; =

assign
end module


You might also like