boards.vh 603 B

1234567891011121314151617181920212223242526272829
  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. `endif
  19. // Defaults
  20. // PLL params 12M input, 48M output
  21. `ifndef PLL_CUSTOM
  22. `define PLL_DIVR 4'b0000
  23. `define PLL_DIVF 7'b0111111
  24. `define PLL_DIVQ 3'b100
  25. `define PLL_FILTER_RANGE 3'b001
  26. `endif