aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1318/ram1.v
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue1318/ram1.v')
-rw-r--r--testsuite/synth/issue1318/ram1.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/synth/issue1318/ram1.v b/testsuite/synth/issue1318/ram1.v
new file mode 100644
index 000000000..a5939c0e2
--- /dev/null
+++ b/testsuite/synth/issue1318/ram1.v
@@ -0,0 +1,10 @@
+(* RAM_STYLE="BLOCK" *)
+reg [7:0] lineMem [0:31];
+
+reg [15:0] column_data = 0;
+reg [ADDR_BITS - 1:0] line_mem_read_address = 0;
+
+always @(posedge clk) begin
+ column_data[7:0] <= lineMem[line_mem_read_address];
+ column_data[15:8] <= data_in;
+end