summaryrefslogtreecommitdiffstats
path: root/translated_examples
diff options
context:
space:
mode:
authorRodrigo Alejandro Melo <rmelo@inti.gob.ar>2017-11-16 13:02:29 -0300
committerRodrigo Alejandro Melo <rmelo@inti.gob.ar>2017-11-16 13:02:29 -0300
commit3d45f0322dca3cb60b818cb28afc077b6e6d29b3 (patch)
tree6ec53c903a1dab87c0c59830a95aaa9d39a81967 /translated_examples
parent6252447712e65498ba7b37d03f4832ecb645db44 (diff)
downloadvhdl2vl-3d45f0322dca3cb60b818cb28afc077b6e6d29b3.tar.gz
vhdl2vl-3d45f0322dca3cb60b818cb28afc077b6e6d29b3.zip
Added (partial) support for to_integer function
Added an example that fail to todo.vhd.
Diffstat (limited to 'translated_examples')
-rw-r--r--translated_examples/mem.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/translated_examples/mem.v b/translated_examples/mem.v
index 18e36c4..8ab38cc 100644
--- a/translated_examples/mem.v
+++ b/translated_examples/mem.v
@@ -21,11 +21,11 @@ parameter [31:0] bus_width=14;
reg [bus_width - 1:0] mem[255:0];
reg [addr_width - 1:0] al = 8'h00;
- assign dout = mem[al];
+ assign dout = mem[(al)];
always @(posedge clk) begin
al <= addr;
if(en == 1'b1) begin
- mem[addr] <= din;
+ mem[(addr)] <= din;
end
end
OpenPOWER on IntegriCloud