input.dat

来自「altera epxa1的例子程序」· DAT 代码 · 共 49 行

DAT
49
字号
idle(28); /*allow time for POR to occur.  It doesn't apply to the BFM but it will allow us to use the same testbench*/



write (2147549188, 32, 1, 10);/*write to slave4 */	

read (2147549188, 32, 1);    /*read from slave4 */


write (2147745796, 32, 16, 1,2,3,4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);	/*write to slave6 */		
idle(15); /* about 1 uS*/

read (2147614724, 32, 1);    /*read from slave 5*/





write (2148532228, 32, 16, 1,2,3,4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);	/*write to slave8 */		
read (2148532228, 32, 16);    /*read to slave 8 */		


write (2149580808, 32, 1, 10); /*write to slave9 */	
write (2149580812, 32, 1, 97); /*write to slave9 */	
read (2149580808, 32, 2);      /*read from slave9 */	

/*write (2147614728, 32, 1, 10); /*write to slave5 */		

/*write (2147614732, 32, 1, 7); /*write to slave5 */		

/*read (2149580808, 32, 2);      /*read from slave5 */


/*write (2148007940, 32, 1, 10); /*write to slave7 */		

/*read (2148007940, 32, 1);      /*read from slave7 */

/*write (2147745796, 32, 16, 1,2,3,4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);	/*write to slave6 */		
/*read (2147745796, 32, 16);    /*write to slave6 */		


/*write (2149580808, 32, 16, 1,2,3,4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);	/*write to slave9 */		

/*read (2149580808, 32, 16);    /*read to slave8 */		



/*write (16, 32, 1, 10);	*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?