|
楼主 |
发表于 2007-9-13 10:21:17
|
显示全部楼层
parameter [`ONE_HOT_CODE_LEN-1:0] //one-hot code
Idle = `ONE_HOT_CODE_LEN'h000001,
ToClick = `ONE_HOT_CODE_LEN'h000002,
ClickWait = `ONE_HOT_CODE_LEN'h000004,
ClickDelay = `ONE_HOT_CODE_LEN'h000008,
ClickTest = `ONE_HOT_CODE_LEN'h000010,
ClickSure = `ONE_HOT_CODE_LEN'h000020,
EnableADC = `ONE_HOT_CODE_LEN'h000040,
SampleX = `ONE_HOT_CODE_LEN'h000080,
WaitXADC = `ONE_HOT_CODE_LEN'h000100,
XADC_CSRD = `ONE_HOT_CODE_LEN'h000200,
SaveX = `ONE_HOT_CODE_LEN'h000400,
SampleY = `ONE_HOT_CODE_LEN'h000800,
WaitYADC = `ONE_HOT_CODE_LEN'h001000,
YADC_CSRD = `ONE_HOT_CODE_LEN'h002000,
SaveY = `ONE_HOT_CODE_LEN'h004000,
ToClickUp = `ONE_HOT_CODE_LEN'h008000,
ClickUpDelay = `ONE_HOT_CODE_LEN'h010000,
ClickUpWait = `ONE_HOT_CODE_LEN'h020000,
ClickUpSure = `ONE_HOT_CODE_LEN'h040000,
Sample1_6 = `ONE_HOT_CODE_LEN'h080000,
WaitADC1_6 = `ONE_HOT_CODE_LEN'h100000,
Save1_6 = `ONE_HOT_CODE_LEN'h200000,
SetInt = `ONE_HOT_CODE_LEN'h400000,
Debugtest = `ONE_HOT_CODE_LEN'h800000,
Debugwait = `ONE_HOT_CODE_LEN'h1000000,
Debug_CSRD = `ONE_HOT_CODE_LEN'h2000000,
Debugdata = `ONE_HOT_CODE_LEN'h4000000;
我用的是独热码,自我感觉应该没问题,我换一下顺序试试 |
|