-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
60 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from artiq.language.core import * | ||
from artiq.language.types import * | ||
|
||
|
||
@syscall | ||
def rt2wb_write(time_mu: TInt64, channel: TInt32, addr: TInt32, data: TInt32 | ||
) -> TNone: | ||
raise NotImplementedError("syscall not simulated") | ||
|
||
|
||
@syscall | ||
def rt2wb_read_sync(time_mu: TInt64, channel: TInt32, addr: TInt32, | ||
duration_mu: TInt32) -> TInt32: | ||
raise NotImplementedError("syscall not simulated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef __RT2WB_H | ||
#define __RT2WB_H | ||
|
||
void rt2wb_write(long long int timestamp, int channel, int address, | ||
unsigned int data); | ||
unsigned int rt2wb_read_sync(long long int timestamp, int channel, int address, | ||
int duration); | ||
|
||
#endif /* __RT2WB_H */ | ||
|
This file was deleted.
Oops, something went wrong.
df7d15d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wishbone is a gateware implementation detail. I would make it transparent to the Python layers.
df7d15d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RT2WB is not transparent because of how it handles reads. They can be pipelined or handled asynchronously.
df7d15d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you going to rewrite the DDS code as well so it uses this, then?
df7d15d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes