Download chips/yosys/tests/opt/opt_dff_eqbits.ys from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/opt_dff_eqbits.ys
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/opt/opt_dff_eqbits.ys
-
curl -L -o opt_dff_eqbits.ys https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/opt/opt_dff_eqbits.ys
1.71 kB
| # small test case | |
| design -reset | |
| read_verilog -sv opt_dff_eqbits_small.sv | |
| hierarchy -top test_case | |
| techmap | |
| opt_dff -sat | |
| synth | |
| opt_dff -sat | |
| opt_clean -purge | |
| select -assert-count 2 t:$_SDFF_PN0_ | |
| # equivalence | |
| design -reset | |
| read_verilog -sv opt_dff_eqbits_small.sv | |
| hierarchy -top test_case | |
| prep | |
| design -save gold | |
| opt_dff -sat | |
| design -save gate | |
| design -copy-from gold -as gold test_case | |
| design -copy-from gate -as gate test_case | |
| equiv_make gold gate equiv | |
| equiv_induct equiv | |
| equiv_status -assert | |
| # large test case | |
| design -reset | |
| read_verilog -sv opt_dff_eqbits_large.sv | |
| hierarchy -top test_case | |
| techmap | |
| opt_dff -sat | |
| synth | |
| opt_dff -sat | |
| opt_clean -purge | |
| select -assert-count 6 t:$_SDFFE_PN0P_ | |
| # equivalence | |
| design -reset | |
| read_verilog -sv opt_dff_eqbits_large.sv | |
| hierarchy -top test_case | |
| prep | |
| design -save gold | |
| opt_dff -sat | |
| design -save gate | |
| design -copy-from gold -as gold test_case | |
| design -copy-from gate -as gate test_case | |
| equiv_make gold gate equiv | |
| equiv_induct equiv | |
| equiv_status -assert | |
| # verify keepdc exclusivity | |
| design -reset | |
| read_verilog -sv <<EOT | |
| module test_case(input clk, input d, output reg a, output reg b); | |
| initial a = 1'b0; | |
| initial b = 1'b0; | |
| always @(posedge clk) a <= d; | |
| always @(posedge clk) b <= d | 1'bx; | |
| endmodule | |
| EOT | |
| hierarchy -top test_case | |
| proc | |
| techmap | |
| opt_dff -sat | |
| opt_clean -purge | |
| select -assert-count 1 t:$_DFF_P_ | |
| design -reset | |
| read_verilog -sv <<EOT | |
| module test_case(input clk, input d, output reg a, output reg b); | |
| initial a = 1'b0; | |
| initial b = 1'b0; | |
| always @(posedge clk) a <= d; | |
| always @(posedge clk) b <= d | 1'bx; | |
| endmodule | |
| EOT | |
| hierarchy -top test_case | |
| proc | |
| techmap | |
| logger -expect error "The -sat and -keepdc options are mutually exclusive." 1 | |
| opt_dff -sat -keepdc | |