mirror of https://github.com/YosysHQ/icestorm.git
Added icetime to examples
This commit is contained in:
parent
7b7f75e44f
commit
7902d3ac3d
|
|
@ -1,3 +1,4 @@
|
|||
example.bin
|
||||
example.blif
|
||||
example.txt
|
||||
example.asc
|
||||
example.rpt
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
example.bin
|
||||
example.blif
|
||||
example.txt
|
||||
example.asc
|
||||
example.rpt
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue