mirror of https://github.com/YosysHQ/nextpnr.git
Tweak blinky.sh for xc7
This commit is contained in:
parent
fbeb039f39
commit
74ff630922
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
read_verilog blinky.v
|
||||
synth_ice40 -top blinky
|
||||
synth_xilinx -top blinky
|
||||
write_json blinky.json
|
||||
|
|
|
|||
Loading…
Reference in New Issue