数字电路编程

SIGNAL State: INTEGER RANGE 0 TO 3

PROCESS(CLK)

BEGIN

IF CLK EVENT AND CLK=’1′ THEN

IF State<3 THEN

State<=State+1;

ELSE

State<=0;

PROCESS(State)

BEGIN

CASE State

WHEN 0=>rgy<=”001100″;

WHEN 1=>rgy<=”010100″;

WHEN 2=>rgy<=”100001″;

WHEN 3=>rgy<=”100010″;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.