A VexRiscv with AES128 on the memory mapped bus. Works in simulation and on the ULX3S.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
736 B

4 years ago
  1. TOPMOD := PQVexRiscvUlx3s
  2. CHIP := 85k
  3. PACKAGE := CABGA381
  4. CONSTRAINTS := ulx3s_v20_constraints
  5. VLOGFIL := $(TOPMOD).v
  6. PROGPATH := ~/bin/ujprog/ujprog
  7. .PHONY: all
  8. all: $(TOPMOD).bit
  9. .PHONY: clean
  10. clean:
  11. rm -rf $(TOPMOD).json $(TOPMOD).config $(TOPMOD).bit $(TOPMOD)*.bin
  12. $(TOPMOD).bit: $(TOPMOD).config
  13. ecppack $(TOPMOD).config $(TOPMOD).bit
  14. $(TOPMOD).config: $(TOPMOD).json
  15. nextpnr-ecp5 \
  16. --$(CHIP) \
  17. --package $(PACKAGE) \
  18. --json $(TOPMOD).json \
  19. --lpf-allow-unconstrained \
  20. --lpf $(CONSTRAINTS).lpf \
  21. --textcfg $(TOPMOD).config
  22. $(TOPMOD).json: $(TOPMOD).v
  23. yosys -q -l $(TOPMOD)_yosys.log -p "synth_ecp5 -top $(TOPMOD) -json $(TOPMOD).json" $(TOPMOD).v
  24. prog: $(TOPMOD).bit
  25. sudo $(PROGPATH) $(TOPMOD).bit