title: Assign reg which has initial value
body: <p>I'm implementing a tetris game using basys 3 on 8x8 led matrix.</p>
  
  <pre><code>reg [7:0]redBlock;
  reg [7:0]backupRed= 8'b00011000;
  reg [7:0]temp;
  
  assign redBlock=(toRight&amp; oe) ? backupRed&gt;&gt; 1 : backupRed;
  </code></pre>
  
  <p>This code is working the redblock on led matrix goes right when I push button toRight but of couse it goes back to it's initial position since the condition 0 is equal to backupRed</p>
  
  <p>What I really want is</p>
  
  <pre><code>reg [7:0]redBlock = 8'b00011000;;
  reg [7:0]backupRed;
  reg [7:0]temp;
  
  assign redBlock=(toRight&amp; oe) ? redBlock&gt;&gt; 1 : redBlock;
  </code></pre>
  
  <p>which should update the previous location of redBlock but it gives error </p>
  
  <blockquote>
    <p>Variable redBlcok is written by both continuous and procedural assigments</p>
  </blockquote>
  
  <p>I'm using Vivado for implemantion</p>
  
  <p>Here is 10sec video of what I meant</p>
  
  <p><a href="http://sendvid.com/ei5bfqc3" rel="nofollow noreferrer">http://sendvid.com/ei5bfqc3</a></p>