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: 4d22db1affdc
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: fc558bcd2746
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 19, 2016

  1. Copy the full SHA
    900b0cc View commit details
  2. Copy the full SHA
    fc558bc View commit details
Showing with 5 additions and 4 deletions.
  1. +2 −2 artiq/gateware/rtio/analyzer.py
  2. +2 −1 artiq/runtime/analyzer.c
  3. +1 −1 artiq/runtime/analyzer.h
4 changes: 2 additions & 2 deletions artiq/gateware/rtio/analyzer.py
Original file line number Diff line number Diff line change
@@ -165,7 +165,7 @@ def __init__(self, membus):
alignment_bits=data_alignment)
self.last_address = CSRStorage(aw + data_alignment,
alignment_bits=data_alignment)
self.byte_count = CSRStatus(32) # only read when shut down
self.byte_count = CSRStatus(64) # only read when shut down

self.sink = stream.Endpoint(
[("data", dw),
@@ -199,7 +199,7 @@ def __init__(self, membus):
)
]

message_count = Signal(32 - log2_int(message_len//8))
message_count = Signal(64 - log2_int(message_len//8))
self.comb += self.byte_count.status.eq(
message_count << log2_int(message_len//8))
self.sync += [
3 changes: 2 additions & 1 deletion artiq/runtime/analyzer.c
Original file line number Diff line number Diff line change
@@ -93,8 +93,9 @@ int analyzer_input(void *data, int length)
return -1;
}

void analyzer_poll(void **data, int *length)
void analyzer_poll(void **data, int *length, int *close_flag)
{
*close_flag = 0;
switch(send_state) {
case SEND_STATE_HEADER:
*length = sizeof(struct analyzer_header) - offset_consumed;
2 changes: 1 addition & 1 deletion artiq/runtime/analyzer.h
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ void analyzer_start(void);
void analyzer_end(void);

int analyzer_input(void *data, int length);
void analyzer_poll(void **data, int *length);
void analyzer_poll(void **data, int *length, int *close_flag);
void analyzer_ack_consumed(int length);
void analyzer_ack_sent(int length);