Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Does cadence(5141 in my case) support vectors in verilogA?

Status
Not open for further replies.

alard

Member level 4
Joined
Dec 2, 2004
Messages
70
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
551
veriloga genvar not supported

Hello,

I wrote a short code to simply handle my input signal. It can pass the compilation but the output waveform is really strange. If I don't use vector but list all the ports one by one, it works which means the code itself functions well.

In addition, I also tried to use "for" to gernerate the outputs but seems unable to pass the compiler.

Could someone take a look at the code below?
-----------------------------------------------------------
`include "constants.h"
`include "discipline.h"

module RZ_Generator(vin, vout, clk, offset);
input clk, offset;
voltage clk, offset;
input [11:0] vin;

output [11:0] vout;
voltage [11:0] vin, vout;

integer i;

analog begin
//for(i=0; i<=11; i=i+1) begin
//V(vout) <+ V(vin)*V(clk)+V(offset);
//end

generate i (11, 0) begin
V(vout) <+ V(vin)*V(clk)+V(offset);
end

end

endmodule
-------------------------------------------------------------

Best Regards,
 

Re: Does cadence(5141 in my case) support vectors in verilog

If you want to use for, you should declare i as:
genvar i;
 

Hello Juven,

Thank you for you reply. As far as I know, 'genvar' is not supported in cadence(5141).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top