Comments (3)
Hi! I made a small snippet that reboots the ice40 if you connect the 1-2 pins:
module top (
output rgb0,
output rgb1,
output rgb2,
input clki,
input user_1,
output user_2,
output user_3,
input user_4,
);
assign rgb1 = 1'b1;
assign rgb2 = 1'b1;
// Connect to system clock (with buffering)
wire clkosc;
SB_GB clk_gb (
.USER_SIGNAL_TO_GLOBAL_BUFFER(clki),
.GLOBAL_BUFFER_OUTPUT(clkosc)
);
wire clk = clkosc;
// Configure user pins so that we can detect the user connecting
// 1-2 or 3-4 with conductive material.
//
// We do this by grounding user_2 and user_3, and configuring inputs
// with pullups on user_1 and user_4.
localparam SB_IO_TYPE_SIMPLE_INPUT = 6'b000001;
assign user_2 = 1'b0;
assign user_3 = 1'b0;
// Signal receiving the "touch input"
wire user_1_pulled;
SB_IO #(
.PIN_TYPE(SB_IO_TYPE_SIMPLE_INPUT),
.PULLUP(1'b1)
) user_1_io (
.PACKAGE_PIN(user_1),
.OUTPUT_ENABLE(1'b0),
.INPUT_CLK(clk),
.D_IN_0(user_1_pulled),
);
// We connect sc signal to the warmboot.
// If we touch with conductive material 1-2
// The fomu reboots.
SB_WARMBOOT my_warmboot_i (
.BOOT (~user_1_pulled), //Level-sensitive trigger signal
.S1 (1'b0), //S1, S0 specify selection of the configuration image
.S0 (1'b0)
);
endmodule
So a trick could be to use the SB_WARMBOOT (SB=SiliconBlue) (?module?).
You can find more of these modules here
Hope it helps!
from fomu-workshop.
If you have wishbone, you can reset with wishbone-tool 0xe0006000 0xac
. If you don't, you'll have to write some verilog to support it. You can also do some usb trickery to reset power to the device.
from fomu-workshop.
I believe, wishbone-tool 0xe0006000 0xac
is not working after uploading riscv-blink
from fomu-workshop.
Related Issues (20)
- Typo in "Background" section?
- MicroPython rgb.read_raw() doesn't seem to work properly HOT 4
- Add chisel example to documentation and tests
- litex_boards bump is blocked. Local LiteX scripts probably need update. HOT 5
- vhdl/blink/blink.json missing HOT 7
- https://workshop.fomu.im/en/latest/migen.html out of date?
- USB-to-UART core desirable HOT 13
- More permissive license for .pcf files HOT 2
- investigate macosx ci failures HOT 1
- investigate docs ci failure HOT 1
- investigate tinyusb failure HOT 7
- consider exposing SB_LEDDA_IP to verilog and litex samples HOT 3
- consider adding SB_RGBA_DRV PWM verilog examples HOT 4
- consider mentioning simulation tooling in hdl section
- VHDL examples don't build with fomu-toolchain HOT 7
- The RISC-V Zig Example is failing on macOS HOT 2
- Add an XLS demo to the workshop
- Foboot v2.0.3 check should come after driver/udev
- doc build: python 3.7 is not installable HOT 1
- doc build error: 'Sphinx' object has no attribute 'add_stylesheet' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fomu-workshop.