Skip to content

Instantly share code, notes, and snippets.

# SPDX-License-Identifier: AGPL-3.0-only
# Copyright (C) 2021 Sean Anderson <seanga2@gmail.com>
import collections
import sqlite3
from math import exp, pi, sqrt
mu_0 = 0
sigma2_0 = 1
/* Generated by Yosys 0.19 (git sha1 a45c131b3, gcc 12.1.0 -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt -fPIC -Os) */
(* blackbox = 1 *)
(* cells_not_processed = 1 *)
(* src = "/usr/share/yosys/ice40/cells_sim.v:2136.1-2420.10" *)
module ICESTORM_LC(I0, I1, I2, I3, CIN, CLK, CEN, SR, LO, O, COUT);
(* src = "/usr/share/yosys/ice40/cells_sim.v:2137.34-2137.37" *)
input CEN;
wire CEN;
(* src = "/usr/share/yosys/ice40/cells_sim.v:2137.24-2137.27" *)
This file has been truncated, but you can view the full file.
==33394== Memcheck, a memory error detector
==33394== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==33394== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==33394== Command: ./u-boot -Tc ut\ all
==33394==
U-Boot 2022.04-rc4-00053-g91c81b570c-dirty (Mar 23 2022 - 12:55:02 -0400)
Model: sandbox
==2284180== Uninitialised byte(s) found during client check request
==2284180== at 0x15DB6A: lil_append_val (cli_lil.c:487)
==2284180== by 0x15F4D9: substitute (cli_lil.c:1144)
==2284180== by 0x15E8EA: lil_parse (cli_lil.c:1314)
==2284180== by 0x22BECF: lib_test_lil (lil.c:357)
==2284180== by 0x229000: ut_run_test (test-main.c:294)
==2284180== by 0x229202: ut_run_test_live_flat (test-main.c:332)
==2284180== by 0x229202: ut_run_tests (test-main.c:383)
==2284180== by 0x229202: ut_run_list (test-main.c:421)
==2284180== by 0x22FA13: cmd_ut_category (cmd_ut.c:23)
Program received signal SIGTRAP, Trace/breakpoint trap.
-----------------------------------------------------------------------------------------------------------------------[regs]
RAX: 0x0000001FFEFFF690 RBX: 0x000000000AAFBF28 RBP: 0x000000000AAF1CB0 RSP: 0x0000001FFEFFF630 o d i t s Z a P c
RDI: 0x00000000003AF8D0 RSI: 0x0000000000000071 RDX: 0x0000000000000000 RCX: 0x0000000000000000 RIP: 0x000000000015DA5D
R8 : 0x000000000AAFC4E0 R9 : 0x000000000000003B R10: 0x00000000000000C9 R11: 0x0000000000000090 R12: 0x0000000000000000
R13: 0x0000000000000003 R14: 0x000000000AAF1CB0 R15: 0x0000000000000000
CS: 0000 DS: 0000 ES: 0000 FS: 0000 GS: 0000 SS: 0000
-----------------------------------------------------------------------------------------------------------------------[code]
=> 0x15da5d <lil_clone_value+232>: mov QWORD PTR [rsp+0x28],rdx
0x15da62 <lil_clone_value+237>: mov rax,QWORD PTR [rsp+0x28]
=> sf read 80200000 5 1000
device 0 offset 0x5, size 0x1000
jedec_spi_nor spi-flash@0: from 0x00000005, len 4096
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=5 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200000 len=4096 [bytes]
dw_spi spi@54000000: 68 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=49 wait=8
dw_spi spi@54000000: cr0=00800807 spi_cr0=00004219 buf=0000000080200044 len=4028 [bytes]
dw_spi spi@54000000: 52 bytes xfered
jedec_spi_nor spi-flash@0: op eb 1-4-4 addr=7d wait=8
=> sf read 80200000 10000 100
device 0 offset 0x10000, size 0x100
jedec_spi_nor spi-flash@0: from 0x00010000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=10000 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 01 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x10000 Read: OK
=> md.b 80200000
80200000: fa dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 00 ....s%@.*.......
=> sf read 80200000 0 100
device 0 offset 0x0, size 0x100
jedec_spi_nor spi-flash@0: from 0x00000000, len 256
jedec_spi_nor spi-flash@0: op 3b 1-1-2 addr=0 wait=8
dw_spi spi@54000000: cr0=00400807 spi_cr0=00004218 buf=0000000080200000 len=256 [bytes]
00000000: 3b 00 00 00 ;...
dw_spi spi@54000000: 256 bytes xfered
SF: 256 bytes @ 0x0 Read: OK
=> md.b 80200000
80200000: 00 fa dc 05 00 73 25 40 f1 2a 82 ae 84 93 01 00 .....s%@.*......
0x80200000: 0x05d6ea00 0x40257300 0xae822af1 0x00019384
0x80200010: 0x04b29700 0xc2b28300 0x5290732e 0x40107330
0x80200020: 0x63428930 0xa11c5254 0x42a07342 0x03105230
0x80200030: 0x2a0a5313 0xb2553312 0xa949a283 0x23800063
0x80200040: 0x0497bc14 0xb2022fb2 0xa3438283 0x3381fee3
0x80200050: 0x71b3b300 0xef090aa0 0x0013805e 0x9f2a0304
0x80200060: 0x590012ae 0xb36200b2 0xbe524240 0x400e4e03
0x80200070: 0x0100bfc2 0x03b3fee3 0xeeeeeec3 0xffffffee
0x80200080: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
0x80200090: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
=> sf probe
spi_find_bus_and_cs: No bus 3
dw_spi spi@54000000: max-frequency=100000000
dw_spi spi@54000000: Got clock via device tree: 97500000 Hz
dw_spi spi@54000000: ssi_version_id=1.01* ssi_max_xfer_size=32
dw_spi spi@54000000: fifo_len=32
spi_find_chip_select: plat=0000000080783cd0, cs=0
dw_spi spi@54000000: speed=50000000 clk_div=2
dw_spi spi@54000000: mode=2400
jedec_spi_nor spi-flash@0: op 9f 1-0-1 addr=0 wait=0