Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TestarRegistrador(){
- int Reg_a,Reg_b;
- AFFECT (inttostr(cur_vect), "clk", inttostr(clk) );
- AFFECT (inttostr(cur_vect), "rst", inttostr(rst) );
- AFFECT (inttostr(cur_vect), "D", inttoHstr(D) );
- AFFECT (inttostr(cur_vect), "En", inttostr(En) );
- if(c[0]==1)
- {
- AFFECT (inttostr(cur_vect), "Reg_A", inttoHstr(0x00000000) );
- AFFECT (inttostr(cur_vect), "Reg_B", inttoHstr(0x00000000) );
- }
- else
- {
- for(n=0;n<32;n++)
- {
- a[n]= Q();
- Reg_a = Mux_32_1(ENTRADA);
- Reg_b = Mux_32_1(ENTRADA);
- }
- D = Reg_a;
- D = Reg_b;
- AFFECT(inttostr(cur_vect), "Reg_A", inttoHstr(Q()));
- AFFECT(inttostr(cur_vect), "Reg_B", inttoHstr(Q()));
- }
- clka = clk;
- cur_vect++;
- clk = !clk;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement