Skip to content

Commit

Permalink
new product image, support INT0
Browse files Browse the repository at this point in the history
  • Loading branch information
PulseRainmaker committed Oct 25, 2017
1 parent 43e19c9 commit 66319ec
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
13 changes: 12 additions & 1 deletion source/Mustang_fast.sv
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module Mustang_fast (
// external interrupt
//=======================================================================

input wire unsigned [1 : 0] INTx,
// input wire unsigned [1 : 0] INTx,

//=======================================================================
// IO port
Expand Down Expand Up @@ -190,8 +190,19 @@ module Mustang_fast (
wire scl_out;

wire unsigned [NUM_OF_PWM - 1 : 0] pwm_out;

wire unsigned [1 : 0] INTx;


//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// external interrupt
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
assign INTx[0] = P0[2];
assign INTx[1] = P0[3];



//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// I2C
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
assign sda_in = I2C_SDA;
Expand Down
8 changes: 3 additions & 5 deletions synth/Mustang_fast.qsf
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to UART_TXD
set_instance_assignment -name FAST_INPUT_REGISTER ON -to UART_RXD
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to debug_led
set_instance_assignment -name CURRENT_STRENGTH_NEW "MAXIMUM CURRENT" -to UART_TXD
set_global_assignment -name SEED 49
set_global_assignment -name SEED 54
set_global_assignment -name REMOVE_REDUNDANT_LOGIC_CELLS ON
set_global_assignment -name FIT_ATTEMPTS_TO_SKIP 0
set_global_assignment -name PRE_MAPPING_RESYNTHESIS ON
set_location_assignment PIN_130 -to P1[5]
set_location_assignment PIN_21 -to P0[0]
set_location_assignment PIN_22 -to P0[1]
set_location_assignment PIN_113 -to P0[2]
set_location_assignment PIN_54 -to P0[2]
set_location_assignment PIN_24 -to P0[3]
set_location_assignment PIN_56 -to P0[4]
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to P0
Expand Down Expand Up @@ -238,7 +238,7 @@ set_global_assignment -name QIP_FILE ../submodules/FP51_OCD/synth/Intel/FP51_OCD
set_global_assignment -name QIP_FILE ../submodules/PulseRain_FP51_MCU/synth/Intel/PulseRain_FP51_MCU.qip
set_global_assignment -name SYSTEMVERILOG_FILE ../source/Mustang_fast.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../source/code_mem_power_on_loader.sv
set_global_assignment -name POST_FLOW_SCRIPT_FILE quartus_sh:post_flow.tcl
set_global_assignment -name POST_FLOW_SCRIPT_FILE "quartus_sh:post_flow.tcl"
set_instance_assignment -name WEAK_PULL_UP_RESISTOR OFF -to I2C_SDA
set_instance_assignment -name WEAK_PULL_UP_RESISTOR OFF -to I2C_SCL
set_instance_assignment -name FAST_OUTPUT_REGISTER ON -to PWM_OUT
Expand All @@ -253,7 +253,5 @@ set_location_assignment PIN_50 -to UART_AUX_RXD
set_location_assignment PIN_52 -to UART_AUX_TXD
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to UART_AUX_RXD
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to UART_AUX_TXD
set_instance_assignment -name IO_STANDARD "3.3-V LVCMOS" -to INTx
set_location_assignment PIN_54 -to INTx[0]

set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
Binary file modified synth/output_files/Mustang_fast.sof
Binary file not shown.
Binary file modified synth/output_files/flash_images/cfm.bin
Binary file not shown.
Binary file modified synth/output_files/flash_images/full_image.pof
Binary file not shown.

0 comments on commit 66319ec

Please sign in to comment.