]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-rocon.git/log
fpga/lx-cpu1/lx-rocon.git
9 years agoTumbl - disable GPRF forward if finish_wrb_mem_s is clock cycle cause. tumbl-xmem-bug-hunt
Pavel Pisa [Sat, 10 Jan 2015 09:28:31 +0000 (10:28 +0100)]
Tumbl - disable GPRF forward if finish_wrb_mem_s is clock cycle cause.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdated GTKwave view configuration for TUMBL tests visualization.
Pavel Pisa [Sat, 10 Jan 2015 09:24:56 +0000 (10:24 +0100)]
Updated GTKwave view configuration for TUMBL tests visualization.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdate Tumbl and test of concurrent access.
Pavel Pisa [Wed, 31 Dec 2014 08:19:09 +0000 (09:19 +0100)]
Update Tumbl and test of concurrent access.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoPrevent register duplications of FPGA chipselect - cs0_xc_f_s - signal.
Pavel Pisa [Wed, 31 Dec 2014 08:16:56 +0000 (09:16 +0100)]
Prevent register duplications of FPGA chipselect - cs0_xc_f_s - signal.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTumbl: Separate wait for external bus data and state when external bus is taken by...
Pavel Pisa [Tue, 30 Dec 2014 14:09:29 +0000 (15:09 +0100)]
Tumbl: Separate wait for external bus data and state when external bus is taken by other master.

Original design reuses external bus clock enable/ready indication
for external master wait. This solution is broken because
external master leaves other data on the bus when clocks
are re-enabled than Tumbl expects. When external master
requests bus at/after end of the Tumbl external memory cycle
there is no need to do anything special in such case.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoDemonstrate memory write-back problem on simplified Tumbl only testbed.
Pavel Pisa [Tue, 30 Dec 2014 10:44:56 +0000 (11:44 +0100)]
Demonstrate memory write-back problem on simplified Tumbl only testbed.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoInclude symlinks to utils and tables to allow complete build of bug hunt test.
Pavel Pisa [Tue, 30 Dec 2014 09:32:17 +0000 (10:32 +0100)]
Include symlinks to utils and tables to allow complete build of bug hunt test.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL firmware and gtkwave log setup which demonstrates xmem access bug.
Pavel Pisa [Tue, 30 Dec 2014 09:01:03 +0000 (10:01 +0100)]
TUMBL firmware and gtkwave log setup which demonstrates xmem access bug.

Incorrect/excessive data are read at time 9125 ns and are written
to r4. The this value is stored in sin_res at time 9190 ns.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoSet of VHDL design workaround to allow whole design compile by GHDL.
Pavel Pisa [Tue, 30 Dec 2014 08:45:15 +0000 (09:45 +0100)]
Set of VHDL design workaround to allow whole design compile by GHDL.

IRC subsystem is removed from lx_rocon_top.vhd because its inclusion
causes exception in GHDL.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoROCON GHDL simulation testbed setup for concurrent access bug hunt.
Pavel Pisa [Tue, 30 Dec 2014 08:30:10 +0000 (09:30 +0100)]
ROCON GHDL simulation testbed setup for concurrent access bug hunt.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL testbed updated to be closer to concurrent extmem access situation.
Pavel Pisa [Mon, 29 Dec 2014 11:57:51 +0000 (12:57 +0100)]
TUMBL testbed updated to be closer to concurrent extmem access situation.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL GHDL simulation testbed prepared.
Pavel Pisa [Mon, 29 Dec 2014 00:01:13 +0000 (01:01 +0100)]
TUMBL GHDL simulation testbed prepared.

Actual use is for simulate and catch problem with missing
wait for external bus data ready in some situations.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agousb_sendhex: extend support for I32HEX format variant.
Pavel Pisa [Mon, 22 Dec 2014 17:40:07 +0000 (18:40 +0100)]
usb_sendhex: extend support for I32HEX format variant.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
9 years agoRoCoN: test of FPGA internal interference between TUMBL and LPC.
Pavel Pisa [Sun, 21 Dec 2014 17:17:32 +0000 (18:17 +0100)]
RoCoN: test of FPGA internal interference between TUMBL and LPC.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoReport detailed analysis of timing problems for 20 worst signal traces.
Pavel Pisa [Sat, 20 Dec 2014 09:18:08 +0000 (10:18 +0100)]
Report detailed analysis of timing problems for 20 worst signal traces.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: ensure that PXMC does not interfere with TUMBL firmware PWM writes.
Pavel Pisa [Mon, 15 Dec 2014 13:14:26 +0000 (14:14 +0100)]
RoCoN: ensure that PXMC does not interfere with TUMBL firmware PWM writes.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL firmware: make reserve in current DQ filter for longer measurement period.
Pavel Pisa [Mon, 15 Dec 2014 13:13:09 +0000 (14:13 +0100)]
TUMBL firmware: make reserve in current DQ filter for longer measurement period.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL: Modules updated - correct broken CMPU, CMP and IT(TE) in TUMBL and other cleanups.
Pavel Pisa [Mon, 15 Dec 2014 09:34:10 +0000 (10:34 +0100)]
TUMBL: Modules updated - correct broken CMPU, CMP and IT(TE) in TUMBL and other cleanups.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include optional mode parameter to testlxpwrrx command.
Pavel Pisa [Mon, 15 Dec 2014 09:17:14 +0000 (10:17 +0100)]
RoCoN: include optional mode parameter to testlxpwrrx command.

Mode 0 stores standard data for current ADC evaluation.
Mode 1 is used to debug state of TUMBL firmware.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoProvide cumulative D and Q current components for filtering.
Pavel Pisa [Sun, 14 Dec 2014 16:02:01 +0000 (17:02 +0100)]
Provide cumulative D and Q current components for filtering.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL firmware to compute D and Q components of winding current.
Pavel Pisa [Sun, 14 Dec 2014 15:40:16 +0000 (16:40 +0100)]
TUMBL firmware to compute D and Q components of winding current.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTUMBL interface: Combine D and Q PWM components into single variable.
Pavel Pisa [Sun, 14 Dec 2014 12:28:38 +0000 (13:28 +0100)]
TUMBL interface: Combine D and Q PWM components into single variable.

This ensures that both components are changed by single write
command. This ensures data consistency even when PWM is
written asynchronously by LPC.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoCorrection of edge case of phase sector evaluation in the TUMBL firmware.
Pavel Pisa [Sun, 14 Dec 2014 11:45:34 +0000 (12:45 +0100)]
Correction of edge case of phase sector evaluation in the TUMBL firmware.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: TUMBL firmware commutation test.
Pavel Pisa [Fri, 12 Dec 2014 21:22:01 +0000 (22:22 +0100)]
RoCoN: TUMBL firmware commutation test.

It provides PWM commutation only and requires phase
table to be aligned by prior run of RoCoN LPC
firmware.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoVariant of 3-phase DQ firmware which replaces branches by arithmetic.
Pavel Pisa [Fri, 12 Dec 2014 21:19:05 +0000 (22:19 +0100)]
Variant of 3-phase DQ firmware which replaces branches by arithmetic.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoThe first firmware version for DQ to 3 phase PWM computation.
Pavel Pisa [Tue, 9 Dec 2014 23:00:25 +0000 (00:00 +0100)]
The first firmware version for DQ to 3 phase PWM computation.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoSetup tumble specific tool-chain for firmware build.
Pavel Pisa [Mon, 8 Dec 2014 21:57:32 +0000 (22:57 +0100)]
Setup tumble specific tool-chain for firmware build.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: minor adjustment of fncapprox test;
Pavel Pisa [Sun, 7 Dec 2014 21:52:00 +0000 (22:52 +0100)]
RoCoN: minor adjustment of fncapprox test;

Reduce test range by 16.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTumbl firmware which tracks IRC0 and computes sine and cosine with use of approximati...
Pavel Pisa [Sun, 7 Dec 2014 21:46:57 +0000 (22:46 +0100)]
Tumbl firmware which tracks IRC0 and computes sine and cosine with use of approximation block.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoMove original tumbl firmware out of way of new one.
Pavel Pisa [Sun, 7 Dec 2014 21:27:12 +0000 (22:27 +0100)]
Move original tumbl firmware out of way of new one.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: approximated functions block test adapted to changes and cycle mode provided.
Pavel Pisa [Sun, 7 Dec 2014 10:55:10 +0000 (11:55 +0100)]
RoCoN: approximated functions block test adapted to changes and cycle mode provided.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoReduce sine and cosine to 16-bit only variant in approximated function block.
Pavel Pisa [Sun, 7 Dec 2014 10:53:57 +0000 (11:53 +0100)]
Reduce sine and cosine to 16-bit only variant in approximated function block.

It is far above target application needs and implementation
with last result bits stripped reduces FPGA slices utilization.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoAdd registers to LX Master MOSI and SYNC signals to ensure right timing.
Pavel Pisa [Sat, 6 Dec 2014 23:36:28 +0000 (00:36 +0100)]
Add registers to LX Master MOSI and SYNC signals to ensure right timing.

Changed location to falling clock phase to adjust timing.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoApproximated function block changed to used signed 18x18 multiply of DSP48A1.
Pavel Pisa [Sat, 6 Dec 2014 23:28:29 +0000 (00:28 +0100)]
Approximated function block changed to used signed 18x18 multiply of DSP48A1.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: approximated functions test code extended.
Pavel Pisa [Sat, 6 Dec 2014 11:59:13 +0000 (12:59 +0100)]
RoCoN: approximated functions test code extended.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoApproximated function block computes reciprocal, sine and cosine functions.
Pavel Pisa [Sat, 6 Dec 2014 11:58:46 +0000 (12:58 +0100)]
Approximated function block computes reciprocal, sine and cosine functions.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoTable C for reciprocal computation reduced to made DSP48 structure same as for sine.
Pavel Pisa [Thu, 4 Dec 2014 18:40:11 +0000 (19:40 +0100)]
Table C for reciprocal computation reduced to made DSP48 structure same as for sine.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoLX Master: explicitly declare widely permissive license for lx_crosdom_ser_fifo...
Pavel Pisa [Tue, 2 Dec 2014 22:16:17 +0000 (23:16 +0100)]
LX Master: explicitly declare widely permissive license for  lx_crosdom_ser_fifo.vhd.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: included command to test approximation of reciprocal computation.
Pavel Pisa [Sun, 30 Nov 2014 21:39:52 +0000 (22:39 +0100)]
RoCoN: included command to test approximation of reciprocal computation.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoReciprocal computation implemented in function approximation block.
Pavel Pisa [Sun, 30 Nov 2014 19:03:25 +0000 (20:03 +0100)]
Reciprocal computation implemented in function approximation block.

The function approximation block is placed
on address 0x80023000 .

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoInclude initial stub of function generator to LX HW design.
Pavel Pisa [Sun, 30 Nov 2014 16:31:50 +0000 (17:31 +0100)]
Include initial stub of function generator to LX HW design.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoLX master: ensure fully specified state for rx_done_ratio_s to prevent latch use.
Pavel Pisa [Sun, 30 Nov 2014 16:29:19 +0000 (17:29 +0100)]
LX master: ensure fully specified state for rx_done_ratio_s to prevent latch use.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: lower integration constant and max. speed per tick after switching 4x faster...
Pavel Pisa [Mon, 24 Nov 2014 21:30:51 +0000 (22:30 +0100)]
RoCoN: lower integration constant and max. speed per tick after switching 4x faster interrupt.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: correct computation of channel location for case with multiple LXPWR slaves.
Pavel Pisa [Mon, 24 Nov 2014 21:28:39 +0000 (22:28 +0100)]
RoCoN: correct computation of channel location for case with multiple LXPWR slaves.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: move Master RX ISR to appl_pxmc.c which allows to use it for PXMC timing.
Pavel Pisa [Sun, 23 Nov 2014 21:29:46 +0000 (22:29 +0100)]
RoCoN: move Master RX ISR to appl_pxmc.c which allows to use it for PXMC timing.

When PXMC_ROCON_TIMED_BY_RX_DONE is defined in appl_defs.h
then whole PXMC controller and coordinated movement trimming
is driven by by LX Master receive from LXPWR done event.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: FPGA register for Rx event reduction ration configuration.
Pavel Pisa [Sun, 23 Nov 2014 15:16:06 +0000 (16:16 +0100)]
RoCoN: FPGA register for Rx event reduction ration configuration.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoLX Master extended to allow send only each n-th receive done event.
Pavel Pisa [Sun, 23 Nov 2014 15:14:58 +0000 (16:14 +0100)]
LX Master extended to allow send only each n-th receive done event.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoMade LX Master communication frame configurable.
Pavel Pisa [Sun, 23 Nov 2014 09:30:59 +0000 (10:30 +0100)]
Made LX Master communication frame configurable.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: test command to report measured LXPWR cycle period.
Pavel Pisa [Sun, 23 Nov 2014 09:25:09 +0000 (10:25 +0100)]
RoCoN: test command to report measured LXPWR cycle period.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: add definition of LX Master register for PWM cycle period configuration.
Pavel Pisa [Sat, 22 Nov 2014 22:58:35 +0000 (23:58 +0100)]
RoCoN: add definition of LX Master register for PWM cycle period configuration.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Configure master FPGA for LXPWR design including power supply voltage ADC.
Pavel Pisa [Tue, 11 Nov 2014 19:25:49 +0000 (20:25 +0100)]
RoCoN: Configure master FPGA for LXPWR design including power supply voltage ADC.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Select higher interrupt priority for LXPWM master receiver interrupt.
Pavel Pisa [Sun, 9 Nov 2014 19:35:11 +0000 (20:35 +0100)]
RoCoN: Select higher interrupt priority for LXPWM master receiver interrupt.

The current data acquisition/read from FPGA has to be finished
in less than 50 usec and other interrupts can can delay
this processing. The receiver interrupt LXPWR_RX_IRQn
is mapped to interrupt TIMER2_IRQn and its priority
is increased.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Configure PXMC for new LXPWR data format by default.
Pavel Pisa [Sun, 9 Nov 2014 19:30:42 +0000 (20:30 +0100)]
RoCoN: Configure PXMC for new LXPWR data format by default.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: PXMC support for new LXPWR data format used by sigma-int rolling ADC.
Pavel Pisa [Fri, 7 Nov 2014 13:30:08 +0000 (14:30 +0100)]
RoCoN: PXMC support for new LXPWR data format used by sigma-int rolling ADC.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdated submodules to actual versions.
Pavel Pisa [Sun, 21 Sep 2014 08:08:57 +0000 (10:08 +0200)]
Updated submodules to actual versions.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: use BlueBot drawing declared axis order after population of another two bridges. bluebot
Pavel Pisa [Fri, 27 Jun 2014 22:32:37 +0000 (00:32 +0200)]
RoCoN: use BlueBot drawing declared axis order after population of another two bridges.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: change testlxpwrrx stored set of data to include PWM values as well.
Pavel Pisa [Wed, 18 Jun 2014 21:57:57 +0000 (23:57 +0200)]
RoCoN: change testlxpwrrx stored set of data to include PWM values as well.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: added support and test command to capture LXPWR ADC stream.
Pavel Pisa [Tue, 17 Jun 2014 20:52:03 +0000 (22:52 +0200)]
RoCoN: added support and test command to capture LXPWR ADC stream.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: correct variable name in pxmc_rocon_receiver_chan2reg.
Pavel Pisa [Tue, 17 Jun 2014 20:50:33 +0000 (22:50 +0200)]
RoCoN: correct variable name in pxmc_rocon_receiver_chan2reg.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoProvide output event indication end of reception from LXPWR.
Pavel Pisa [Tue, 17 Jun 2014 18:03:10 +0000 (20:03 +0200)]
Provide output event indication end of reception from LXPWR.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: implement HAL sensors reading and processing for BLDC/PMSM.
Pavel Pisa [Sun, 15 Jun 2014 22:34:46 +0000 (00:34 +0200)]
RoCoN: implement HAL sensors reading and processing for BLDC/PMSM.

LXPWR receiver configuration is set for single AGL
in chain for now. The chain length should
to be auto-detected.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoImplemented initial version of LXPWR receiver FSM based on transmitter.
Pavel Pisa [Sun, 15 Jun 2014 21:24:10 +0000 (23:24 +0200)]
Implemented initial version of LXPWR receiver FSM based on transmitter.

The basic implementation does not check CRC for now.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoProvide direct pass-trough drive of i_rd_s from filtered rd_f_s.
Pavel Pisa [Sun, 15 Jun 2014 10:07:24 +0000 (12:07 +0200)]
Provide direct pass-trough drive of i_rd_s from filtered rd_f_s.

This violates standard next_.._s -> register pattern
but only registered signals are used for i_rd_s
generation and shift one cycle forward allows
to use shorter read access cycle.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoAssign next_last_address_s signal value in all cases to prevent generation of latches.
Pavel Pisa [Sun, 15 Jun 2014 09:25:26 +0000 (11:25 +0200)]
Assign next_last_address_s signal value in all cases to prevent generation of latches.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: reset max ISR spent time after its read.
Pavel Pisa [Sun, 15 Jun 2014 08:57:37 +0000 (10:57 +0200)]
RoCoN: reset max ISR spent time after its read.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: ensure that all EIM parameters for FPGA are setup.
Pavel Pisa [Sun, 15 Jun 2014 08:56:35 +0000 (10:56 +0200)]
RoCoN: ensure that all EIM parameters for FPGA are setup.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRedesign external bus access timing and logic.
Pavel Pisa [Sun, 15 Jun 2014 08:54:36 +0000 (10:54 +0200)]
Redesign external bus access timing and logic.

There has been fundamental flaws in write cycles activation
and timing which leads to write of unstable data to
unstable address when write has been activated
on partially valid BLS on start of LPC write cycle.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Change hard-coded IRC status bit positions to named bit masks.
Pavel Pisa [Tue, 10 Jun 2014 09:04:41 +0000 (11:04 +0200)]
RoCoN: Change hard-coded IRC status bit positions to named bit masks.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Ensure USB buffers alignment.
Pavel Pisa [Mon, 9 Jun 2014 22:04:57 +0000 (00:04 +0200)]
RoCoN: Ensure USB buffers alignment.

It is not required on Cortex-M3/4 but can speedup
operations.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Implement USB memory transfers for 32-bit wide memory read/write.
Pavel Pisa [Mon, 9 Jun 2014 21:49:49 +0000 (23:49 +0200)]
RoCoN: Implement USB memory transfers for 32-bit wide memory read/write.

The 32-bit access target is is elected by "-t 4" parameter
of "usb_sendhex".

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdate PXMC for 8 DC axes
Martin Meloun [Mon, 9 Jun 2014 16:59:39 +0000 (18:59 +0200)]
Update PXMC for 8 DC axes

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoUpdate FPGA, fix hazard conditions in BRAM
Martin Meloun [Mon, 9 Jun 2014 16:58:14 +0000 (18:58 +0200)]
Update FPGA, fix hazard conditions in BRAM

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoRoCoN: update code to build for simulated mode under Linux.
Pavel Pisa [Sat, 7 Jun 2014 11:46:31 +0000 (13:46 +0200)]
RoCoN: update code to build for simulated mode under Linux.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: reverse order for PWM channels assignment.
Pavel Pisa [Tue, 3 Jun 2014 12:19:24 +0000 (14:19 +0200)]
RoCoN: reverse order for PWM channels assignment.

The connectors are soldered on upper side of LX_PWR
board in our actual assembly which leads to reverse
order to our standard used on other boards (i.e. LMC_CB2).

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: add command to read and reset maximal time spent in PXMC isr.
Pavel Pisa [Tue, 3 Jun 2014 08:42:41 +0000 (10:42 +0200)]
RoCoN: add command to read and reset maximal time spent in PXMC isr.

The time is measured in CPU clocks which are 72 MHz for LX_CPU1.
This provides 72000 ticks per PXMC isr period. Maximum captured
time for single axis was 4153, typical even with coordinated
movement coordination 3300.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoMerge branch 'master' of rtime.felk.cvut.cz:/fpga/lx-cpu1/lx-rocon
Pavel Pisa [Mon, 2 Jun 2014 16:11:11 +0000 (18:11 +0200)]
Merge branch 'master' of rtime.felk.cvut.cz:/fpga/lx-cpu1/lx-rocon

9 years agoRoCoN: add omitted registration of global PURGE command.
Pavel Pisa [Mon, 2 Jun 2014 16:10:56 +0000 (18:10 +0200)]
RoCoN: add omitted registration of global PURGE command.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdate pxmc settings
Martin Meloun [Mon, 2 Jun 2014 15:03:37 +0000 (17:03 +0200)]
Update pxmc settings

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoUpdate dff2, create dff3, fix LX Master for multiple slaves
Martin Meloun [Mon, 2 Jun 2014 13:05:52 +0000 (15:05 +0200)]
Update dff2, create dff3, fix LX Master for multiple slaves

9 years agoRoCoN: ensure that no old stalled index edge is used after axis mode change.
Pavel Pisa [Sun, 1 Jun 2014 21:10:36 +0000 (23:10 +0200)]
RoCoN: ensure that no old stalled index edge is used after axis mode change.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include basic support for asynchronous ready notification.
Pavel Pisa [Sun, 1 Jun 2014 20:37:45 +0000 (22:37 +0200)]
RoCoN: include basic support for asynchronous ready notification.

Commands R: and Rm: are compatible with same MARS8 functionality.

Functions has been successfully tested with UART based
communication but actual code for USB channel blocks
on asynchronous IO.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: enhance stepper and BLDC motor support to allow build for calibration.
Pavel Pisa [Sun, 1 Jun 2014 12:19:41 +0000 (14:19 +0200)]
RoCoN: enhance stepper and BLDC motor support to allow build for calibration.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: Add command to select motor driver type/axis mode at runtime.
Pavel Pisa [Sun, 1 Jun 2014 10:31:21 +0000 (12:31 +0200)]
RoCoN: Add command to select motor driver type/axis mode at runtime.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoUpdate pxmc submodule to use LPC17xx optimized square root approximation.
Pavel Pisa [Sun, 1 Jun 2014 06:40:29 +0000 (08:40 +0200)]
Update pxmc submodule to use LPC17xx optimized square root approximation.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoInclude sqrtll approximation for more than 48 valid bits.
Pavel Pisa [Sat, 31 May 2014 22:31:40 +0000 (00:31 +0200)]
Include sqrtll approximation for more than 48 valid bits.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include basic set of global PXMC commands.
Pavel Pisa [Sat, 31 May 2014 15:40:41 +0000 (17:40 +0200)]
RoCoN: include basic set of global PXMC commands.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: fix mixed use of calibrated and raw IRC for phases commutator.
Pavel Pisa [Sat, 31 May 2014 13:44:54 +0000 (15:44 +0200)]
RoCoN: fix mixed use of calibrated and raw IRC for phases commutator.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include optional support for BLDC/PMSM modified to run without HAL.
Pavel Pisa [Sat, 31 May 2014 13:05:44 +0000 (15:05 +0200)]
RoCoN: include optional support for BLDC/PMSM modified to run without HAL.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: keep optional support for older version of LX_MASTER.
Pavel Pisa [Sat, 31 May 2014 12:54:03 +0000 (14:54 +0200)]
RoCoN: keep optional support for older version of LX_MASTER.

This allows to test software against older version
because actual version does not work on my board.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include skeleton of stepper motor control based on PiKRON's VLP1 project.
Pavel Pisa [Sat, 31 May 2014 09:45:41 +0000 (11:45 +0200)]
RoCoN: include skeleton of stepper motor control based on PiKRON's VLP1 project.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: include command for phase alignment to index processing.
Pavel Pisa [Sat, 31 May 2014 09:43:57 +0000 (11:43 +0200)]
RoCoN: include command for phase alignment to index processing.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: new file for application specific commands and sqrtll tests added.
Pavel Pisa [Sat, 31 May 2014 08:37:32 +0000 (10:37 +0200)]
RoCoN: new file for application specific commands and sqrtll tests added.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoRoCoN: correct dprint periodic debug status printing.
Pavel Pisa [Fri, 30 May 2014 20:43:07 +0000 (22:43 +0200)]
RoCoN: correct dprint periodic debug status printing.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
9 years agoLX Master watchdog implemented
Martin Meloun [Fri, 30 May 2014 15:50:26 +0000 (17:50 +0200)]
LX Master watchdog implemented

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoFix typo in IRC5 register address base
Martin Meloun [Fri, 30 May 2014 14:08:39 +0000 (16:08 +0200)]
Fix typo in IRC5 register address base

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoAdd a bit to IRC register storing current index wire state
Martin Meloun [Fri, 30 May 2014 14:08:17 +0000 (16:08 +0200)]
Add a bit to IRC register storing current index wire state

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoFix LX Master transmission, update PXMC for new structure
Martin Meloun [Fri, 30 May 2014 12:39:56 +0000 (14:39 +0200)]
Fix LX Master transmission, update PXMC for new structure

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoRemove unintentionally pushed debug messages
Martin Meloun [Fri, 30 May 2014 12:39:28 +0000 (14:39 +0200)]
Remove unintentionally pushed debug messages

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoUpdate LX Master transmitter structure layout
Martin Meloun [Fri, 30 May 2014 11:42:54 +0000 (13:42 +0200)]
Update LX Master transmitter structure layout

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>
9 years agoUpdate LX PWR communication
Martin Meloun [Thu, 29 May 2014 15:59:25 +0000 (17:59 +0200)]
Update LX PWR communication

Signed-off-by: Martin Meloun <meloumar@cmp.felk.cvut.cz>