diff options
author | H. Peter Anvin <hpa@trantor.hos.anvin.org> | 2008-12-29 22:04:34 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@trantor.hos.anvin.org> | 2008-12-29 22:04:34 -0800 |
commit | 1ff0514691cac201f918c72562d9cd7f9154997e (patch) | |
tree | 58702d13c783bf689a8561bc1bee5f56c106f625 | |
parent | 943c11c1a104fd3cb9bb301725e3a2931d867f1a (diff) | |
download | abc80-de1-9.tar.gz abc80-de1-9.tar.xz abc80-de1-9.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.v | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |