下述程序中能够实现安全状态机设计的是
A: Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0;default:begin next_state =s0;
B: define s0=1,s1=2,s2=4,s3=4,s4=8s5: next_state =s1;S6: next_state =s1;S7: next_state =s2;default:begin next_state =s0;
C: Parameter s0=40,s1=41,s2=42,s3=43,s4=44,s5=45,s6=46,s7=47;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0;
D: 以上都是正确选型
A: Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0;default:begin next_state =s0;
B: define s0=1,s1=2,s2=4,s3=4,s4=8s5: next_state =s1;S6: next_state =s1;S7: next_state =s2;default:begin next_state =s0;
C: Parameter s0=40,s1=41,s2=42,s3=43,s4=44,s5=45,s6=46,s7=47;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0;
D: 以上都是正确选型
举一反三
- 下述程序中能够实现安全状态机设计的是 A: Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0;default:begin next_state =s0; B: define s0=1,s1=2,s2=4,s3=4,s4=8s5: next_state =s1;S6: next_state =s1;S7: next_state =s2;default:begin next_state =s0; C: Parameter s0=40,s1=41,s2=42,s3=43,s4=44,s5=45,s6=46,s7=47;...s5: next_state =s0;S6: next_state =s0;S7: next_state =s0; D: 以上都是正确选型
- 下列Moore型状态机采用Verilog语言说明部分正确的是: A: parameter [2:0] s0=0, s1=1,s2=2,s3=3,s4=4;reg [2:0] current_state, next_state; B: parameter [1:0] s0=0, s1=1,s2=2,s3=3,s4=4;reg [1:0] current_state, next_state; C: TYPE FSM_ST IS (s0, s1,s2,s3,s4); SIGNAL current_state, next_state: FSM_ST; D: typedef enum {s0, s1,s2,s3,s4} type_user;type_user current_state, next_state
- 下列程序段中,循环体s = s +1执行了几次? For i = 0 To 7 Step 3 For j = 0 To 7 Step 2 s = s + 1 Next Next
- 以下程序运行后的输出结果是 ________ struct NODE { int num; struct NODE *next; } main() { struct NODE s[3], *p, *q, *r; int sum=0; s[0].num=1; s[1].num=2; s[2].num=3; s[0].next=s+1; s[1].next=s+2; s[2].next=s; p=s; q=p->next; r=q->next; sum+=q->next->num; sum+=r->next->next->num; printf("%d", sum); }
- 有一段程序: a = Array(1, 2, 3, 4, 5, 6): s =1: For i = 5 To 1 Step -2: s = s * a(i): Next I, 执行后,s的结果是