aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@trantor.hos.anvin.org>2008-12-29 22:04:34 -0800
committerH. Peter Anvin <hpa@trantor.hos.anvin.org>2008-12-29 22:04:34 -0800
commit1ff0514691cac201f918c72562d9cd7f9154997e (patch)
tree58702d13c783bf689a8561bc1bee5f56c106f625
parent943c11c1a104fd3cb9bb301725e3a2931d867f1a (diff)
downloadabc80-1ff0514691cac201f918c72562d9cd7f9154997e.tar.gz
abc80-1ff0514691cac201f918c72562d9cd7f9154997e.tar.xz
abc80-1ff0514691cac201f918c72562d9cd7f9154997e.zip
abc80.v: restructure the video_width conditional to synthesizeabc80-de1-9
Restructure the video_width conditional, so the synthesizer can recognize it as the usual kind of flipflop with reset and nothing unusual.
-rw-r--r--abc80.v14
1 files changed, 8 insertions, 6 deletions
diff --git a/abc80.v b/abc80.v
index c4c1048..3f3ed06 100644
--- a/abc80.v
+++ b/abc80.v
@@ -670,12 +670,14 @@ module abc80 (
if ( ~rst_n )
video_width <= ~sw[9]; // Set SW9 to go to 40 column after reset
else
- if ( ~abc_in_n[3] )
- video_width <= 1'b0;
- else if ( ~abc_in_n[4] )
- video_width <= 1'b1;
- else if ( key1_strobe & key1_debounced )
- video_width <= ~video_width;
+ begin
+ if ( ~abc_in_n[3] )
+ video_width <= 1'b0;
+ else if ( ~abc_in_n[4] )
+ video_width <= 1'b1;
+ else if ( key1_strobe & key1_debounced )
+ video_width <= ~video_width;
+ end
end
// Sound generator