module top(input clk_100mhz, output [3:1] led); reg [25:0] counter = 0; assign led = counter[25:23]; always @(posedge clk_100mhz) counter <= counter + 1; endmodule
set_io clk_100mhz R9 set_io led[1] C8 set_io led[2] F7 set_io led[3] K9
synthesize: demo.bin demo.blif: top.v yosys -q -p "synth_ice40 -blif demo.blif" top.v demo.asc: demo.blif demo.pcf arachne-pnr -d 8k -p demo.pcf $< -o $@ demo.bin: demo.asc icepack $< $@ .PHONY: synthesize
icotools/icosoc/examples/otl-demo
directory, and run this command with the appropriate IP address for the RaspberryPi.$ SSH_RASPI='ssh pi@<rpi-ip-address>' make run