- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A reg variable "cmp" is defined and set a initial value like this :
reg [47:0] cmp; always @(posedge clk) begin if (reset) cmp <= 48'd1; end When simulating the source code in Modelsim, at the "reset" time, the value of "tmp" appeared to be "zzzzzzzZ1" in Hexadecimal Radix or "Z" in Decimal Radix. if the initial value was changed to be 48'd10, it appeared to be "zzzzzzzZa" in Hexadecimal Radix or "Z" in Decimal Radix. Other variables were all OK and had no such problem. Does anyone know why? Thanks a lot!!Link Copied
0 Replies

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