P
P. Kumar
Guest
Hi,
I just started with Verilog-AMS, trying to combine digital and analog
behaviour. Since my own code didn't compile I Tried the sample code in
Chapter 11 of Verilog-AMS language reference, which is copied below also.
Even this code is giving me errors like always, posedge and reg are "future
reserved keywords".
Does, somebody know if they really future keywords are I am missing some
include file etc. I this is really not supported how can I include
normal(digital) verilog module inside Verilog-A.
regards
Parikshit
`include "constants.vams"
`include "disciplines.vams"
module sampler (in, clk, out);
inout in;
input clk;
output out;
electrical in; // "in" is a continuous net.
wire clk;
reg out;
always @(posedge clk) // Entering the discrete context.
out = V(in); // Access the continuous net.
endmodule
I just started with Verilog-AMS, trying to combine digital and analog
behaviour. Since my own code didn't compile I Tried the sample code in
Chapter 11 of Verilog-AMS language reference, which is copied below also.
Even this code is giving me errors like always, posedge and reg are "future
reserved keywords".
Does, somebody know if they really future keywords are I am missing some
include file etc. I this is really not supported how can I include
normal(digital) verilog module inside Verilog-A.
regards
Parikshit
`include "constants.vams"
`include "disciplines.vams"
module sampler (in, clk, out);
inout in;
input clk;
output out;
electrical in; // "in" is a continuous net.
wire clk;
reg out;
always @(posedge clk) // Entering the discrete context.
out = V(in); // Access the continuous net.
endmodule