mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-23 19:47:55 +00:00
Share common tests
This commit is contained in:
parent
ab98f2dccf
commit
5603595e5c
103 changed files with 179 additions and 1317 deletions
17
tests/arch/common/counter.v
Normal file
17
tests/arch/common/counter.v
Normal file
|
@ -0,0 +1,17 @@
|
|||
module top (
|
||||
out,
|
||||
clk,
|
||||
reset
|
||||
);
|
||||
output [7:0] out;
|
||||
input clk, reset;
|
||||
reg [7:0] out;
|
||||
|
||||
always @(posedge clk, posedge reset)
|
||||
if (reset) begin
|
||||
out <= 8'b0 ;
|
||||
end else
|
||||
out <= out + 1;
|
||||
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue