- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. I'm using Modelsim to calculate numbers. Please help me why my code is wrong. I'm thinking I wrong in assign " c=a+b; "
--- Quote Start --- module add_fixed; parameter a=1.0525; parameter b=2.012; c=a+b; initial begin $display("Sum is: %f",c); end endmodule --- Quote End ---Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
no one can answer me ? I need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
module add_fixed;
parameter a=1.0525; parameter b=2.012; initial begin c=a+b; $display("Sum is: %f",c); end endmodule
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page