This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
#size-cells = <0x02>; | |
#address-cells = <0x02>; | |
compatible = "linux,dummy-loongson3"; | |
platform-bus@16000000 { | |
interrupt-parent = <0x8003>; | |
ranges = <0x00 0x00 0x16000000 0x2000000>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wheatfox 2025.2 | |
# this script is for teaching purpose only | |
from matplotlib import pyplot as plt | |
import numpy as np | |
colors = plt.cm.tab10.colors | |
def gen(x): | |
x_prime = np.floor(np.log2(x)) | |
for i in range(len(x_prime)): |