URL
https://opencores.org/ocsvn/i2c_to_wb/i2c_to_wb/trunk
Subversion Repositories i2c_to_wb
[/] [i2c_to_wb/] [trunk/] [sim/] [tests/] [debug/] [the_test.v] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
// -------------------------------------------------------------------- // // -------------------------------------------------------------------- `timescale 1ns/10ps module the_test( input tb_clk, input tb_rst ); task run_the_test; begin // -------------------------------------------------------------------- // insert test below dut.i2c.start(); dut.i2c.write_byte( 8'h00 ); dut.i2c.write_byte( 8'hff ); dut.i2c.start(); dut.i2c.write_byte( 8'haa ); dut.i2c.read_byte(); dut.i2c.stop(); repeat(100) @(posedge tb_clk); end endtask endmodule
Go to most recent revision | Compare with Previous | Blame | View Log