#1 force a reg with $random

v2.8.2
closed
nobody
5
2008-05-27
2005-09-17
Mark Hummel
No

The following code causes a segmentation violation:

module x;
reg [31:0] a;
initial force a = $random;
endmodule

Discussion

  • Mark Hummel

    Mark Hummel - 2005-09-17
    • milestone: --> v2.8.2
     
  • Mark Hummel

    Mark Hummel - 2005-09-17
    • labels: --> segmentation violation
     
  • Mark Hummel

    Mark Hummel - 2005-09-17
    • summary: segmentation violation --> force a reg with $random
     
  • Mark Hummel

    Mark Hummel - 2008-05-27

    Logged In: YES
    user_id=1341514
    Originator: YES

    Force and procedural assignments were incorrectly reevaluating rhs of statement whenever an attempt was made to change the lhs. Fixed in v2.8.6.

     
  • Mark Hummel

    Mark Hummel - 2008-05-27
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks