mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 10:50:25 +00:00
Share common tests
This commit is contained in:
parent
ab98f2dccf
commit
5603595e5c
103 changed files with 179 additions and 1317 deletions
16
tests/arch/common/shifter.v
Normal file
16
tests/arch/common/shifter.v
Normal file
|
@ -0,0 +1,16 @@
|
|||
module top (
|
||||
out,
|
||||
clk,
|
||||
in
|
||||
);
|
||||
output [7:0] out;
|
||||
input signed clk, in;
|
||||
reg signed [7:0] out = 0;
|
||||
|
||||
always @(posedge clk)
|
||||
begin
|
||||
out <= out >> 1;
|
||||
out[7] <= in;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue