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
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
yosys blinky.ys
|
yosys blinky.ys
|
||||||
../nextpnr-ice40 --json blinky.json --pcf blinky.pcf --asc blinky.asc
|
../nextpnr-xc7 --json blinky.json --pcf blinky.pcf --xdl blinky.xdl
|
||||||
icepack blinky.asc blinky.bin
|
#icepack blinky.asc blinky.bin
|
||||||
icebox_vlog blinky.asc > blinky_chip.v
|
#icebox_vlog blinky.asc > blinky_chip.v
|
||||||
iverilog -o blinky_tb blinky_chip.v blinky_tb.v
|
#iverilog -o blinky_tb blinky_chip.v blinky_tb.v
|
||||||
vvp -N ./blinky_tb
|
#vvp -N ./blinky_tb
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ module blinky (
|
||||||
output led5
|
output led5
|
||||||
);
|
);
|
||||||
|
|
||||||
SB_GB clk_gb (
|
BUFG clk_gb (
|
||||||
.USER_SIGNAL_TO_GLOBAL_BUFFER(clki),
|
.I(clki),
|
||||||
.GLOBAL_BUFFER_OUTPUT(clk)
|
.O(clk)
|
||||||
);
|
);
|
||||||
|
|
||||||
localparam BITS = 5;
|
localparam BITS = 5;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
read_verilog blinky.v
|
read_verilog blinky.v
|
||||||
synth_ice40 -top blinky
|
synth_xilinx -top blinky
|
||||||
write_json blinky.json
|
write_json blinky.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue