DRTIO port - satman firmware #136

Merged
sb10q merged 6 commits from mwojcik/artiq-zynq:drtio_satman into master 2021-10-08 16:04:50 +08:00

This is a part of few pull requests for DRTIO functionality. They have been broken up to allow easier code review overall. They're identical in contents to drtio_port branch.

This PR includes satman firmware ported from mainline ARTIQ, stripped down because most of the peripherals are currently not available on Zynq.

Any feedback and suggestions are welcome.

This is a part of few pull requests for DRTIO functionality. They have been broken up to allow easier code review overall. They're identical in contents to drtio_port branch. This PR includes satman firmware ported from mainline ARTIQ, stripped down because most of the peripherals are currently not available on Zynq. Any feedback and suggestions are welcome.
mwojcik added 1 commit 2021-10-05 16:14:16 +08:00
sb10q reviewed 2021-10-07 08:22:45 +08:00
@ -0,0 +34,4 @@
pub const RAW_DDMTD_N: i32 = 1 << RAW_DDMTD_N_SHIFT;
pub const DDMTD_DITHER_BITS: i32 = 1;
pub const DDMTD_N_SHIFT: i32 = RAW_DDMTD_N_SHIFT + DDMTD_DITHER_BITS;
pub const DDMTD_N: i32 = 1 << DDMTD_N_SHIFT;

Remove this entire file, we don't support Sayma stuff on Zynq.

Remove this entire file, we don't support Sayma stuff on Zynq.
sb10q reviewed 2021-10-07 08:23:07 +08:00
@ -0,0 +83,4 @@
. += 0x100;
__irq_stack0_start = .;
} > SDRAM
}

Can this file be shared with runtime?

Can this file be shared with runtime?
Poster
Owner

Turns out it can, it's pulled from runtime now.

Turns out it can, it's pulled from runtime now.
sb10q reviewed 2021-10-07 08:23:14 +08:00
@ -0,0 +52,4 @@
. += 0x10000;
_fstack = . - 4;
} > main_ram
}

Can this file be shared with runtime?

Can this file be shared with runtime?
sb10q reviewed 2021-10-07 08:25:05 +08:00
@ -0,0 +311,4 @@
&drtioaux::Packet::SpiReadReply { succeeded: false, data: 0 })
}
drtioaux::Packet::JdacBasicRequest { destination: _destination, dacno: _dacno,

Remove

Remove

You can also remove Packet::Jdac* from drtioaux.

You can also remove ``Packet::Jdac*`` from ``drtioaux``.
Poster
Owner

Is Jdac stuff then unsupported on all platforms? I imagine that it could be forwarded to a mainline artiq-based satellite that does have ad9154. Or is mixing satellites not supported?

Is Jdac stuff then unsupported on all platforms? I imagine that it could be forwarded to a mainline artiq-based satellite that does have ad9154. Or is mixing satellites not supported?

Not supported.

Not supported.
mwojcik added 1 commit 2021-10-07 13:47:49 +08:00
mwojcik added 1 commit 2021-10-07 14:33:59 +08:00
mwojcik added 1 commit 2021-10-07 20:49:00 +08:00
sb10q reviewed 2021-10-07 20:50:15 +08:00
@ -0,0 +10,4 @@
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
File::create(out.join("link.x"))
.unwrap()
.write_all(include_bytes!("../runtime/link.x"))

These files do not belong specifically to the runtime. Put them in their own folder?

These files do not belong specifically to the runtime. Put them in their own folder?
Poster
Owner

libbuild_zynq seems a proper candidate with shared build code, maybe? Or a linker folder, with just the linker script inside?

``libbuild_zynq`` seems a proper candidate with shared build code, maybe? Or a ``linker`` folder, with just the linker script inside?

libbuild_zynq would be ok I think.

``libbuild_zynq`` would be ok I think.
mwojcik added 1 commit 2021-10-07 20:52:26 +08:00
mwojcik added 1 commit 2021-10-08 13:55:06 +08:00
sb10q merged commit 8d2bb09149 into master 2021-10-08 16:04:50 +08:00
sb10q referenced this issue from a commit 2021-10-08 16:04:50 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#136
There is no content yet.