Added icetime to examples

This commit is contained in:
Clifford Wolf 2016-01-17 11:40:22 +01:00
parent 7b7f75e44f
commit 7902d3ac3d
5 changed files with 21 additions and 7 deletions

View File

@ -1,3 +1,4 @@
example.bin
example.blif
example.txt
example.asc
example.rpt

View File

@ -2,7 +2,7 @@ PROJ = example
PIN_DEF = hx8kboard.pcf
DEVICE = 8k
all: $(PROJ).bin
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
@ -13,6 +13,9 @@ all: $(PROJ).bin
%.bin: %.asc
icepack $< $@
%.rpt: %.asc
icetime -mt $< | tee $@
prog: $(PROJ).bin
iceprog $<
@ -21,6 +24,7 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,3 +1,4 @@
example.bin
example.blif
example.txt
example.asc
example.rpt

View File

@ -2,7 +2,7 @@ PROJ = example
PIN_DEF = icestick.pcf
DEVICE = 1k
all: $(PROJ).bin
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
@ -13,14 +13,18 @@ all: $(PROJ).bin
%.bin: %.asc
icepack $< $@
%.rpt: %.asc
icetime -mt $< | tee $@
prog: $(PROJ).bin
iceprog $<
sudo-prog: $(PROJ).bin
@echo 'Executing prog as root!!!'
iceprog $<
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1781,6 +1781,7 @@ int main(int argc, char **argv)
{
case 'p':
printf("// Reading input .pcf file..\n");
fflush(stdout);
read_pcf(optarg);
break;
case 'P':
@ -1836,12 +1837,15 @@ int main(int argc, char **argv)
help(argv[0]);
printf("// Reading input .asc file..\n");
fflush(stdout);
read_config();
printf("// Reading %s chipdb file..\n", config_device.c_str());
fflush(stdout);
read_chipdb();
printf("// Creating timing netlist..\n");
fflush(stdout);
for (int net : used_nets)
for (auto &seg : net_to_segments[net])