Sean Cross
bb0b1ff761
bitstream: use 32-bit csrs
...
This experimental change allows for easier writing of 32-bit registers,
and doesn't appear to adversely affect routing on the ice40.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:35:43 +08:00
Sean Cross
5e33e64464
deps: litex: grab latest version
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:27:53 +08:00
Sean Cross
acb766e058
rtl: sbwarmboot: use upstream litex soc doc
...
lxsocdoc is no longer maintained.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:24:52 +08:00
Sean Cross
12bb0dba97
bitstream: generate svd as part of build
...
The svd file can be generated prior to building software, so generate it
as part of the build now rather than after the fact.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:24:09 +08:00
Sean Cross
42c89d12de
bitstream: use "minimal" variant rather than "min"
...
The name "min" was deprecated and is no longer available.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:23:42 +08:00
Sean Cross
be98d4abff
bitstream: specify vexriscv_debug in mem_map
...
This is a requirement of modern litex.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:23:01 +08:00
Sean Cross
4ce54f1b5b
bitstream: use upstream litex doc documentation
...
lxsocdoc is now integrated into upstream litex.
This is required now in order to add new memory sections.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-11 21:22:40 +08:00
Sean Cross
fa435a44d2
update litex
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-02-13 08:18:09 +08:00
Sean Cross
7ced4b7ec2
litex: add csr fixes
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-01-30 15:40:55 +08:00
Sean Cross
7bf4238db2
Merge branch 'master' of github.com:im-tomu/foboot
2020-01-29 10:45:56 +08:00
Sean Cross
a67d13e925
rtl: add fomucaptouch
...
This is an untested block that will replace fomutouch.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-01-29 10:32:25 +08:00
Sean Cross
3844a9a84c
deps: sync with upstream
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-01-29 10:32:08 +08:00
Florent Kermarrec
0c2b05cbe6
hw/foboot-bitstream: provide yosys/build_template before override.
...
Since overridesof the template are done at precise locations (ex: yosys_template[2] += ...),
it's probably better to provide the template in foboot-bitstream. This allow more flexibility
for LiteX's default templates to change/evolve, while also easing foboot-bitstream code understanding.
The override code could also be simplified with the templates provided.
2020-01-02 10:35:37 +01:00
Florent Kermarrec
11f2fa8796
hw/foboot-bitstream: keep up to date with LiteX's iCE40 backend
...
Arachne-pnr support removed, use yosys/build_template insead of nextpnr_yosys/build_template
2020-01-02 10:35:25 +01:00
Sean Cross
447c5dac48
valentyusb: fix usb reset irq storm
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 22:17:33 +08:00
Sean Cross
bd41cbc2b5
valentyusb: get better-documented version
...
This improves some documentation around the eptri interface.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-29 08:56:50 +08:00
Sean Cross
d10fdd580f
hw: version: use 8 characters for git revision
...
By deafult, git only shows 7 characters. Increase this to 8.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 16:33:49 +08:00
Sean Cross
c79f831b63
rtl: version: always include git revision
...
Even when building a tagged release, include the git revision. This
prevents the git revision from being reported as `00000000`.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-28 13:07:08 +08:00
Sean Cross
8802d488c5
hw: foboot-bitstream: fix no-cpu build
...
When building without a CPU, the `self.cpu` property is not None, but
rather CPUNone. This change was made upstream and broke no-cpu builds.
Fix these builds by checking for an instance of CPUNone.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 13:44:15 +08:00
Sean Cross
77632b0c9f
rtl: sbled: fix pin mapping for EVT
...
The blue and green channels were swapped.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-27 13:24:59 +08:00
Sean Cross
249404cf41
deps: sync latest versions of dependencies
...
This just ensures we're forwards-compatible.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 13:24:10 +08:00
Sean Cross
f36a52453e
hw: bitstream: move memory range for litex compatability
...
The latest version of litex requires that we move this memory range up
by 0x80000000 to build.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 12:53:54 +08:00
Sean Cross
24a9d7e4c7
hw: define C macros indicating hardware revision
...
These macros can be used by the bios to indicate hardware revision.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-25 09:34:00 +08:00
Sean Cross
405918134e
foboot-bitstream: encode spi flash information into platform
...
Different platforms have different spi flash sizes and different numbers
of dummy bits to send. Encode this information in the platform to
simplify spi flash addition.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 21:58:38 +08:00
Sean Cross
c376d30811
hw: deps: update litex-boards to have hacker spiflash4x
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-24 21:58:09 +08:00
Sean Cross
95e6e8c211
deps: litex-boards: add moduledoc for fomu crg
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-23 14:13:36 +08:00
Sean Cross
f751f51722
foboot-bitstream: move "reset" block below USB pads
...
This keeps the modules in an order that roughly matches the memory
order.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-23 13:57:49 +08:00
Sean Cross
b40530df41
foboot-bitstream: fix comments and reorder to improve timing
...
Reordering the file seems to improve timing by quite a lot, even after
adjusting the pnr seed. With this reordering we now meet timing.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-23 13:29:08 +08:00
Sean Cross
824470a974
foboot-bitstream: start documenting soc
...
lxsocdoc can't yet document this, but add it anyway in preparation.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-23 12:57:09 +08:00
Sean Cross
45e3b5b617
rtl: break foboot modules into their own files
...
These are all independent modules, so break each one out into its own
file.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-23 10:03:56 +08:00
Sean Cross
c8e632dd7e
foboot: version: work even if git is untagged
...
Allow the "version" block to not crash python when the git repository is
untagged or doesn't exist.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 22:53:50 +08:00
Sean Cross
ce777d5057
bitstream: touch: remove "field" support to fix inputs
...
The "touch" block doesn't need field support, since it's just one field.
Remove support, which simplifies the layout and unbreaks "input"
support.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 22:47:37 +08:00
Sean Cross
d6292f5dd3
foboot-bitstream: use little-endian for SPI device
...
If we don't do this, then the words will all be backwards.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 22:04:45 +08:00
Sean Cross
99f36ceca4
litex-boards: fix pin mapping on pvt
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 18:58:15 +08:00
Sean Cross
2d8b8cb047
foboot-bitstream: fix conflict with spibone
...
Previously, we had two different spibone implementations due to a failed
merge. This removes the second one.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 11:37:27 +08:00
Sean Cross
1f91f81f8e
eptri: work-in-progress to get eptri working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-22 08:03:35 +08:00
Sean Cross
6766c9323c
Merge branch 'foboot-2' of github.com:im-tomu/foboot into foboot-2
2019-11-22 08:00:41 +08:00
Sean Cross
f536429bff
deps: update valentyusb and add spibone
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-12 21:34:43 -08:00
Sean Cross
58f99aebf2
eptri: wip commit
...
This commit includes the spibone support we're using to debug eptri.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-11-01 17:07:27 +08:00
Sean Cross
7edde2c26e
deps: use fixed litex-boards evt commit
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-10-11 21:40:22 +08:00
Sean Cross
5e33feee21
deps: lxsocdoc: fix various document generation issues
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-10-07 12:11:44 +08:00
Sean Cross
985de5bde8
hw: bitstream: use 5 dummy cycles for spi flash
...
With the default of 15, it doesn't actually work.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-10-07 12:10:40 +08:00
Sean Cross
c667d1769e
hw: bitstream: document version
register
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-10-07 12:10:18 +08:00
Sean Cross
25bf6c4335
rtl: add mcycle and minstret CSRs to vexriscv
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-10-07 12:08:33 +08:00
Sean Cross
527c6347b8
valentyusb: use master
branch
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 12:17:28 +08:00
Sean Cross
b6c7cdae88
foboot-bitstream: correct yet more rst quotes
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 11:50:14 +08:00
Sean Cross
6198be045b
lxsocdoc: reflow split csrs
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 11:39:55 +08:00
Sean Cross
8879fc7824
foboot: more fixing of rst-style backticks
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 09:29:40 +08:00
Sean Cross
645fcabc54
lxsocdoc: commit svd formatting fixes
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 09:28:18 +08:00
Sean Cross
6baf74c074
hw: add more documentation to top modules
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-26 09:27:12 +08:00