Plz help me by some kind advice!!
I want to make
LPF w/t variable cut off freq.
The select signal is comming from logical.i want to make smart code like bellow case like verilog-HDL.
//---- from code
logic [1:0] FREQSEL;
electrical in,out;
analog
begin
if(FREQSEL == 2'b00)
begin
V(out) <+ laplace_nd( V(in), { num0 }, {den0, den1_750k} );
end
else if(FREQSEL == 2'b01)
begin
V(out) <+ laplace_nd( V(in), { num0 }, {den0, den1_1_5M} );
end
else //if(FREQSEL == 2'b10 or 11 or x)
begin
V(out) <+ laplace_nd( V(in), { num0 }, {den0, den1_3_0M} );
end
end
//---- end code
I'd already know the laplace fanction can't set variable freq.
so,the compiler output Error log.
But, i want to make code simply like this for
Digital designer like me
Plz give some advice!!
See you soon
ciao