Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/artiq
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e87436fc03ea
Choose a base ref
...
head repository: m-labs/artiq
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 007a7170e119
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Dec 21, 2015

  1. Copy the full SHA
    8691f69 View commit details
  2. Copy the full SHA
    007a717 View commit details
Showing with 11 additions and 4 deletions.
  1. +3 −2 artiq/coredevice/analyzer.py
  2. +1 −1 artiq/gateware/rtio/analyzer.py
  3. +7 −1 artiq/runtime/analyzer.c
5 changes: 3 additions & 2 deletions artiq/coredevice/analyzer.py
Original file line number Diff line number Diff line change
@@ -58,8 +58,9 @@ def decode_message(data):


def decode_dump(data):
parts = struct.unpack(">IQI", data[:16])
sent_bytes, total_byte_count, overflow_occured = parts
parts = struct.unpack(">IQbbbb", data[:16])
(sent_bytes, total_byte_count,
overflow_occured, log_channel, dds_channel, _) = parts

if sent_bytes + 16 != len(data):
raise ValueError("analyzer dump has incorrect length")
2 changes: 1 addition & 1 deletion artiq/gateware/rtio/analyzer.py
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ def __init__(self, rtio_core):
getattr(ExceptionType, ename).value)
)
for rname in "reset", "reset_phy":
r_d = Signal()
r_d = Signal(reset=1)
r = getattr(kcsrs, rname).storage
self.sync += r_d.eq(r)
self.comb += [
8 changes: 7 additions & 1 deletion artiq/runtime/analyzer.c
Original file line number Diff line number Diff line change
@@ -10,7 +10,10 @@
struct analyzer_header {
unsigned int sent_bytes;
unsigned long long int total_byte_count;
unsigned int overflow_occured;
unsigned char overflow_occured;
unsigned char log_channel;
unsigned char dds_channel;
unsigned char padding;
} __attribute__((packed));


@@ -68,6 +71,9 @@ void analyzer_start(void)
analyzer_header.sent_bytes = analyzer_header.total_byte_count;

analyzer_header.overflow_occured = rtio_analyzer_message_encoder_overflow_read();
analyzer_header.log_channel = 0;
analyzer_header.dds_channel = CONFIG_RTIO_DDS_CHANNEL;
analyzer_header.padding = 0;

offset_consumed = 0;
offset_sent = 0;