Skip to content

Commit

Permalink
Merge pull request #152 from HidetaroTanaka/main
Browse files Browse the repository at this point in the history
Add SystemVerilog implementation
  • Loading branch information
mawerty authored Jan 12, 2024
2 parents 38223d9 + e41317e commit d8884a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- SQL
- Squirrel
- Swift
- SystemVerilog
- Tcl
- Toit
- TrumpScript
Expand Down
11 changes: 11 additions & 0 deletions implementations/main.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Main #(
// specify input bit width
parameter N = 32
)(
input logic [N-1:0] x,
output logic is_prime
);
always_comb begin
is_prime = 1'b0;
end
endmodule
1 change: 1 addition & 0 deletions optimized_implementations/main.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module Main#(parameter N=32)(input logic[N-1:0]x,output logic is_prime);assign is_prime=1'b0;endmodule

0 comments on commit d8884a0

Please sign in to comment.