Download chips/yosys/tests/techmap/clockgate.v from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/clockgate.v
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/techmap/clockgate.v
-
curl -L -o clockgate.v https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/techmap/clockgate.v
698 Bytes
| module dffe_00( input clk, en, | |
| input d1, output reg q1, | |
| ); | |
| always @( negedge clk ) begin | |
| if ( ~en ) | |
| q1 <= d1; | |
| end | |
| endmodule | |
| module dffe_01( input clk, en, | |
| input d1, output reg q1, | |
| ); | |
| always @( negedge clk ) begin | |
| if ( en ) | |
| q1 <= d1; | |
| end | |
| endmodule | |
| module dffe_10( input clk, en, | |
| input d1, output reg q1, | |
| ); | |
| always @( posedge clk ) begin | |
| if ( ~en ) | |
| q1 <= d1; | |
| end | |
| endmodule | |
| module dffe_11( input clk, en, | |
| input d1, output reg q1, | |
| ); | |
| always @( posedge clk ) begin | |
| if ( en ) | |
| q1 <= d1; | |
| end | |
| endmodule | |
| module dffe_wide_11( input clk, en, | |
| input [3:0] d1, output reg [3:0] q1, | |
| ); | |
| always @( posedge clk ) begin | |
| if ( en ) | |
| q1 <= d1; | |
| end | |
| endmodule | |