Skip to content

Commit

Permalink
kasli: fix SDRAM read delay reset/wrap issue. Closes #1149
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Nov 15, 2018
1 parent 494ffca commit d3483c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions artiq/firmware/libboard_misoc/sdram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ mod ddr {
ddrphy::dly_sel_write(1 << (DQS_SIGNAL_COUNT - n - 1));

ddrphy::rdly_dq_rst_write(1);
#[cfg(soc_platform = "kasli")]
{
for _ in 0..3 {
ddrphy::rdly_dq_bitslip_write(1);
}
}

for _ in 0..DDRPHY_MAX_DELAY {
let mut working = true;
Expand Down Expand Up @@ -327,6 +333,12 @@ mod ddr {
let mut max_seen_valid = 0;

ddrphy::rdly_dq_rst_write(1);
#[cfg(soc_platform = "kasli")]
{
for _ in 0..3 {
ddrphy::rdly_dq_bitslip_write(1);
}
}

for delay in 0..DDRPHY_MAX_DELAY {
let mut valid = true;
Expand Down Expand Up @@ -384,6 +396,12 @@ mod ddr {

// Set delay to the middle
ddrphy::rdly_dq_rst_write(1);
#[cfg(soc_platform = "kasli")]
{
for _ in 0..3 {
ddrphy::rdly_dq_bitslip_write(1);
}
}
for _ in 0..mean_delay {
ddrphy::rdly_dq_inc_write(1);
}
Expand Down
2 changes: 1 addition & 1 deletion conda/artiq-dev/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ requirements:
- python >=3.5.3,<3.6
- setuptools 33.1.1
- migen 0.8 py35_0+git2d62c0c
- misoc 0.11 py35_31+git5ce139dd
- misoc 0.11 py35_33+git128750aa
- jesd204b 0.10
- microscope
- binutils-or1k-linux >=2.27
Expand Down

0 comments on commit d3483c1

Please sign in to comment.