- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
`define flash_word // use word mode of flash
`ifdef flash_word
wire flash_16bit_ip_a0;
assign oflash_byte_n = 1'b1; // flash word mode configuration
`else
assign oflash_byte_n = 1'b0; // flash byte mode configuration
`endif
assign oflash_rst_n = 1'b1; // flash reset
assign oflash_wp_n = 1'b1; // flash write protect/programming acceleration
assign odram1_clk = odram0_clk; //fishy
wire cpu_clk; what is the purpose for the `ifdef flash_word
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It tests to see if the compile-time macro "FLASH_WORD" is defined. If so, it sets the signal "oFLASH_BYTE_N" to 1 otherwise it sets "oFLASH_BYTE_N" to 0. Clearly what this is doing is selecting between 8-bit and 16-bit mode on an external flash device.
Jake
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page