Skip to content

Commit

Permalink
fix: step5 in classroom
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Dec 3, 2024
1 parent ef77428 commit 0b7879d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions learn-silice/classroom/soc_wave_player/hardware/main.si
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@ $$end
ram.wdata = memio.wdata;
ram.addr = memio.addr;
// writes CPU => peripherals
$$if Solution_HWFBUFFER and Solution_STREAM then
if (peripheral_w & ~audio_access & ~framebuffer_access) {
$$else
$$if Solution_STREAM then
if (peripheral_w & ~audio_access) {
if (peripheral_w & ~audio_access
$$if Solution_HWFBUFFER then
& ~framebuffer_access
$$end
) {
$$else
if (peripheral_w) {
$$end
$$end
$$if Solution_LED then
/// LEDs
leds = leds_access ? prev_wdata[0,8] : leds;
Expand Down

0 comments on commit 0b7879d

Please sign in to comment.