Skip to content

Commit

Permalink
clean up hmc7043 reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Jun 5, 2018
1 parent 988054f commit af88c4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion artiq/firmware/libboard_artiq/hmc830_7043.rs
Expand Up @@ -229,7 +229,7 @@ pub mod hmc7043 {
info!("enabling hmc7043");

unsafe {
csr::crg::hmc7043_rst_write(0);
csr::hmc7043_reset::out_write(0);
}

spi_setup();
Expand Down
10 changes: 4 additions & 6 deletions artiq/gateware/targets/sayma_rtm.py
Expand Up @@ -19,11 +19,8 @@
from artiq import __version__ as artiq_version


class CRG(Module, AutoCSR):
class CRG(Module):
def __init__(self, platform):

self.hmc7043_rst = CSRStorage(reset=1)

self.clock_domains.cd_sys = ClockDomain()
self.clock_domains.cd_sys4x = ClockDomain(reset_less=True)
self.clock_domains.cd_clk200 = ClockDomain()
Expand Down Expand Up @@ -113,7 +110,6 @@ def __init__(self, platform):
csr_devices = []

self.submodules.crg = CRG(platform)
csr_devices.append("crg")

clk_freq = 125e6

Expand Down Expand Up @@ -179,7 +175,9 @@ def __init__(self, platform):
platform.request("ad9154_spi", 0),
platform.request("ad9154_spi", 1)))
csr_devices.append("converter_spi")
self.comb += platform.request("hmc7043_reset").eq(self.crg.hmc7043_rst.storage)
self.submodules.hmc7043_reset = gpio.GPIOOut(
platform.request("hmc7043_reset"), reset_out=1)
csr_devices.append("hmc7043_reset")

# AMC/RTM serwb
serwb_pads = platform.request("amc_rtm_serwb")
Expand Down
2 changes: 1 addition & 1 deletion conda/artiq-dev/meta.yaml
Expand Up @@ -15,7 +15,7 @@ requirements:
- python >=3.5.3,<3.6
- setuptools 33.1.1
- migen 0.7 py35_35+git9bc084a
- misoc 0.11 py35_15+git7f63aff5
- misoc 0.11 py35_18+gitfb92c5ee
- jesd204b 0.6
- microscope
- binutils-or1k-linux >=2.27
Expand Down

0 comments on commit af88c4c

Please sign in to comment.