
for pf in test_simulation_{always,and,buffer,decoder,inc,mux,nand,nor,or,seq,shifter,sop,techmap,xnor,xor}; do gawk 'FNR == 1 { printf("\n// %s\n",FILENAME); } { gsub("^module *", sprintf("module f%d_",ARGIND)); print; }' \ ${pf}_*_test.v > $pf.v; ../tools/autotest.sh $pf.v; mv -v ${pf}_*_test.v Attic/; done; ..etc..
12 lines
277 B
Verilog
12 lines
277 B
Verilog
|
|
// test_simulation_seq_ff_1_test.v
|
|
module f1_test(input in, input clk, output reg out);
|
|
always @(posedge clk)
|
|
out <= in;
|
|
endmodule
|
|
|
|
// test_simulation_seq_ff_2_test.v
|
|
module f2_test(input in, input clk, output reg out);
|
|
always @(negedge clk)
|
|
out <= in;
|
|
endmodule
|