Get ice timing reporting working
This commit is contained in:
parent
af286d07ca
commit
6b49bb1e11
|
@ -1,3 +1,4 @@
|
||||||
*.asc
|
*.asc
|
||||||
*.bin
|
*.bin
|
||||||
*.json
|
*.json
|
||||||
|
*.rpt
|
||||||
|
|
|
@ -15,12 +15,13 @@ ${FN}.json: ${FN}.v
|
||||||
${FN}.asc: ${FN}.json ${FN}.pcf
|
${FN}.asc: ${FN}.json ${FN}.pcf
|
||||||
nextpnr-ice40 ${NEXTPNR_OPTS} --pcf "${FN}.pcf" --json "${FN}.json" --asc "${FN}.asc"
|
nextpnr-ice40 ${NEXTPNR_OPTS} --pcf "${FN}.pcf" --json "${FN}.json" --asc "${FN}.asc"
|
||||||
|
|
||||||
#${FN}.rpt: ${FN}.pcf ${FN}.txt
|
${FN}.rpt: ${FN}.pcf ${FN}.asc
|
||||||
# icetime $ICETIME_OPTS -p "${FN}.pcf" -mtr "${FN}.rpt" "${FN}.txt"
|
icetime ${ICETIME_OPTS} -p "${FN}.pcf" -mtr "${FN}.rpt" "${FN}.asc"
|
||||||
|
|
||||||
${FN}.bin: ${FN}.asc
|
${FN}.bin: ${FN}.asc
|
||||||
icepack ${FN}.asc ${FN}.bin
|
icepack ${FN}.asc ${FN}.bin
|
||||||
|
|
||||||
|
timing: ${FN}.rpt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ${FN}.json ${FN}.asc ${FN}.bin ${FN}_filled.bin
|
rm ${FN}.json ${FN}.asc ${FN}.bin ${FN}_filled.bin
|
||||||
|
|
|
@ -3,11 +3,11 @@ module bldc (
|
||||||
output if_int
|
output if_int
|
||||||
);
|
);
|
||||||
|
|
||||||
reg tmp = 0;
|
reg [3:0] tmp = 0;
|
||||||
assign if_int = tmp;
|
assign if_int = tmp[3];
|
||||||
|
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
tmp <= ~tmp;
|
tmp <= tmp + 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
Loading…
Reference in New Issue