Skip to content

Instantly share code, notes, and snippets.

*** first_run.txt 2024-01-16 17:30:23.025313609 +0000
--- second_run.txt 2024-01-16 17:30:26.157314885 +0000
***************
*** 70267,70287 ****
hash: "8518aa373b12ccb94ec2196fe2586544184496c635987217ce3293e4890c3b0b"
size_bytes: 7533
hash_function_name: "SHA-256"
}
}
runner: "processwrapper-sandbox"
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This file was automatically generated using opentitantool from:
// sw/device/silicon_creator/lib/cert/cdi_1.hjson
extern "C" {
#include "cdi_1.h"
}
def _rv_alias_impl(ctx):
files = ctx.attr.actual[DefaultInfo].files
runfiles = ctx.runfiles(files.to_list())
return [DefaultInfo(files = files, runfiles = runfiles)]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("//rules:splice.bzl", "bitstream_splice")
load("//rules:otp.bzl", "get_otp_images")
package(default_visibility = ["//visibility:public"])
# By default, targets in this file will use cached artifacts from the GCP bucket
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdbool.h>
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/testing/test_framework/ottf_main.h"
#include "sw/device/silicon_creator/lib/drivers/lifecycle.h"
#include "sw/device/silicon_creator/lib/drivers/otp.h"
Debug: 12382 1056 riscv-013.c:783 execute_abstract_command(): command=0x22100e; access register, size=32, postexec=0, transfer=1, write=0, regno=0x100e
Debug: 12383 1056 mpsse.c:630 mpsse_set_data_bits_high_byte(): -
Debug: 12384 1056 mpsse.c:445 buffer_write_byte(): 82
Debug: 12385 1056 mpsse.c:445 buffer_write_byte(): 09
Debug: 12386 1056 mpsse.c:445 buffer_write_byte(): 0b
Debug: 12387 1056 ftdi.c:424 ftdi_execute_scan(): IRSCAN type:2
Debug: 12388 1056 ftdi.c:254 move_to_state(): start=RUN/IDLE goal=IRSHIFT
Debug: 12389 1056 ftdi.c:258 move_to_state(): tap_set_state(DRSELECT)
Debug: 12390 1056 ftdi.c:258 move_to_state(): tap_set_state(IRSELECT)
Debug: 12391 1056 ftdi.c:258 move_to_state(): tap_set_state(IRCAPTURE)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#if !defined(_WIN32)
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <net/if.h>
#!/usr/bin/env python3
import socket
import sys
import struct
if len(sys.argv) != 2:
print("usage: {} intf".format(sys.argv[0]))
print("interfaces:")
for idx, name in socket.if_nameindex():
print("{}: {}".format(idx, name))
void myperror(const char *msg) {
char *wsa_message = NULL;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
WSAGetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR)&wsa_message,
0,
NULL);
printf("%s : %s\n", msg, wsa_message);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#if !defined(_WIN32)
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>