diff options
Diffstat (limited to 'tests/memlib/memlib_clock_sdp.txt')
-rw-r--r-- | tests/memlib/memlib_clock_sdp.txt | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/memlib/memlib_clock_sdp.txt b/tests/memlib/memlib_clock_sdp.txt new file mode 100644 index 000000000..00e911ef8 --- /dev/null +++ b/tests/memlib/memlib_clock_sdp.txt @@ -0,0 +1,76 @@ +ram block \RAM_CLOCK_SDP { + cost 64; + abits 10; + widths 1 2 4 8 16 per_port; + init any; + port sw "W" { + ifdef SHARED_CLK { + ifdef WCLK_ANY { + option "WCLK" "ANY" { + clock anyedge "CLK"; + } + } + ifdef WCLK_POS { + option "WCLK" "POS" { + clock posedge "CLK"; + } + } + ifdef WCLK_NEG { + option "WCLK" "NEG" { + clock negedge "CLK"; + } + } + } else { + ifdef WCLK_ANY { + option "WCLK" "ANY" { + clock anyedge; + } + } + ifdef WCLK_POS { + option "WCLK" "POS" { + clock posedge; + } + } + ifdef WCLK_NEG { + option "WCLK" "NEG" { + clock negedge; + } + } + } + } + port sr "R" { + ifdef SHARED_CLK { + ifdef RCLK_ANY { + option "RCLK" "ANY" { + clock anyedge "CLK"; + } + } + ifdef RCLK_POS { + option "RCLK" "POS" { + clock posedge "CLK"; + } + } + ifdef RCLK_NEG { + option "RCLK" "NEG" { + clock negedge "CLK"; + } + } + } else { + ifdef RCLK_ANY { + option "RCLK" "ANY" { + clock anyedge; + } + } + ifdef RCLK_POS { + option "RCLK" "POS" { + clock posedge; + } + } + ifdef RCLK_NEG { + option "RCLK" "NEG" { + clock negedge; + } + } + } + } +} |