analogrf
Junior Member
![* *](https://designers-guide.org/forum/Templates/Forum/default/starblue.gif)
Offline
Posts: 16
|
Hello all, Im making a 2x1 multiplexer. Could somebody guess the reason for these errors;
Error found by spectre during SpectreHDL compile. "in = (V(Vsel) > vtrans) ? V(Vin2): V(Vin1)<<--? ; Error: no discipline was specified for `Vin1'.
`include "constants.vams" `include "disciplines.vams"
module Mux2to1(Vin1, Vin2,Vsel,Vout); output Vout; electrical Vout; input Vin1, Vin2, Vsel; electrical Vin, Vin2, Vsel ;
parameter real vtrans = 0.5; parameter real vlow = 0; parameter real vhigh = 1 ; parameter real trise = 1p; parameter real tfall= 1p; parameter real tdel= 1p; integer out_val ; integer x, in; analog begin in = (V(Vsel) > vtrans) ? V(Vin2): V(Vin1); V(Vout) <+ transition (vhigh*in + vlow*!in , tdel, trise, tfall); end
endmodule
|