Tweak blinky.sh for xc7

This commit is contained in:
Eddie Hung 2018-08-11 16:01:15 -07:00
parent fbeb039f39
commit 74ff630922
3 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
set -ex
yosys blinky.ys
../nextpnr-ice40 --json blinky.json --pcf blinky.pcf --asc blinky.asc
icepack blinky.asc blinky.bin
icebox_vlog blinky.asc > blinky_chip.v
iverilog -o blinky_tb blinky_chip.v blinky_tb.v
vvp -N ./blinky_tb
../nextpnr-xc7 --json blinky.json --pcf blinky.pcf --xdl blinky.xdl
#icepack blinky.asc blinky.bin
#icebox_vlog blinky.asc > blinky_chip.v
#iverilog -o blinky_tb blinky_chip.v blinky_tb.v
#vvp -N ./blinky_tb

View File

@ -7,9 +7,9 @@ module blinky (
output led5
);
SB_GB clk_gb (
.USER_SIGNAL_TO_GLOBAL_BUFFER(clki),
.GLOBAL_BUFFER_OUTPUT(clk)
BUFG clk_gb (
.I(clki),
.O(clk)
);
localparam BITS = 5;

View File

@ -1,3 +1,3 @@
read_verilog blinky.v
synth_ice40 -top blinky
synth_xilinx -top blinky
write_json blinky.json