![]() In fact I could not logically find anything wrong with the code. Maybe the problem is elsewhere in your netlist? (not sure how though) - perhaps bits is defined to be something non-constant? Yes, I know this won't work because there's no stimulus, nor is there a ground node defined - I just wanted to see if it would compile and elaborate OK. I just took the code you pasted, and created two other files: Which version of INCISIVE are you using (what does "irun -version" report)? (although I'd be a bit surprised if this is broken even in fairly old versions, unless it's really really old). Post by Andrew Beckett on Jan 3 rd, 2017, 5:57am In case I change the variable 'i' to an integer, I get an error :Ī non-parameter identifier used when constant expression is expected ! Ncelab: *F,SSIGF: Analog elaboration failed!. The genvar expression must consist of an integer constant or other unrolled genvar variable expression only.Įncountered a problem in instance `tb_vams_dac.I95' of module `veri_dac'. Encountered an invalid for-loop control statement. Parameter integer dir = 1 from exclude 0 Parameter real fullscale = 1.0 // output range is from 0 - 1V Parameter integer bits = 8 from //Default 8 bit Verilog-AMS HDL for "tirunels_design", "veri_dac" "verilogams" We are willing to help if you give us something to work with. If you would like help, you should include the code that is not working and the error messages. Post by Ken Kundert on Jan 3 rd, 2017, 12:34am Title: Re: Code from Designer's Guide book throwing error Does anyone know why this is happening and suggest a solution? :-[ But this prevents me from creating any N-bit dac. I have unrolled the loop manually for an 8bit dac and resolved it without using for loop. These are some of the issues, I was finding when I used the DAC vams code from 3rd Chapter Listing 27, Designer's Guide to Verilog AMS.ġ) genvar issue for the for loop as exactly mentioned in Ģ)Changing genvar to integer gave this ncelab error : "A non-parameter identifier used when constant expression is expected !" Title: Code from Designer's Guide book throwing error Message started by subtr on Jan 2 nd, 2017, 11:15pm The Designer's Guide Community Forum - Print Page The Designer's Guide Community Forumĭesign Languages > Verilog-AMS > Code from Designer's Guide book throwing error ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |