mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-01 12:07:51 +00:00
More tests in memlib/generate.py
Covers most of the todo list, at least functionally. Some minor issues with not always using hardware features.
This commit is contained in:
parent
af1b9c9e07
commit
7f033d3c1f
13 changed files with 1180 additions and 12 deletions
76
tests/memlib/memlib_clock_sdp.txt
Normal file
76
tests/memlib/memlib_clock_sdp.txt
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue