Skip to content

Changes

Summary

  1. icE1usb fw: Avoid casting random pointer to struct in set_{rx,tx}_mode (details)
  2. gateware/cores: Update no2e1 (details)
  3. icE1usb fw: Fix OIS -> AIS typo (details)
  4. gateware: Rework the low-level line state monitoring ticks (details)
  5. fw: Update the helpers in misc.{c,h} for the new tick measurement hw (details)
  6. icE1usb fw: Always define NUM_E1_PORTS in Makefile (details)
  7. icE1usb fw: Fix some formatting (tab vs space) (details)
  8. icE1usb fw: Use NUM_E1_PORTS in e1.c (details)
Commit ded31a7a8642c906fdc4474ffeaff12448589674 by Sylvain Munaut
icE1usb fw: Avoid casting random pointer to struct in set_{rx,tx}_mode

There is really no need here, we can use `memcpy` just as well.

Not sure if this was a problem here but newer gcc are annoying
with aliasing rules and such so better safe than sorry.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I110ee4c014e8cfe058f7fc357decb7ab99e0be64
The file was modified firmware/ice40-riscv/icE1usb/usb_e1.c
Commit b5a7e87e14ba838d0e56d6664ad21efca18a91b3 by Sylvain Munaut
gateware/cores: Update no2e1

This pulls in the support for non-crc4 framing modes and
also setting the Sa bits (for osmo-v5)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ica1bbaa052988f5b7e71c7fa51f87eb0bfea6f67
The file was modified gateware/cores/no2e1
Commit 621a590a9eca6d395ecd7ac6dbd4c035ee524b33 by Sylvain Munaut
icE1usb fw: Fix OIS -> AIS typo

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I23f242c31483533adb9cb60b4aac9b95a7b807e8
The file was modified firmware/ice40-riscv/icE1usb/e1.c
Commit 60f664fba35cc50a0f347385c1144b31a9cdd8a6 by Sylvain Munaut
gateware: Rework the low-level line state monitoring ticks

The 'tick' system was meant to allow the firmware to monitor the
low level state of the line, beyong just "not aligned", but it was
never really useful in the present state.

Now we have more tick source available (but only one can be measured
at the same time). More specifically, the firmware can monitor the
presence/absence of raw pulses (LOS condition), it can also monitor
the number of '1' pulses to detect an AIS signals, or simply the rate
of RX pulses (to tune the local oscillator to incoming signal rate).

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I31fa8a717a26643f1b6ca5644bee1d8c41a2512e
The file was modified gateware/cores/no2e1
The file was modified gateware/e1-tracer/rtl/top.v
The file was modified gateware/icE1usb-proto/doc/mem-map.md
The file was modified gateware/icE1usb-proto/rtl/top.v
The file was modified gateware/common/rtl/soc_base.v
The file was modified gateware/icE1usb/doc/mem-map.md
The file was modified gateware/e1-tracer/doc/mem-map.md
The file was modified gateware/icE1usb-proto/rtl/misc.v
The file was modified gateware/icE1usb/rtl/misc.v
The file was modified gateware/icE1usb/rtl/top.v
The file was modified gateware/e1-tracer/rtl/misc.v
Commit 6bee9025906d677a680e328c8a09072d87752aa5 by Sylvain Munaut
fw: Update the helpers in misc.{c,h} for the new tick measurement hw

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ia881fead7a40f773969a016db05bea0a1fa1604f
The file was modified firmware/ice40-riscv/e1-tracer/misc.c
The file was modified firmware/ice40-riscv/icE1usb/misc.c
The file was modified firmware/ice40-riscv/icE1usb/misc.h
The file was modified firmware/ice40-riscv/e1-tracer/misc.h
Commit 803210dee528ecd1da1b0a26d4613105e406c807 by Sylvain Munaut
icE1usb fw: Always define NUM_E1_PORTS in Makefile

So that it's available without having to include the USB include ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I0b434cef7a662c19e5f48072285c013e8c02e254
The file was modified firmware/ice40-riscv/icE1usb/usb_desc_ids.h
The file was modified firmware/ice40-riscv/icE1usb/Makefile
Commit 02b9be106a80893deb09e221f81b7080c6be321b by Sylvain Munaut
icE1usb fw: Fix some formatting (tab vs space)

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Id47025320e65a27fc46e9204e050c57d108dab56
The file was modified firmware/ice40-riscv/icE1usb/usb_e1.c
Commit b9509f8bb0238c51064c4a7d18d42ef0cf868790 by Sylvain Munaut
icE1usb fw: Use NUM_E1_PORTS in e1.c

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Id69b4429a67ccb8834fee26b83839539a5ad8b31
The file was modified firmware/ice40-riscv/icE1usb/e1.c