This file contains 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
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-FileCopyrightText: 2024 Uri Shaked | |
import gdspy | |
LAYER = 134 # TopMetal2 | |
DATATYPE = 22 # filler | |
PIXEL_SIZE = 0.28 # um | |
skull = [ |
This file contains 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
{ | |
"version": 1, | |
"author": "Uri Shaked", | |
"editor": "wokwi", | |
"parts": [ | |
{ | |
"type": "board-esp32-s3-box-3", | |
"id": "esp32", | |
"top": -24.91, | |
"left": -388.54, |
This file contains 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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright (C) 2024, Uri Shaked | |
from ttboard.demoboard import DemoBoard | |
from ttboard.mode import RPMode | |
import random | |
from machine import Pin | |
WRITE_EN = 0x80 |
This file contains 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
import time | |
import machine | |
from ttboard.demoboard import DemoBoard | |
from ttboard.mode import RPMode | |
from ttboard.pins.pins import Pins | |
import rp2 | |
# We use the PIO as we need to generate a tx_valid pulse of a single clock cycle |
This file contains 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
/* | |
* Copyright (c) 2024 Uri Shaked | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
`default_nettype none | |
module tt_um_vga_example( | |
input wire [7:0] ui_in, // Dedicated inputs | |
output wire [7:0] uo_out, // Dedicated outputs |
This file contains 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
// The script removes duplicate path entries from the User's path. | |
// It prints a power shell command that you should execute in order to update | |
// the User's path with the new value. | |
const { execSync } = require('child_process'); | |
const machinePath = execSync('powershell.exe [Environment]::GetEnvironmentVariable(\\"Path\\", [EnvironmentVariableTarget]::Machine)').toString(); | |
const userPath = execSync('powershell.exe [Environment]::GetEnvironmentVariable(\\"Path\\", [EnvironmentVariableTarget]::User)').toString(); | |
const machinePathParts = machinePath.split(';'); |
This file contains 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
// Wokwi Custom Chips with Rust | |
use wokwi_chips_api::println; | |
use wokwi_chips_api::pin::{Pin, PinMode, WatchEdge}; | |
// chipInit() will be called once per chip instance. | |
#[no_mangle] | |
pub unsafe extern "C" fn chipInit() { | |
println!("Hello from Rust Chip!"); |
This file contains 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
v {xschem version=3.4.4 file_version=1.2 | |
} | |
G {} | |
K {} | |
V {} | |
S {} | |
E {} | |
T {Transmission gate (incl. inverter)} 380 -190 0 0 0.4 0.4 {} | |
N 680 -980 1000 -980 { lab=VPWR} | |
N 840 -740 870 -740 { |
This file contains 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
v {xschem version=3.4.5 file_version=1.2 | |
} | |
G {} | |
K {} | |
V {} | |
S {} | |
E {} | |
L 4 70 -80 90 -80 {} | |
L 4 80 -90 80 -70 {} | |
L 4 80 70 80 90 {} |
This file contains 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
#include <defs.h> | |
//#include <math.h> | |
#include <stub.h> | |
#include <hw/common.h> | |
#include <uart.h> | |
#include <uart_api.h> | |
// there is some Caravel issue happening that prevents the usual SET and CLR from working | |
// a fast read followed by write results in the whole register being cleared. | |
unsigned int temp; |
NewerOlder