aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/kernel/rtlilTest.cc
blob: d9eeed555ad0362e0e5fe8eba9fc1fa3ccdaa265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <gtest/gtest.h>

#include "kernel/yosys.h"
#include "kernel/rtlil.h"

YOSYS_NAMESPACE_BEGIN

TEST(KernelRtlilTest, getReferenceValid)
{
	//TODO: Implement rtlil test
	EXPECT_EQ(33, 33);
}

YOSYS_NAMESPACE_END
pan> parameter Y_WIDTH = 1; input [A_WIDTH-1:0] A; input [B_WIDTH-1:0] B; output [Y_WIDTH-1:0] Y; generate if ((A_WIDTH == 32) && (B_WIDTH == 32)) begin wire [16:0] S1 = A[15:0] + B[15:0]; wire [15:0] S2 = A[31:16] + B[31:16] + S1[16]; assign Y = {S2[15:0], S1[15:0]}; end else wire _TECHMAP_FAIL_ = 1; endgenerate endmodule