diff options
author | SergeyDegtyar <sndegtyar@gmail.com> | 2019-08-20 15:52:25 +0300 |
---|---|---|
committer | SergeyDegtyar <sndegtyar@gmail.com> | 2019-08-20 15:52:25 +0300 |
commit | 71dd412ac55860cbf51d91d26088515978f70116 (patch) | |
tree | c13ac7fde357fd1a4c0ff485a3c66bcdc40bfdca /tests/ice40/memory.v | |
parent | 153ec0541c17ee8fad093c002a2724bc33dfe4b9 (diff) | |
download | yosys-71dd412ac55860cbf51d91d26088515978f70116.tar.gz yosys-71dd412ac55860cbf51d91d26088515978f70116.tar.bz2 yosys-71dd412ac55860cbf51d91d26088515978f70116.zip |
Fix tests; Remove simulation;
- Add -map and -assert options for equiv_opt;
!!! '-assert' option was commented for the next tests (unproven
$equiv cells was found):
- dffs;
- div_mod;
- latches;
- mul_pow;
- Add design -load;
- Remove simulations;
Diffstat (limited to 'tests/ice40/memory.v')
-rw-r--r-- | tests/ice40/memory.v | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ice40/memory.v b/tests/ice40/memory.v new file mode 100644 index 000000000..cb7753f7b --- /dev/null +++ b/tests/ice40/memory.v @@ -0,0 +1,21 @@ +module top +( + input [7:0] data_a, + input [6:1] addr_a, + input we_a, clk, + output reg [7:0] q_a +); + // Declare the RAM variable + reg [7:0] ram[63:0]; + + // Port A + always @ (posedge clk) + begin + if (we_a) + begin + ram[addr_a] <= data_a; + q_a <= data_a; + end + q_a <= ram[addr_a]; + end +endmodule |