Add sd card cs
This commit is contained in:
@@ -13,8 +13,9 @@ logic uart_cs;
|
||||
logic irq_cs;
|
||||
logic mm_cs2;
|
||||
logic mm_cs1;
|
||||
logic sd_cs;
|
||||
|
||||
int cs_count = sdram_cs + rom_cs + hex_cs + uart_cs + board_io_cs + mm_cs2 + mm_cs1;
|
||||
int cs_count = sdram_cs + rom_cs + hex_cs + uart_cs + board_io_cs + mm_cs2 + mm_cs1 + sd_cs;
|
||||
|
||||
addr_decode dut(.*);
|
||||
|
||||
@@ -56,6 +57,11 @@ initial begin : TEST_VECTORS
|
||||
else
|
||||
$error("Bad CS! addr=%4x should have mm_cs1!", addr);
|
||||
end
|
||||
if (i >= 24'h007ff8 && i < 24'h007ffd) begin
|
||||
assert(sd_cs == '1)
|
||||
else
|
||||
$error("Bad CS! addr=%4x should have sd_cs!", addr);
|
||||
end
|
||||
if (i == 16'h7fff) begin
|
||||
assert(irq_cs == '1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user