Commit Graph

193 Commits

Author SHA1 Message Date
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
Sean Cross
e5e760ef44 valentyusb: reformat documentation
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 15:48:11 +08:00
Sean Cross
9d65dbb67a valentyusb: fix eptri bulk documentation
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 15:38:27 +08:00
Sean Cross
ba137818b8 foboot: set project name and author
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 15:11:25 +08:00
Sean Cross
eca00aeeac lxsocdoc: csr reformatting updates
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 14:57:23 +08:00
Sean Cross
129944e1b5 hw: update lxsocdoc
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 14:24:25 +08:00
Sean Cross
9bdb53ca78 hw: include pnr seed in design
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 13:31:57 +08:00
Sean Cross
5d2798588c hw: put csr file in build
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:58:47 +08:00
Sean Cross
af6c1e9cbc hw: add an interrupt for timer0
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:58:08 +08:00
Sean Cross
8bb7f5cb9a hw: fix build by specifying fields directly
Since we use fields now, these values must be specified rather than
specifying the whole `status` register at once.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:57:34 +08:00
Sean Cross
1babc9c2c8 hw: add a dependency on nextpnr-ice40
This used to be implicit in other dependencies.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:57:06 +08:00
Sean Cross
92e35f7e1f lxsocdoc: ignore __pycache__
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:56:36 +08:00
Sean Cross
cbefcd2989 valentyusb: move pend bit
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:44:32 +08:00
Sean Cross
4dacc95187 lxbuildenv: update to latest version
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 12:25:15 +08:00
Sean Cross
a09fbb83af hw: set reset values for version, use _we for messible
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 11:58:30 +08:00
Sean Cross
6b74f50786 lxsocdoc: print register defaults
Signed-off-by: Sean Cross <sean@xobs.io>
2019-09-25 11:58:01 +08:00