aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/examples/tests/lutram/lutram.v
diff options
context:
space:
mode:
Diffstat (limited to 'fpga_interchange/examples/tests/lutram/lutram.v')
-rw-r--r--fpga_interchange/examples/tests/lutram/lutram.v22
1 files changed, 22 insertions, 0 deletions
diff --git a/fpga_interchange/examples/tests/lutram/lutram.v b/fpga_interchange/examples/tests/lutram/lutram.v
new file mode 100644
index 00000000..be5728f8
--- /dev/null
+++ b/fpga_interchange/examples/tests/lutram/lutram.v
@@ -0,0 +1,22 @@
+module top (
+ input wire clk,
+
+ input wire rx,
+ output wire tx,
+
+ input wire [15:0] sw,
+ output wire [15:0] led
+);
+ RAM128X1D ram_i (
+ .WCLK(clk),
+ .A(sw[6:0]),
+ .DPRA(sw[13:7]),
+ .WE(sw[14]),
+ .D(sw[15]),
+ .SPO(led[0]),
+ .DPO(led[1]),
+ );
+
+ assign led[15:2] = 14'b0;
+ assign tx = rx;
+endmodule