Well, I don't think you should have the semi-colon after the include statement. Here's what I just tried:
Code:`include "discipline.h"
`include "constants.h"
module myres (a,b);
inout a,b;
electrical a,b;
branch (a,b) resbr,noisebr;
parameter real r=1000,typ=0;
analog begin
case (typ)
0: `include "noise1.txt"
1: `include "noise2.txt"
endcase
V(resbr) <+ r*I(resbr);
end
endmodule
And the noise1.txt file contained:
Code:I(noisebr) <+ noise_table({
1e+4, 1.3e-5,
1.26e+4, 7.0e-6,
1.6e+4, 3.6e-6
});
for testing, I just made noise2.txt the same.
This compiled with no errors.
Andrew.