Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes-warface.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-30 18:45:43 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-10-30 18:45:43 +0300
commit73124b1ea4e605207bfb9be6710930f7d0553a3a (patch)
treef8b324b8391ae462e32ffa8c6d2dadb31064cb4f
parent3b1ace7cc10d830d9644afe800a371a1cce2cb78 (diff)
Non blocking assigment
-rw-r--r--Mapper/WarfaceMapper.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mapper/WarfaceMapper.v b/Mapper/WarfaceMapper.v
index 94229b2..03e6dbb 100644
--- a/Mapper/WarfaceMapper.v
+++ b/Mapper/WarfaceMapper.v
@@ -108,7 +108,7 @@ begin
begin
scanline = 0;
new_screen_clear = 1;
- chr_latch = 0;
+ chr_latch <= 0;
end else
if (ppu_addr_in[13:12] == 2'b10)
begin
@@ -116,9 +116,9 @@ begin
begin
ppu_nt_read_count = ppu_nt_read_count + 1'b1;
end else begin
- if (scanline == 64) chr_latch = 1;
- if (scanline == 128) chr_latch = 2;
- if (scanline == 192) chr_latch = 3;
+ if (scanline == 64) chr_latch <= 1;
+ if (scanline == 128) chr_latch <= 2;
+ if (scanline == 192) chr_latch <= 3;
scanline = scanline + 1'b1;
end
end else begin