print("shift " + str(s) + " / length " + str(l) + " / errors " + str(e))
if __name__ == "__main__":
- run_simulation(TB(), ncycles=4096, vcd_name="my.vcd", keep_files=True)
\ No newline at end of file
+ run_simulation(TB(), ncycles=4096, vcd_name="my.vcd", keep_files=True)
#print(packet)
errors += verify_packet(packet, arp_reply_infos)
- print("arp errors " + str(errors))
\ No newline at end of file
+ print("arp errors " + str(errors))
#print(packet)
errors += verify_packet(packet, ping_request_infos)
- print("icmp errors " + str(errors))
\ No newline at end of file
+ print("icmp errors " + str(errors))
#print(packet)
errors += verify_packet(packet, {})
- print("ip errors " + str(errors))
\ No newline at end of file
+ print("ip errors " + str(errors))
errors += 1
errors += verify_packet(packet, udp_infos)
- print("udp errors " + str(errors))
\ No newline at end of file
+ print("udp errors " + str(errors))
if __name__ == "__main__":
run_simulation(TB(8), ncycles=2048, vcd_name="my.vcd", keep_files=True)
run_simulation(TB(16), ncycles=2048, vcd_name="my.vcd", keep_files=True)
- run_simulation(TB(32), ncycles=2048, vcd_name="my.vcd", keep_files=True)
\ No newline at end of file
+ run_simulation(TB(32), ncycles=2048, vcd_name="my.vcd", keep_files=True)