boards.vh 801 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * boards.vh
  3. *
  4. * vim: ts=4 sw=4 syntax=verilog
  5. *
  6. * Copyright (C) 2020 Sylvain Munaut <tnt@246tNt.com>
  7. * SPDX-License-Identifier: CERN-OHL-P-2.0
  8. */
  9. `ifdef BOARD_BITSY_V0
  10. // 1bitsquared iCEbreaker bitsy prototypes (v0.x)
  11. `define HAS_PSRAM
  12. `elsif BOARD_BITSY_V1
  13. // 1bitsquared iCEbreaker bitsy prod (v1.x)
  14. `define HAS_PSRAM
  15. `elsif BOARD_ICEBREAKER
  16. // 1bitsquared iCEbreaker
  17. `define HAS_PSRAM
  18. `elsif BOARD_FOMU_HACKER
  19. // FOMU clock is 48M
  20. `define PLL_CORE
  21. `define PLL_CUSTOM
  22. `define PLL_DIVR 4'b0000
  23. `define PLL_DIVF 7'b0001111
  24. `define PLL_DIVQ 3'b100
  25. `define PLL_FILTER_RANGE 3'b100
  26. `endif
  27. // Defaults
  28. // PLL params 12M input, 48M output
  29. `ifndef PLL_CUSTOM
  30. `define PLL_DIVR 4'b0000
  31. `define PLL_DIVF 7'b0111111
  32. `define PLL_DIVQ 3'b100
  33. `define PLL_FILTER_RANGE 3'b001
  34. `endif